[ { "id": "4cd6f2d2.e4259c", "type": "tab", "label": "Flow 1", "disabled": false, "info": "" }, { "id": "83c9e461.ff5f58", "type": "websocket-listener", "z": "", "path": "/bme280", "wholemsg": "true" }, { "id": "d4079dbc.701cd", "type": "ui_base", "theme": { "name": "theme-custom", "lightTheme": { "default": "#0094CE", "baseColor": "#0094CE", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "darkTheme": { "default": "#097479", "baseColor": "#097479", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "customTheme": { "name": "Untitled Theme 1", "default": "#4B7930", "baseColor": "#4B7930", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "reset": false }, "themeState": { "base-color": { "default": "#4B7930", "value": "#4B7930", "edited": false }, "page-titlebar-backgroundColor": { "value": "#4B7930", "edited": false }, "page-backgroundColor": { "value": "#111111", "edited": false }, "page-sidebar-backgroundColor": { "value": "#000000", "edited": false }, "group-textColor": { "value": "#6db046", "edited": false }, "group-borderColor": { "value": "#555555", "edited": false }, "group-backgroundColor": { "value": "#333333", "edited": false }, "widget-textColor": { "value": "#eeeeee", "edited": false }, "widget-backgroundColor": { "value": "#4b7930", "edited": false }, "widget-borderColor": { "value": "#333333", "edited": false }, "base-font": { "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" } }, "angularTheme": { "primary": "indigo", "accents": "blue", "warn": "red", "background": "grey" } }, "site": { "name": "Node-RED Dashboard", "hideToolbar": "false", "allowSwipe": "false", "allowTempTheme": "true", "dateFormat": "DD/MM/YYYY", "sizes": { "sx": 48, "sy": 48, "gx": 6, "gy": 6, "cx": 6, "cy": 6, "px": 0, "py": 0 } } }, { "id": "6c9d0622.6e4648", "type": "ui_tab", "z": "", "name": "Home", "icon": "", "order": "1" }, { "id": "4a894664.1b26e8", "type": "ui_group", "z": "", "name": "Cellar", "tab": "6c9d0622.6e4648", "disp": true, "width": "12", "collapse": false }, { "id": "df354461.178598", "type": "ui_group", "z": "", "name": "Barrel 1", "tab": "935a5dd8.46931", "order": 2, "disp": true, "width": "16", "collapse": false }, { "id": "37690121.d7e36e", "type": "websocket-listener", "z": "", "path": "/fca33", "wholemsg": "false" }, { "id": "935a5dd8.46931", "type": "ui_tab", "z": "", "name": "Barrel 1", "icon": "dashboard", "order": 2 }, { "id": "69181eb9.2abd7", "type": "websocket in", "z": "4cd6f2d2.e4259c", "name": "Socket_BME280", "server": "83c9e461.ff5f58", "client": "", "x": 100, "y": 180, "wires": [ [ "5be4f66b.04ddb8" ] ] }, { "id": "5be4f66b.04ddb8", "type": "function", "z": "4cd6f2d2.e4259c", "name": "SplitterTPH", "func": "var lines = msg.payload.split(\";\");\nvar msg1 = {payload:lines[0]};\nvar msg2 = {payload:lines[1]};\nvar msg3 = {payload:lines[2]};\nreturn [msg1,msg2,msg3];", "outputs": 3, "noerr": 0, "x": 290, "y": 180, "wires": [ [ "3e280d0f.4fd1a2", "11fa599f.d7c426" ], [ "dfe45fa1.1500f", "2b0fcbc4.b61664" ], [ "87168c23.61d6e", "3b65ddcc.d8fc62" ] ] }, { "id": "3e280d0f.4fd1a2", "type": "ui_gauge", "z": "4cd6f2d2.e4259c", "name": "TemperatureGauge", "group": "4a894664.1b26e8", "order": 1, "width": "4", "height": "4", "gtype": "gage", "title": "Temperature", "label": "Celcius", "format": "{{value}}", "min": 0, "max": "40", "colors": [ "#b5a900", "#02e600", "#ca3838" ], "seg1": "16", "seg2": "27", "x": 580, "y": 80, "wires": [] }, { "id": "dfe45fa1.1500f", "type": "ui_gauge", "z": "4cd6f2d2.e4259c", "name": "PressureGauge", "group": "4a894664.1b26e8", "order": 2, "width": "4", "height": "4", "gtype": "gage", "title": "Pressure", "label": "mbar", "format": "{{value}}", "min": "850", "max": "1100", "colors": [ "#f70606", "#06f71a", "#cac938" ], "seg1": "970", "seg2": "1050", "x": 560, "y": 200, "wires": [] }, { "id": "87168c23.61d6e", "type": "ui_gauge", "z": "4cd6f2d2.e4259c", "name": "HumidityGauge", "group": "4a894664.1b26e8", "order": 3, "width": "4", "height": "4", "gtype": "gage", "title": "Humidity", "label": "%", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#e2bb31", "#41e600", "#ca3838" ], "seg1": "40", "seg2": "70", "x": 560, "y": 300, "wires": [] }, { "id": "11fa599f.d7c426", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Temperature", "group": "4a894664.1b26e8", "order": 4, "width": "4", "height": "4", "label": "", "chartType": "line", "xformat": "HH:mm", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "0", "ymax": "35", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": "", "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": true, "x": 550, "y": 40, "wires": [ [], [] ] }, { "id": "2b0fcbc4.b61664", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Pressure", "group": "4a894664.1b26e8", "order": 5, "width": "4", "height": "4", "label": "", "chartType": "line", "xformat": "HH:mm", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "850", "ymax": "1100", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": "", "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": true, "x": 540, "y": 160, "wires": [ [], [] ] }, { "id": "3b65ddcc.d8fc62", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Humidity", "group": "4a894664.1b26e8", "order": 6, "width": "4", "height": "4", "label": "", "chartType": "line", "xformat": "HH:mm", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "0", "ymax": "100", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": "", "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": true, "x": 540, "y": 260, "wires": [ [], [] ] }, { "id": "d7080fcc.e0ec6", "type": "websocket in", "z": "4cd6f2d2.e4259c", "name": "Socket_FCA33", "server": "37690121.d7e36e", "client": "", "x": 100, "y": 460, "wires": [ [ "a0810e05.4d499" ] ] }, { "id": "a0810e05.4d499", "type": "function", "z": "4cd6f2d2.e4259c", "name": "SplitterMHD", "func": "var lines = msg.payload.split(\";\");\nvar msg1 = {payload:lines[0]};\nif (lines.length == 1) {\n \n return [msg1]\n}\nvar msg2 = {payload:lines[1]};\nif (lines.length == 2) {\n return [msg1, msg2]\n}\nvar msg3 = {payload:lines[2]};\nreturn [msg1,msg2,msg3];\n", "outputs": 3, "noerr": 0, "x": 270, "y": 460, "wires": [ [ "88d10097.a73de" ], [ "65b17aa8.851a44" ], [ "dae75a09.c8bad8" ] ] }, { "id": "a46a10e7.2a904", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Bubbles/Minut", "group": "df354461.178598", "order": 0, "width": "16", "height": "5", "label": "Bubbles/Minut", "chartType": "line", "legend": "false", "xformat": "HH:mm", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 780, "y": 400, "wires": [ [ "beab9c4a.88c9a" ], [] ] }, { "id": "82e24181.c7bfa", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Bubbles/Hour", "group": "df354461.178598", "order": 0, "width": "16", "height": "5", "label": "Bubbles/Hour", "chartType": "line", "legend": "false", "xformat": "HH:mm", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "", "ymax": "", "removeOlder": "7", "removeOlderPoints": "", "removeOlderUnit": "86400", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 780, "y": 460, "wires": [ [ "ec5c5f89.ce537" ], [] ] }, { "id": "a35d9b0b.8ebb98", "type": "ui_chart", "z": "4cd6f2d2.e4259c", "name": "Bubbles/Day", "group": "df354461.178598", "order": 0, "width": "16", "height": "5", "label": "Bubbles/Day", "chartType": "line", "legend": "false", "xformat": "D/M", "interpolate": "linear", "nodata": "Waiting...", "dot": false, "ymin": "", "ymax": "", "removeOlder": "12", "removeOlderPoints": "", "removeOlderUnit": "604800", "cutout": 0, "useOneColor": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "useOldStyle": false, "x": 770, "y": 520, "wires": [ [ "e068c71e.4bc5c8" ], [] ] }, { "id": "418aec97.590734", "type": "ui_button", "z": "4cd6f2d2.e4259c", "name": "", "group": "4a894664.1b26e8", "order": 0, "width": "6", "height": "1", "passthru": true, "label": "Save Barrel 1", "color": "", "bgcolor": "", "icon": "", "payload": "", "payloadType": "str", "topic": "save", "x": 420, "y": 680, "wires": [ [ "d5daa450.5ad868", "14e290bf.4f4faf", "7f1179a4.937cd8" ] ] }, { "id": "44f46d31.980764", "type": "ui_button", "z": "4cd6f2d2.e4259c", "name": "", "group": "4a894664.1b26e8", "order": 0, "width": "6", "height": "1", "passthru": false, "label": "Restore Barrel 1", "color": "", "bgcolor": "", "icon": "", "payload": "", "payloadType": "str", "topic": "restore", "x": 110, "y": 880, "wires": [ [ "291a0999.191366", "ed5601f4.6b111", "e667cbcb.4e74a8" ] ] }, { "id": "291a0999.191366", "type": "file in", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/minutes.log", "format": "utf8", "chunk": false, "sendError": false, "x": 370, "y": 820, "wires": [ [ "b95b86ee.05a6e8" ] ] }, { "id": "39ed234.23679dc", "type": "file", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/minutes.log", "appendNewline": true, "createDir": false, "overwriteFile": "true", "x": 1410, "y": 640, "wires": [ [] ] }, { "id": "ed5601f4.6b111", "type": "file in", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/hours.log", "format": "utf8", "chunk": false, "sendError": false, "x": 360, "y": 880, "wires": [ [ "10837ea3.fc5431" ] ] }, { "id": "e667cbcb.4e74a8", "type": "file in", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/days.log", "format": "utf8", "chunk": false, "sendError": false, "x": 360, "y": 940, "wires": [ [ "91373454.051f18" ] ] }, { "id": "b95b86ee.05a6e8", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 570, "y": 820, "wires": [ [ "a46a10e7.2a904" ] ] }, { "id": "10837ea3.fc5431", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 570, "y": 880, "wires": [ [ "82e24181.c7bfa" ] ] }, { "id": "91373454.051f18", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 570, "y": 940, "wires": [ [ "a35d9b0b.8ebb98" ] ] }, { "id": "14e290bf.4f4faf", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Save minuts", "func": "if (msg.topic === \"save\") {\n msg.payload = context.last;\n return msg;\n}\nelse {\n context.last = msg.payload;\n}\nreturn null;", "outputs": 1, "noerr": 0, "x": 1190, "y": 640, "wires": [ [ "39ed234.23679dc" ] ] }, { "id": "d5daa450.5ad868", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Save hours", "func": "if (msg.topic === \"save\") {\n msg.payload = context.last;\n return msg;\n}\nelse {\n context.last = msg.payload;\n}\nreturn null;", "outputs": 1, "noerr": 0, "x": 1190, "y": 700, "wires": [ [ "f7f01f5f.62e9d" ] ] }, { "id": "7f1179a4.937cd8", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Save days", "func": "if (msg.topic === \"save\") {\n msg.payload = context.last;\n return msg;\n}\nelse {\n context.last = msg.payload;\n}\nreturn null;", "outputs": 1, "noerr": 0, "x": 1190, "y": 760, "wires": [ [ "6958ffdc.72703" ] ] }, { "id": "f7f01f5f.62e9d", "type": "file", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/hours.log", "appendNewline": true, "createDir": false, "overwriteFile": "true", "x": 1400, "y": 700, "wires": [ [] ] }, { "id": "6958ffdc.72703", "type": "file", "z": "4cd6f2d2.e4259c", "name": "", "filename": "/home/pi/FBMN_2/days.log", "appendNewline": true, "createDir": false, "overwriteFile": "true", "x": 1400, "y": 760, "wires": [ [] ] }, { "id": "beab9c4a.88c9a", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 970, "y": 400, "wires": [ [ "14e290bf.4f4faf" ] ] }, { "id": "ec5c5f89.ce537", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 970, "y": 460, "wires": [ [ "d5daa450.5ad868" ] ] }, { "id": "e068c71e.4bc5c8", "type": "json", "z": "4cd6f2d2.e4259c", "name": "", "property": "payload", "action": "", "pretty": false, "x": 970, "y": 520, "wires": [ [ "7f1179a4.937cd8" ] ] }, { "id": "2d27d5ca.4404ba", "type": "trigger", "z": "4cd6f2d2.e4259c", "op1": "", "op2": "", "op1type": "str", "op2type": "str", "duration": "-30", "extend": false, "units": "min", "reset": "", "bytopic": "all", "name": "", "x": 120, "y": 680, "wires": [ [ "418aec97.590734" ] ] }, { "id": "5313eabc.467904", "type": "exec", "z": "4cd6f2d2.e4259c", "command": "python3 /home/pi/FBMN_2/bme280_fca33.cpython-35.pyc", "addpay": true, "append": "", "useSpawn": "false", "timer": "", "oldrc": false, "name": "", "x": 440, "y": 1020, "wires": [ [], [], [] ] }, { "id": "cca0cf95.6a093", "type": "ui_button", "z": "4cd6f2d2.e4259c", "name": "", "group": "4a894664.1b26e8", "order": 0, "width": "3", "height": "2", "passthru": false, "label": "Start", "color": "", "bgcolor": "blue", "icon": "", "payload": "", "payloadType": "str", "topic": "", "x": 70, "y": 1020, "wires": [ [ "5313eabc.467904" ] ] }, { "id": "88d10097.a73de", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Split Measurement, Average", "func": "var lines = msg.payload.split(\":\");\nvar msg1 = {payload:lines[0]};\nmsg1.topic='Line1';\nvar msg2 = {payload:lines[1]};\nmsg2.topic='Line2';\nreturn [msg1, msg2]\n", "outputs": 2, "noerr": 0, "x": 520, "y": 400, "wires": [ [ "a46a10e7.2a904" ], [ "a46a10e7.2a904" ] ] }, { "id": "65b17aa8.851a44", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Split Measurement, Average", "func": "var lines = msg.payload.split(\":\");\nvar msg1 = {payload:lines[0]};\nmsg1.topic='Line1';\nvar msg2 = {payload:lines[1]};\nmsg2.topic='Line2';\nreturn [msg1, msg2]\n", "outputs": 2, "noerr": 0, "x": 520, "y": 460, "wires": [ [ "82e24181.c7bfa" ], [ "82e24181.c7bfa" ] ] }, { "id": "dae75a09.c8bad8", "type": "function", "z": "4cd6f2d2.e4259c", "name": "Split Measurement, Average", "func": "var lines = msg.payload.split(\":\");\nvar msg1 = {payload:lines[0]};\nmsg1.topic='Line1';\nvar msg2 = {payload:lines[1]};\nmsg2.topic='Line2';\nreturn [msg1, msg2]\n", "outputs": 2, "noerr": 0, "x": 520, "y": 520, "wires": [ [ "a35d9b0b.8ebb98" ], [ "a35d9b0b.8ebb98" ] ] } ]