node-red-contrib-persist
node-red-contrib-persist copied to clipboard
2/3 Barcharts won't store.
Hi,
I have about 30 persist stores all running fine, but I have 3 bar charts, and while the three of them are setup mostly the same, only 1 out of the 3 actually save.
Here's the node I'm using to format the bar charts: https://flows.nodered.org/node/node-red-contrib-dashboard-bar-chart-data
This promotes persist, so presumably it's designed to work with it, and the fact that one of my three actually works, supports this.
I believe this is an error on my part, but I've tried changing persist stores, adding new stores etc, I cannot get 2/3 to save.
The only one that saves correctly is the yearly bar chart.
Here's the flow in question:
[ { "id": "8e0a7dd3b44b0b4d", "type": "switch", "z": "51e666f90898a40f", "name": "", "property": "payload.POWER", "propertyType": "msg", "rules": [ { "t": "cont", "v": "ON", "vt": "str" }, { "t": "cont", "v": "OFF", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 670, "y": 1800, "wires": [ [ "cf3ee5f3dddae8d4" ], [] ] }, { "id": "693c6a54e5e850a8", "type": "mqtt in", "z": "51e666f90898a40f", "name": "", "topic": "tele/Heating/STATE", "qos": "2", "datatype": "auto-detect", "broker": "01c2236853d80693", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 510, "y": 1800, "wires": [ [ "8e0a7dd3b44b0b4d" ] ] }, { "id": "cf3ee5f3dddae8d4", "type": "function", "z": "51e666f90898a40f", "name": "Topic changer", "func": "msg.topic = \"HeatingStatus\"\nmsg.payload = 1;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 860, "y": 1780, "wires": [ [ "85236b045f630daa", "fedf315c05385fd2", "25f1569219204c5c" ] ] }, { "id": "85236b045f630daa", "type": "bar-chart-data", "z": "51e666f90898a40f", "name": "bar-chart-data1", "x_interval": "hours", "x_size": 24, "unit": "Minutes boiler has been on.", "precision": "2", "is_meter_reading": "False", "agg_by": "sum", "x": 1080, "y": 1740, "wires": [ [ "bda8fd4212135369", "5e89f28fef9e8f50", "a3eca5de4ce50bce" ] ] }, { "id": "bda8fd4212135369", "type": "ui_chart", "z": "51e666f90898a40f", "name": "", "group": "9f3e4c8a76e60c1b", "order": 2, "width": 0, "height": 0, "label": "Last 24 hours", "chartType": "bar", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 1300, "y": 1740, "wires": [ [] ] }, { "id": "fedf315c05385fd2", "type": "bar-chart-data", "z": "51e666f90898a40f", "name": "bar-chart-data2", "x_interval": "days", "x_size": "7", "unit": "Minutes boiler has been on.", "precision": "2", "is_meter_reading": "False", "agg_by": "sum", "x": 1080, "y": 1780, "wires": [ [ "03cc76950df0bdab", "c34d9c05e40771d2" ] ] }, { "id": "03cc76950df0bdab", "type": "ui_chart", "z": "51e666f90898a40f", "name": "", "group": "9f3e4c8a76e60c1b", "order": 3, "width": 0, "height": 0, "label": "Last week", "chartType": "bar", "legend": "false", "xformat": "Day", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "7", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 1280, "y": 1780, "wires": [ [] ] }, { "id": "25f1569219204c5c", "type": "bar-chart-data", "z": "51e666f90898a40f", "name": "bar-chart-data3", "x_interval": "months", "x_size": "12", "unit": "Minutes boiler has been on.", "precision": "2", "is_meter_reading": "False", "agg_by": "sum", "x": 1080, "y": 1820, "wires": [ [ "0c4ae2d37f5cf810", "ac631232e7833c88", "5e89f28fef9e8f50" ] ] }, { "id": "0c4ae2d37f5cf810", "type": "ui_chart", "z": "51e666f90898a40f", "name": "", "group": "9f3e4c8a76e60c1b", "order": 4, "width": 0, "height": 0, "label": "Last 12 months", "chartType": "bar", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "52", "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": 1300, "y": 1820, "wires": [ [] ] }, { "id": "066685971307388d", "type": "persist out", "z": "51e666f90898a40f", "name": "YearHeatingData2", "storageNode": "0f17ac32d5407e26", "x": 810, "y": 1700, "wires": [ [ "25f1569219204c5c", "555007731a61b1bc" ] ] }, { "id": "ac631232e7833c88", "type": "persist in", "z": "51e666f90898a40f", "name": "YearHeatingData2", "storageNode": "0f17ac32d5407e26", "x": 1310, "y": 1700, "wires": [] }, { "id": "555007731a61b1bc", "type": "debug", "z": "51e666f90898a40f", "name": "debug 44", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1060, "y": 1580, "wires": [] }, { "id": "5e89f28fef9e8f50", "type": "debug", "z": "51e666f90898a40f", "name": "debug 45", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1380, "y": 1560, "wires": [] }, { "id": "a3eca5de4ce50bce", "type": "persist in", "z": "51e666f90898a40f", "name": "DayHeatingData", "storageNode": "0596df412edf9bd7", "x": 1300, "y": 1620, "wires": [] }, { "id": "c34d9c05e40771d2", "type": "persist in", "z": "51e666f90898a40f", "name": "WeekHeatingData", "storageNode": "5770a82c18921132", "x": 1310, "y": 1660, "wires": [] }, { "id": "2e9d762e67cb25b5", "type": "persist out", "z": "51e666f90898a40f", "name": "WeeklyHeatingData", "storageNode": "5770a82c18921132", "x": 810, "y": 1660, "wires": [ [ "fedf315c05385fd2" ] ] }, { "id": "98d921df66d50327", "type": "persist out", "z": "51e666f90898a40f", "name": "24HourHeatingData", "storageNode": "0596df412edf9bd7", "x": 800, "y": 1620, "wires": [ [ "85236b045f630daa", "555007731a61b1bc" ] ] }, { "id": "01c2236853d80693", "type": "mqtt-broker", "name": "AEDES", "broker": "192.168.178.69", "port": "2000", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "9f3e4c8a76e60c1b", "type": "ui_group", "name": "Heating Active Records", "tab": "abd51859f843d7a0", "order": 3, "disp": true, "width": "6", "collapse": false, "className": "" }, { "id": "0f17ac32d5407e26", "type": "persist-store", "filename": "YearHeatingData2.json", "interval": "300" }, { "id": "0596df412edf9bd7", "type": "persist-store", "filename": "DayHD.json", "interval": "300" }, { "id": "5770a82c18921132", "type": "persist-store", "filename": "WeekHD.json", "interval": "300" }, { "id": "abd51859f843d7a0", "type": "ui_tab", "name": "Full Heating info", "icon": "dashboard", "order": 4, "disabled": false, "hidden": false } ]
I've genuinely spent about 4 hours on/off on this and even ended up reinstalling persist, and the issue is still there. I'd really love some help on this.
Thanks.