I'm trying to track boiler temps and fuel consumption in 2 separate charts.
The charts are receiving data correctly, but only showing last 12 hours of data.
1 chart is spec'd for 3 weeks, the other for 10 weeks.
The flow has been running untouched for a week now.
Any ideas?
The flow itself:
[
{
"id": "cf99d9b968649254",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "96c57bbad94268b7",
"type": "ds18b20",
"z": "cf99d9b968649254",
"name": "",
"sensorid": "28-3c01f09679bc",
"timer": ".2",
"x": 460,
"y": 520,
"wires": [
[
"97b12ed9628a1fb1"
]
]
},
{
"id": "3523cce606609b76",
"type": "ds18b20",
"z": "cf99d9b968649254",
"name": "",
"sensorid": "28-3c01f0960ce5",
"timer": ".2",
"x": 460,
"y": 480,
"wires": [
[
"881f5d1eaa471f36"
]
]
},
{
"id": "67edeec7228c1c24",
"type": "rpi-srf",
"z": "cf99d9b968649254",
"name": "",
"topic": "OilTank",
"pulse": "1",
"pins": "8,10",
"precision": "0",
"x": 430,
"y": 180,
"wires": [
[
"812f34c53baf6475",
"832790bb42c36356"
]
]
},
{
"id": "8dd0db19e3148f53",
"type": "rpi-gpio out",
"z": "cf99d9b968649254",
"name": "Temp Sense pwr",
"pin": "18",
"set": "",
"level": "0",
"freq": "",
"out": "out",
"bcm": true,
"x": 1190,
"y": 400,
"wires": []
},
{
"id": "8e8d0b02cb4b3ba0",
"type": "inject",
"z": "cf99d9b968649254",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "600",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 470,
"y": 400,
"wires": [
[
"0990bc8ed006147e"
]
]
},
{
"id": "838179a3c1938dc7",
"type": "inject",
"z": "cf99d9b968649254",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 770,
"y": 360,
"wires": [
[
"8dd0db19e3148f53"
]
]
},
{
"id": "0990bc8ed006147e",
"type": "trigger",
"z": "cf99d9b968649254",
"name": "auto reset temp probe",
"op1": "0",
"op2": "1",
"op1type": "num",
"op2type": "num",
"duration": "5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 720,
"y": 400,
"wires": [
[
"8dd0db19e3148f53"
]
]
},
{
"id": "cd06a98df0430901",
"type": "debug",
"z": "cf99d9b968649254",
"name": "debug 42",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1320,
"y": 540,
"wires": []
},
{
"id": "bc8ddda9f64b7cea",
"type": "debug",
"z": "cf99d9b968649254",
"name": "debug 43",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1320,
"y": 580,
"wires": []
},
{
"id": "881f5d1eaa471f36",
"type": "change",
"z": "cf99d9b968649254",
"name": "Return",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "return",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 480,
"wires": [
[
"e43f012806d6aa38"
]
]
},
{
"id": "97b12ed9628a1fb1",
"type": "change",
"z": "cf99d9b968649254",
"name": "Supply",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "supply",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 520,
"wires": [
[
"058ce02babd8fb2e"
]
]
},
{
"id": "f28bde6391184792",
"type": "function",
"z": "cf99d9b968649254",
"name": "function 8",
"func": "\nvar rawTemp = msg.payload;\nvar convertedTemp = rawTemp * 9 / 5 + 32;\n\nmsg.payload = convertedTemp;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 960,
"y": 500,
"wires": [
[
"2c34d8dcaaf3a5f3"
]
]
},
{
"id": "2c34d8dcaaf3a5f3",
"type": "switch",
"z": "cf99d9b968649254",
"name": "",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "supply",
"vt": "str"
},
{
"t": "eq",
"v": "return",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1110,
"y": 500,
"wires": [
[
"cd06a98df0430901",
"956780e0223bb069"
],
[
"bc8ddda9f64b7cea",
"956780e0223bb069"
]
]
},
{
"id": "812f34c53baf6475",
"type": "debug",
"z": "cf99d9b968649254",
"name": "debug 44",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 800,
"y": 120,
"wires": []
},
{
"id": "fed3b12a99eff03f",
"type": "function",
"z": "cf99d9b968649254",
"name": "Convert to inch",
"func": "var cm = Number(msg.payload);\n\nvar toInch = cm / 2.54;\n\nmsg.payload = Math.round((10 * toInch) / 10);\n\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 900,
"y": 180,
"wires": [
[
"1c0a59e9ce0603a6",
"f66a0cf108042a5e"
]
]
},
{
"id": "1c0a59e9ce0603a6",
"type": "debug",
"z": "cf99d9b968649254",
"name": "debug 45",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 120,
"wires": []
},
{
"id": "fd0517cdfc3d1d33",
"type": "smooth",
"z": "cf99d9b968649254",
"name": "",
"property": "payload",
"action": "mean",
"count": "40",
"round": "",
"mult": "single",
"reduce": false,
"x": 740,
"y": 180,
"wires": [
[
"fed3b12a99eff03f"
]
]
},
{
"id": "77108806fe40f3a6",
"type": "ui_chart",
"z": "cf99d9b968649254",
"name": "",
"group": "951f7cbe395b9312",
"order": 0,
"width": "12",
"height": "10",
"label": "Boiler op",
"chartType": "line",
"legend": "true",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": "4",
"removeOlderPoints": "",
"removeOlderUnit": "604800",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 1800,
"y": 500,
"wires": [
[]
]
},
{
"id": "956780e0223bb069",
"type": "rbe",
"z": "cf99d9b968649254",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 1310,
"y": 500,
"wires": [
[
"77108806fe40f3a6"
]
]
},
{
"id": "4f17d8f2c31dd886",
"type": "ui_chart",
"z": "cf99d9b968649254",
"name": "",
"group": "ec53d7082368f1b2",
"order": 0,
"width": "12",
"height": "10",
"label": "Fuel oil",
"chartType": "line",
"legend": "true",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "275",
"removeOlder": "10",
"removeOlderPoints": "",
"removeOlderUnit": "604800",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 1800,
"y": 180,
"wires": [
[]
]
},
{
"id": "f66a0cf108042a5e",
"type": "delay",
"z": "cf99d9b968649254",
"name": "",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "hour",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": true,
"allowrate": false,
"outputs": 2,
"x": 1110,
"y": 180,
"wires": [
[
"4f17d8f2c31dd886",
"ff8623157d6237dc"
],
[]
]
},
{
"id": "058ce02babd8fb2e",
"type": "rbe",
"z": "cf99d9b968649254",
"name": "",
"func": "narrowbandEq",
"gap": "5%",
"start": "",
"inout": "in",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 790,
"y": 520,
"wires": [
[
"f28bde6391184792"
]
]
},
{
"id": "e43f012806d6aa38",
"type": "rbe",
"z": "cf99d9b968649254",
"name": "",
"func": "narrowbandEq",
"gap": "5%",
"start": "",
"inout": "in",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 790,
"y": 480,
"wires": [
[
"f28bde6391184792"
]
]
},
{
"id": "ff8623157d6237dc",
"type": "debug",
"z": "cf99d9b968649254",
"name": "debug 46",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1360,
"y": 220,
"wires": []
},
{
"id": "1f5737f18b97fc3f",
"type": "inject",
"z": "cf99d9b968649254",
"name": "Clear",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[]",
"payloadType": "jsonata",
"x": 1630,
"y": 260,
"wires": [
[
"5a4d9f70340c192d"
]
]
},
{
"id": "5a4d9f70340c192d",
"type": "function",
"z": "cf99d9b968649254",
"name": "function 9",
"func": "\nmsg.payload = [];\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1640,
"y": 220,
"wires": [
[
"4f17d8f2c31dd886"
]
]
},
{
"id": "ef07a3f983856c12",
"type": "inject",
"z": "cf99d9b968649254",
"d": true,
"name": "Clear",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[]",
"payloadType": "jsonata",
"x": 1630,
"y": 580,
"wires": [
[
"5f50878ca1b45e27"
]
]
},
{
"id": "5f50878ca1b45e27",
"type": "function",
"z": "cf99d9b968649254",
"name": "function 10",
"func": "\nmsg.payload = [];\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1640,
"y": 540,
"wires": [
[
"77108806fe40f3a6"
]
]
},
{
"id": "832790bb42c36356",
"type": "rbe",
"z": "cf99d9b968649254",
"name": "",
"func": "narrowbandEq",
"gap": "5%",
"start": "",
"inout": "in",
"septopics": true,
"property": "payload",
"topi": "topic",
"x": 590,
"y": 180,
"wires": [
[
"fd0517cdfc3d1d33"
]
]
},
{
"id": "951f7cbe395b9312",
"type": "ui_group",
"name": "Boiler",
"tab": "b72753f9e30b11b7",
"order": 3,
"disp": true,
"width": "12",
"collapse": false,
"className": ""
},
{
"id": "ec53d7082368f1b2",
"type": "ui_group",
"name": "Fuel oil",
"tab": "b72753f9e30b11b7",
"order": 3,
"disp": true,
"width": "12",
"collapse": false,
"className": ""
},
{
"id": "b72753f9e30b11b7",
"type": "ui_tab",
"name": "History",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]