{ "tabs": [ { "id": "1636110831878", "name": "Main", "icon": "fa-object-ungroup", "linker": "main", "index": 0 }, { "name": "Time setter", "linker": "time-setter", "id": "1667235000217", "index": 1 } ], "components": [ { "id": "1636110851291", "component": "socomec", "tab": "1636110831878", "name": "IP - 192.168.1.11 & 12", "x": 53, "y": 145, "connections": { "0": [ { "index": "0", "id": "1636110855097" } ], "1": [ { "index": "0", "id": "1636110863291" }, { "index": "0", "id": "1636461793375" }, { "index": "0", "id": "1643023439891" } ], "2": [ { "index": "0", "id": "1640097360601" }, { "index": "0", "id": "1669850052514" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#2134B0", "notes": "", "options": { "host": "192.168.1.11", "port": 502 } }, { "id": "1636110855097", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 376, "y": 32, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1636110863291", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 377, "y": 113, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1636461560741", "component": "virtualwirein", "tab": "1636110831878", "name": "tb-prod01-push", "x": 23, "y": 586, "connections": { "0": [ { "index": "0", "id": "1694077414274" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-prod01-push", "color": "gray" }, "color": "#303E4D", "notes": "", "options": { "wirename": "tb-prod01-push" } }, { "id": "1636461793375", "component": "virtualwireout", "tab": "1636110831878", "name": "tb-prod01-push", "x": 383, "y": 234, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-prod01-push", "color": "gray" }, "color": "#303E4D", "notes": "", "options": { "wirename": "tb-prod01-push" } }, { "id": "1636971481195", "component": "monitormemory", "tab": "1636110831878", "name": "Memory", "x": 37, "y": 945, "connections": { "0": [ { "index": "0", "id": "1641906774515" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "804.16 MB / 987.80 MB", "color": "gray" }, "color": "#F6BB42", "notes": "", "options": { "enabled": true, "interval": 30000 } }, { "id": "1636971491099", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 395, "y": 984, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1636972747889", "component": "monitorconsumption", "tab": "1636110831878", "name": "CPU", "x": 35, "y": 850, "connections": { "0": [ { "index": "0", "id": "1641906812467" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "3.1% / 57.85 MB", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "monitorfiles": true, "monitorconnections": true, "monitorsize": true, "monitorconsumption": true, "enabled": true, "interval": 30000 } }, { "id": "1636972771931", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 396, "y": 808, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1640097360601", "component": "httprequest", "tab": "1636110831878", "name": "grafia-prod01.worksys.io", "x": 380, "y": 317, "connections": { "0": [ { "index": "0", "id": "1640097392518" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#5D9CEC", "notes": "", "options": { "stringify": "json", "method": "POST", "url": "http://192.168.252.2:8005/total_energy", "type": "json" } }, { "id": "1640097392518", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 697, "y": 317, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1641906699312", "component": "monitordisk", "tab": "1636110831878", "name": "Disk", "x": 35, "y": 1036, "connections": { "0": [ { "index": "0", "id": "1641906732272" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "5.67 GB / 7.26 GB", "color": "gray" }, "color": "#F6BB42", "notes": "", "options": { "enabled": true, "path": "/", "interval": 30000 } }, { "id": "1641906703877", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 396, "y": 1073, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1641906732272", "component": "code", "tab": "1636110831878", "name": "Code", "x": 196, "y": 1034, "connections": { "0": [ { "index": "0", "id": "1641906703877" }, { "index": "0", "id": "1641907044563" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#656D78", "notes": "", "options": { "keepmessage": true, "code": "let response = {};\n\nresponse.hdd_total = value.total;\nresponse.hdd_free = value.free;\nresponse.hdd_used = value.used;\n\nsend(0, response);", "outputs": 1, "COMPONENT": "code", "NAME": "Code" } }, { "id": "1641906774515", "component": "code", "tab": "1636110831878", "name": "Code", "x": 197, "y": 941, "connections": { "0": [ { "index": "0", "id": "1636971491099" }, { "index": "0", "id": "1641907044563" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#656D78", "notes": "", "options": { "keepmessage": true, "code": "let response = {};\n\nresponse.memory_total = value.total;\nresponse.memory_free = value.free;\nresponse.memory_used = value.used;\n\nsend(0, response);", "outputs": 1 } }, { "id": "1641906812467", "component": "code", "tab": "1636110831878", "name": "Code", "x": 202, "y": 845, "connections": { "0": [ { "index": "0", "id": "1636972771931" }, { "index": "0", "id": "1641907044563" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#656D78", "notes": "", "options": { "keepmessage": true, "code": "let response = {};\nresponse.cpu = value.cpu;\nresponse.uptime = value.uptime;\n\nsend(0, response);", "outputs": 1 } }, { "id": "1641907044563", "component": "virtualwireout", "tab": "1636110831878", "name": "send-to-services", "x": 398, "y": 892, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "send-to-services", "color": "gray" }, "color": "#303E4D", "notes": "", "options": { "wirename": "send-to-services" } }, { "id": "1641907104812", "component": "virtualwirein", "tab": "1636110831878", "name": "send-to-services", "x": 65, "y": 1232, "connections": { "0": [ { "index": "0", "id": "1641907121073" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "send-to-services", "color": "gray" }, "color": "#303E4D", "notes": "", "options": { "wirename": "send-to-services" } }, { "id": "1641907121073", "component": "infosender", "tab": "1636110831878", "name": "Info sender", "x": 304, "y": 1227, "connections": { "0": [ { "index": "0", "id": "1641907134719" }, { "index": "0", "id": "1641907182409" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#2134B0", "notes": "", "options": { "edge": "undefined" } }, { "id": "1641907134719", "component": "httprequest", "tab": "1636110831878", "name": "http://192.168.252.2:8004/sentmessage", "x": 533, "y": 1191, "connections": { "0": [ { "index": "0", "id": "1641907188601" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#5D9CEC", "notes": "", "options": { "stringify": "json", "method": "POST", "url": "http://192.168.252.2:8004/sentmessage", "type": "json" } }, { "id": "1641907182409", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 536, "y": 1295, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1641907188601", "component": "debug", "tab": "1636110831878", "name": "Debug", "x": 906, "y": 1189, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1643023439891", "component": "code", "tab": "1636110831878", "name": "Code", "x": 569, "y": 176, "connections": { "0": [ { "index": "0", "id": "1643023495930" } ] }, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#656D78", "notes": "", "options": { "keepmessage": true, "code": "//if(value.hasOwnProperty('1JMYvnx2RzKEo4aWQ7D93vAL8yZV3m9NBePXbrdj'))\n//{\n\t//send(0, value);\n//}\n//if(value.hasOwnProperty('1559') || value.hasOwnProperty('1558'))\nif(value.hasOwnProperty('1559'))\n{\n\tif(value[\"1559\"][0].values.hasOwnProperty(\"total_energy\"))\n\t\t{\n\t\t\tsend(0, value);\n\t\t}\n\n}\n\nif(value.hasOwnProperty('1558'))\n{\n\tif(value[\"1558\"][0].values.hasOwnProperty(\"total_energy\"))\n\t\t{\n\t\t\tsend(0, value);\n\t\t}\n\n}", "outputs": 1 } }, { "id": "1643023495930", "component": "debug", "tab": "1636110831878", "name": "Just 1 module", "x": 719, "y": 169, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1660058310860", "component": "virtualwireout", "tab": "1636110831878", "name": "send-to-services", "x": 590.5, "y": 633.4166870117188, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "send-to-services", "color": "gray" }, "color": "#303E4D", "notes": "", "options": { "wirename": "send-to-services" } }, { "id": "1667235009598", "component": "timesetter", "tab": "1667235000217", "name": "Timesetter", "x": 245.0833282470703, "y": 166, "connections": { "0": [ { "index": "0", "id": "1667235037440" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#656D78", "notes": "", "options": {} }, { "id": "1667235012156", "component": "timer", "tab": "1667235000217", "name": "Timer", "x": 38.08332824707031, "y": 249, "connections": { "0": [ { "index": "0", "id": "1667235009598" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#F6BB42", "notes": "", "options": { "interval": 86400000 } }, { "id": "1667235031667", "component": "trigger", "tab": "1667235000217", "name": "Trigger", "x": 41.08332824707031, "y": 168, "connections": { "0": [ { "index": "0", "id": "1667235009598" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#F6BB42", "notes": "", "options": {} }, { "id": "1667235037440", "component": "debug", "tab": "1667235000217", "name": "Debug", "x": 441.0833282470703, "y": 162, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1669850052514", "component": "debug", "tab": "1636110831878", "name": "Http req data", "x": 372.0833282470703, "y": 422, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } }, { "id": "1694077414274", "component": "httprequest", "tab": "1636110831878", "name": "grafia-prod01.worksys.io/rerouting74", "x": 224, "y": 584, "connections": { "0": [ { "index": "0", "id": "1694077451207" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "color": "#5D9CEC", "notes": "", "options": { "type": "json", "url": "http://192.168.252.2:8005/rerouting74", "method": "POST", "stringify": "json" } }, { "id": "1694077451207", "component": "debug", "tab": "1636110831878", "name": "rerouting", "x": 591.0833282470703, "y": 529, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "color": "#967ADC", "notes": "", "options": { "type": "data", "repository": false, "enabled": true } } ], "version": 624 }