From 31fe341ef166a1dfb17b602c0c5901c37bc99c62 Mon Sep 17 00:00:00 2001 From: rasta5man Date: Tue, 14 May 2024 16:17:58 +0200 Subject: [PATCH] refactoring - no change --- flow/cmd_manager.js | 2 +- flow/designer.json | 694 +++++++++++++++++++++----------------------- 2 files changed, 327 insertions(+), 369 deletions(-) diff --git a/flow/cmd_manager.js b/flow/cmd_manager.js index 7f77d20..3c18f1d 100644 --- a/flow/cmd_manager.js +++ b/flow/cmd_manager.js @@ -2261,7 +2261,7 @@ exports.install = function(instance) { //if(state_of_breaker[line] == "Off") disconnected = true; } - //toto sa reportuje po prijati dat z di_do_controlera + //toto sa reportuje po prijati dat z dido_controlera if(disconnected) { diff --git a/flow/designer.json b/flow/designer.json index 9fe9d06..7cb3ebb 100644 --- a/flow/designer.json +++ b/flow/designer.json @@ -20,37 +20,13 @@ } ], "components": [ - { - "id": "1611938192035", - "component": "debug", - "tab": "1611921777196", - "name": "modbus_ddebug", - "x": 400.5, - "y": 121.5, - "connections": {}, - "disabledio": { - "input": [], - "output": [] - }, - "state": { - "text": "Enabled", - "color": "gray" - }, - "options": { - "type": "data", - "repository": false, - "enabled": true - }, - "color": "#967ADC", - "notes": "" - }, { "id": "1611951142547", "component": "debug", "tab": "1611921777196", "name": "ERROR", "x": 404, - "y": 29, + "y": 36, "connections": {}, "disabledio": { "input": [], @@ -60,35 +36,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#DA4453", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#DA4453", - "notes": "" - }, - { - "id": "1612772119611", - "component": "virtualwireout", - "tab": "1611921777196", - "name": "tb-push", - "x": 399.75, - "y": 211.5, - "connections": {}, - "disabledio": { - "input": [], - "output": [] - }, - "state": { - "text": "tb-push", - "color": "gray" - }, - "options": { - "wirename": "tb-push" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1612776786008", @@ -96,7 +50,7 @@ "tab": "1612772287426", "name": "WS MQTT publish", "x": 311.75, - "y": 268, + "y": 248, "connections": { "0": [ { @@ -133,14 +87,14 @@ "text": "Connected", "color": "green" }, + "color": "#888600", + "notes": "", "options": { "username": "", "clientid": "", "port": "1883", "host": "" - }, - "color": "#888600", - "notes": "" + } }, { "id": "1612778461252", @@ -148,7 +102,7 @@ "tab": "1612772287426", "name": "tb-push", "x": 68.75, - "y": 289, + "y": 269, "connections": { "0": [ { @@ -169,11 +123,11 @@ "text": "tb-push", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "tb-push" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1612783322136", @@ -181,7 +135,7 @@ "tab": "1612772287426", "name": "to TB", "x": 317.75, - "y": 174, + "y": 154, "connections": {}, "disabledio": { "input": [ @@ -193,33 +147,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" - }, - { - "id": "1613576617722", - "component": "comment", - "tab": "1612772287426", - "name": "In case broker is not ready, we save data to database, and when connected, we resend data", - "x": 72.88333129882812, - "y": 32, - "connections": {}, - "disabledio": { - "input": [], - "output": [] - }, - "state": { - "text": "", - "color": "gray" - }, - "options": {}, - "color": "#704cff", - "notes": "" + } }, { "id": "1615551060773", @@ -227,7 +161,7 @@ "tab": "1612772287426", "name": "errors from MQTT Broker", "x": 610, - "y": 131, + "y": 111, "connections": {}, "disabledio": { "input": [ @@ -239,21 +173,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#DA4453", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#DA4453", - "notes": "" + } }, { "id": "1615563373927", "component": "debug", "tab": "1615551125555", "name": "Debug", - "x": 763, - "y": 123, + "x": 755, + "y": 19, "connections": {}, "disabledio": { "input": [ @@ -265,21 +199,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#DA4453", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#DA4453", - "notes": "" + } }, { "id": "1615566865233", "component": "virtualwireout", "tab": "1615551125555", "name": "tb-push", - "x": 761, - "y": 216, + "x": 753, + "y": 112, "connections": {}, "disabledio": { "input": [], @@ -289,19 +223,19 @@ "text": "tb-push", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "tb-push" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1615798582262", "component": "debug", "tab": "1615551125555", "name": "CMD_debug", - "x": 758, - "y": 301, + "x": 750, + "y": 197, "connections": {}, "disabledio": { "input": [ @@ -313,21 +247,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1615802995322", "component": "debug", "tab": "1611921777196", "name": "Debug", - "x": 398.8833312988281, - "y": 477.3500061035156, + "x": 400.8833312988281, + "y": 484.3500061035156, "connections": {}, "disabledio": { "input": [ @@ -339,21 +273,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1615809128443", "component": "debug", "tab": "1611921777196", "name": "Debug", - "x": 406.8833312988281, - "y": 567.3500061035156, + "x": 405.8833312988281, + "y": 566.3500061035156, "connections": {}, "disabledio": { "input": [ @@ -365,21 +299,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1615809595184", "component": "virtualwireout", "tab": "1611921777196", "name": "tb-push", - "x": 404.8833312988281, - "y": 653.25, + "x": 401.8833312988281, + "y": 306.25, "connections": {}, "disabledio": { "input": [], @@ -389,19 +323,19 @@ "text": "tb-push", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "tb-push" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1616165795916", "component": "httproute", "tab": "1615551125555", "name": "POST /terminal", - "x": 110, - "y": 508, + "x": 72, + "y": 350, "connections": { "0": [ { @@ -422,6 +356,9 @@ "text": "Listening", "color": "green" }, + "color": "#5D9CEC", + "notes": "### Configuration\n\n- __POST /terminal__\n- flags: \n- maximum request data length: __5 kB__\n- empty response: __false__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", + "cloning": false, "options": { "timeout": 10, "cachepolicy": 0, @@ -436,18 +373,15 @@ 10000 ], "emptyresponse": false - }, - "color": "#5D9CEC", - "notes": "### Configuration\n\n- __POST /terminal__\n- flags: \n- maximum request data length: __5 kB__\n- empty response: __false__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", - "cloning": false + } }, { "id": "1616165824813", "component": "httpresponse", "tab": "1615551125555", "name": "HTTP Response", - "x": 759, - "y": 377, + "x": 751, + "y": 273, "connections": {}, "disabledio": { "input": [], @@ -457,19 +391,19 @@ "text": "", "color": "gray" }, + "color": "#5D9CEC", + "notes": "", "options": { "datatype": "json" - }, - "color": "#5D9CEC", - "notes": "" + } }, { "id": "1617104731852", "component": "debug", "tab": "1615551125555", "name": "DIDO_Debug", - "x": 743, - "y": 839, + "x": 739, + "y": 635, "connections": {}, "disabledio": { "input": [ @@ -481,21 +415,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1617114651703", "component": "trigger", "tab": "1615551125555", "name": "turnOff line", - "x": 75, - "y": 1033, + "x": 71, + "y": 829, "connections": { "0": [ { @@ -512,20 +446,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "data": "{line: 3, command: \"turnOff\", force: true}", "datatype": "object" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1617115013095", "component": "virtualwireout", "tab": "1615551125555", "name": "tb-push", - "x": 751, - "y": 940, + "x": 747, + "y": 736, "connections": {}, "disabledio": { "input": [], @@ -535,19 +469,19 @@ "text": "tb-push", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "tb-push" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1617178324650", "component": "debug", "tab": "1615551125555", "name": "Debug", - "x": 628, - "y": 1246, + "x": 605, + "y": 1024, "connections": {}, "disabledio": { "input": [], @@ -557,21 +491,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1617179044099", "component": "trigger", "tab": "1615551125555", "name": "start import", - "x": 258, - "y": 1254, + "x": 235, + "y": 1032, "connections": { "0": [ { @@ -588,20 +522,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "datatype": "object", "data": "{table: \"konsberg_production_line_operations_error\", startFrom: 1, delimiter: \";\", uniqueColumn: \"\", path: \"flow/operations_error.csv\", mapImport: {0: \"production_line\",\t1: \"operation\", 2: \"error_type\", 3: \"error_code\", 4: \"error_text\", 5: \"error_text_user_defined\"}}" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1617180390661", "component": "csv_import", "tab": "1615551125555", "name": "CsvImport", - "x": 437, - "y": 1235, + "x": 414, + "y": 1013, "connections": { "0": [ { @@ -618,19 +552,19 @@ "text": "", "color": "gray" }, + "color": "#2134B0", + "notes": "", "options": { "edge": "undefined" - }, - "color": "#2134B0", - "notes": "" + } }, { "id": "1617197763128", "component": "comment", "tab": "1615551125555", "name": "import data from csv", - "x": 424, - "y": 1168, + "x": 401, + "y": 946, "connections": {}, "disabledio": { "input": [], @@ -640,17 +574,17 @@ "text": "", "color": "gray" }, - "options": {}, "color": "#704cff", - "notes": "" + "notes": "", + "options": {} }, { "id": "1617284749681", "component": "trigger", "tab": "1615551125555", "name": "update profile / node", - "x": 119, - "y": 130, + "x": 80, + "y": 13, "connections": { "0": [ { @@ -667,20 +601,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "datatype": "string", "data": "profile_nodes" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1618235171399", "component": "trigger", "tab": "1615551125555", - "name": "run tasks", - "x": 122, - "y": 206, + "name": "tun tasks", + "x": 77, + "y": 84, "connections": { "0": [ { @@ -697,11 +631,11 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "data": "run" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1618300858252", @@ -709,7 +643,7 @@ "tab": "1612772287426", "name": "wsmqtt-exit1", "x": 610.8833312988281, - "y": 219, + "y": 199, "connections": {}, "disabledio": { "input": [], @@ -719,13 +653,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1618300863816", @@ -733,7 +667,7 @@ "tab": "1612772287426", "name": "wsmqtt-exit2", "x": 611.8833312988281, - "y": 394, + "y": 374, "connections": {}, "disabledio": { "input": [ @@ -745,21 +679,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1618393583970", "component": "virtualwireout", "tab": "1615551125555", "name": "to-cmd-manager", - "x": 744.8833312988281, - "y": 1032, + "x": 740.8833312988281, + "y": 828, "connections": {}, "disabledio": { "input": [], @@ -769,19 +703,19 @@ "text": "from-dido-controller", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "from-dido-controller" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1618393674428", "component": "virtualwirein", "tab": "1615551125555", "name": "platform-rpc-call", - "x": 115.88333129882812, - "y": 316, + "x": 77.88333129882812, + "y": 173, "connections": { "0": [ { @@ -798,19 +732,19 @@ "text": "platform-rpc-call", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "platform-rpc-call" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1618393759854", "component": "virtualwirein", "tab": "1615551125555", "name": "cmd_to_dido", - "x": 78.88333129882812, - "y": 864, + "x": 76.88333129882812, + "y": 678, "connections": { "0": [ { @@ -831,19 +765,19 @@ "text": "cmd_to_dido", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "cmd_to_dido" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1618393827655", "component": "virtualwireout", "tab": "1615551125555", "name": "cmd_to_dido", - "x": 756.8833312988281, - "y": 477, + "x": 748.8833312988281, + "y": 373, "connections": {}, "disabledio": { "input": [], @@ -853,11 +787,11 @@ "text": "cmd_to_dido", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "cmd_to_dido" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1618558465485", @@ -865,7 +799,7 @@ "tab": "1612772287426", "name": "platform-rpc-call", "x": 611.8833312988281, - "y": 307, + "y": 287, "connections": {}, "disabledio": { "input": [], @@ -875,19 +809,19 @@ "text": "platform-rpc-call", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "platform-rpc-call" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1618572059773", "component": "trigger", "tab": "1615551125555", "name": "turnOn line", - "x": 76, - "y": 947, + "x": 72, + "y": 756, "connections": { "0": [ { @@ -904,20 +838,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "datatype": "object", "data": "{line: 1, command: \"turnOn\", force: true}" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1619515097737", "component": "cmd_manager", "tab": "1615551125555", "name": "CMD Manager", - "x": 442, - "y": 290, + "x": 420, + "y": 156, "connections": { "0": [ { @@ -962,17 +896,17 @@ "text": "", "color": "gray" }, - "options": {}, "color": "#5D9CEC", - "notes": "" + "notes": "", + "options": {} }, { "id": "1619605019281", "component": "httproute", "tab": "1615551125555", "name": "GET db", - "x": 104, - "y": 619, + "x": 73, + "y": 455, "connections": { "0": [ { @@ -993,6 +927,9 @@ "text": "Listening", "color": "green" }, + "color": "#5D9CEC", + "notes": "### Configuration\n\n- __GET /db__\n- flags: undefined\n- maximum request data length: __5 kB__\n- empty response: __undefined__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", + "cloning": false, "options": { "timeout": 5, "cachepolicy": 0, @@ -1006,18 +943,15 @@ "get", 5000 ] - }, - "color": "#5D9CEC", - "notes": "### Configuration\n\n- __GET /db__\n- flags: undefined\n- maximum request data length: __5 kB__\n- empty response: __undefined__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", - "cloning": false + } }, { "id": "1619784672383", "component": "trigger", "tab": "1615551125555", "name": "turnOnAlarm", - "x": 72, - "y": 1106, + "x": 68, + "y": 902, "connections": { "0": [ { @@ -1034,20 +968,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "data": "{command: \"turnOnAlarm\"}", "datatype": "object" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1619784812964", "component": "trigger", "tab": "1615551125555", "name": "turnOffAlarm", - "x": 71, - "y": 1179, + "x": 67, + "y": 975, "connections": { "0": [ { @@ -1064,20 +998,20 @@ "text": "", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "data": "{command: \"turnOffAlarm\"}", "datatype": "object" - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1621340721628", "component": "virtualwireout", "tab": "1611921777196", "name": "modbus_to_dido", - "x": 396, - "y": 390, + "x": 403, + "y": 394, "connections": {}, "disabledio": { "input": [], @@ -1087,11 +1021,11 @@ "text": "modbus_to_dido", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "modbus_to_dido" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1622640022885", @@ -1116,6 +1050,9 @@ "text": "Listening", "color": "green" }, + "color": "#5D9CEC", + "notes": "### Configuration\n\n- __POST /db_connector__\n- flags: \n- maximum request data length: __5 kB__\n- empty response: __undefined__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", + "cloning": false, "options": { "timeout": 5, "cachepolicy": 0, @@ -1128,10 +1065,7 @@ "post", 5000 ] - }, - "color": "#5D9CEC", - "notes": "### Configuration\n\n- __POST /db_connector__\n- flags: \n- maximum request data length: __5 kB__\n- empty response: __undefined__\n- cache policy: __no cache__\n- cache expire: __5 minutes__", - "cloning": false + } }, { "id": "1622640073521", @@ -1156,11 +1090,11 @@ "text": "", "color": "gray" }, + "color": "#2134B0", + "notes": "", "options": { "edge": "undefined" - }, - "color": "#2134B0", - "notes": "" + } }, { "id": "1622641420685", @@ -1178,9 +1112,9 @@ "text": "", "color": "gray" }, - "options": {}, "color": "#5D9CEC", - "notes": "" + "notes": "", + "options": {} }, { "id": "1634303504177", @@ -1188,7 +1122,7 @@ "tab": "1612772287426", "name": "RAM", "x": 71.88333129882812, - "y": 629.5, + "y": 609.5, "connections": { "0": [ { @@ -1202,15 +1136,15 @@ "output": [] }, "state": { - "text": "826.22 MB / 985.68 MB", + "text": "801.23 MB / 987.80 MB", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "enabled": true, "interval": 30000 - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1634303533779", @@ -1218,7 +1152,7 @@ "tab": "1612772287426", "name": "disk", "x": 72.88333129882812, - "y": 726.5, + "y": 706.5, "connections": { "0": [ { @@ -1232,16 +1166,16 @@ "output": [] }, "state": { - "text": "5.85 GB / 7.26 GB", + "text": "5.90 GB / 7.26 GB", "color": "gray" }, + "color": "#F6BB42", + "notes": "", "options": { "enabled": true, "path": "/", "interval": 30000 - }, - "color": "#F6BB42", - "notes": "" + } }, { "id": "1634303595494", @@ -1249,7 +1183,7 @@ "tab": "1612772287426", "name": "send-to-services", "x": 5.883331298828125, - "y": 1089.5, + "y": 1069.5, "connections": { "0": [ { @@ -1270,11 +1204,11 @@ "text": "send-to-services", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "send-to-services" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1634303602169", @@ -1282,7 +1216,7 @@ "tab": "1612772287426", "name": "send-to-services", "x": 428.8833312988281, - "y": 622.5, + "y": 602.5, "connections": {}, "disabledio": { "input": [], @@ -1292,11 +1226,11 @@ "text": "send-to-services", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "send-to-services" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1634303685503", @@ -1304,7 +1238,7 @@ "tab": "1612772287426", "name": "send-to-services", "x": 612.8833312988281, - "y": 482.5, + "y": 462.5, "connections": {}, "disabledio": { "input": [], @@ -1314,11 +1248,11 @@ "text": "send-to-services", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "send-to-services" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1634303743260", @@ -1327,7 +1261,7 @@ "name": "http://192.168.252.2:8004/sentmessage", "reference": "", "x": 439.8833312988281, - "y": 1096.7333374023438, + "y": 1076.7333374023438, "connections": { "0": [ { @@ -1344,13 +1278,13 @@ "text": "", "color": "gray" }, + "color": "#5D9CEC", + "notes": "", "options": { "stringify": "json", "method": "POST", "url": "http://192.168.252.2:8004/sentmessage" - }, - "color": "#5D9CEC", - "notes": "" + } }, { "id": "1634463186563", @@ -1358,7 +1292,7 @@ "tab": "1612772287426", "name": "Debug", "x": 234.75, - "y": 1044, + "y": 1024, "connections": {}, "disabledio": { "input": [ @@ -1370,13 +1304,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1634464580289", @@ -1384,7 +1318,7 @@ "tab": "1612772287426", "name": "Code", "x": 255, - "y": 532, + "y": 512, "connections": { "0": [ { @@ -1405,13 +1339,13 @@ "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 - }, - "color": "#656D78", - "notes": "" + } }, { "id": "1634465243324", @@ -1419,7 +1353,7 @@ "tab": "1612772287426", "name": "Debug", "x": 430, - "y": 528, + "y": 508, "connections": {}, "disabledio": { "input": [ @@ -1431,13 +1365,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1634465281992", @@ -1445,7 +1379,7 @@ "tab": "1612772287426", "name": "Code", "x": 244, - "y": 628, + "y": 608, "connections": { "0": [ { @@ -1466,13 +1400,13 @@ "text": "", "color": "gray" }, + "color": "#656D78", + "notes": "", "options": { "keepmessage": true, "code": "value.sender = \"ram\";\n//let total = value.total/1024/1024;\n//let free = value.free/1024/1024;\n//let used = value.used/1024/1024;\nlet response = {};\n//value.memory_total = (total).toFixed(0) + ' MB';\n//value.memory_free = (free).toFixed(0) + ' MB';\n//value.memory_used = (used).toFixed(0) + ' MB';\n\nresponse.memory_total = value.total;\nresponse.memory_free = value.free;\nresponse.memory_used = value.used;\n\nsend(0, response);", "outputs": 1 - }, - "color": "#656D78", - "notes": "" + } }, { "id": "1634465338103", @@ -1480,7 +1414,7 @@ "tab": "1612772287426", "name": "Debug", "x": 431, - "y": 720, + "y": 700, "connections": {}, "disabledio": { "input": [ @@ -1492,13 +1426,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1634465821120", @@ -1506,7 +1440,7 @@ "tab": "1612772287426", "name": "Code", "x": 247, - "y": 722, + "y": 702, "connections": { "0": [ { @@ -1527,13 +1461,13 @@ "text": "", "color": "gray" }, + "color": "#656D78", + "notes": "", "options": { "keepmessage": true, "code": "value.sender = \"hdd\";\n//let total = value.total/1024/1024;\n//let free = value.free/1024/1024;\n//let used = value.used/1024/1024;\nlet response = {};\n//value.hdd_total = (total).toFixed(0) + ' MB';\n//value.hdd_free = (free).toFixed(0) + ' MB';\n//value.used = (used).toFixed(0) + ' MB';\n\nresponse.hdd_total = value.total;\nresponse.hdd_free = value.free;\nresponse.hdd_used = value.used;\n\nsend(0, response);", "outputs": 1 - }, - "color": "#656D78", - "notes": "" + } }, { "id": "1634465892500", @@ -1541,7 +1475,7 @@ "tab": "1612772287426", "name": "Debug", "x": 434, - "y": 812, + "y": 792, "connections": {}, "disabledio": { "input": [ @@ -1553,13 +1487,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1634484067516", @@ -1567,7 +1501,7 @@ "tab": "1612772287426", "name": "Send info", "x": 438, - "y": 1205, + "y": 1185, "connections": {}, "disabledio": { "input": [ @@ -1579,13 +1513,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1634488120710", @@ -1593,7 +1527,7 @@ "tab": "1612772287426", "name": "Info sender", "x": 233, - "y": 1142, + "y": 1122, "connections": { "0": [ { @@ -1614,11 +1548,11 @@ "text": "", "color": "gray" }, + "color": "#2134B0", + "notes": "", "options": { "edge": "undefined" - }, - "color": "#2134B0", - "notes": "" + } }, { "id": "1635327431236", @@ -1626,7 +1560,7 @@ "tab": "1612772287426", "name": "Debug", "x": 811.8833312988281, - "y": 1090.5, + "y": 1070.5, "connections": {}, "disabledio": { "input": [ @@ -1638,21 +1572,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1635936391935", "component": "virtualwireout", "tab": "1615551125555", "name": "send-to-services", - "x": 756, - "y": 568, + "x": 748, + "y": 464, "connections": {}, "disabledio": { "input": [], @@ -1662,11 +1596,11 @@ "text": "send-to-services", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "send-to-services" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1637069803394", @@ -1674,7 +1608,7 @@ "tab": "1612772287426", "name": "CPU", "x": 71, - "y": 535, + "y": 515, "connections": { "0": [ { @@ -1688,9 +1622,11 @@ "output": [] }, "state": { - "text": "0.9% / 86.46 MB", + "text": "11.7% / 69.98 MB", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "monitorfiles": true, "monitorconnections": true, @@ -1698,17 +1634,15 @@ "monitorconsumption": true, "enabled": true, "interval": 30000 - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1683664161036", "component": "debug", "tab": "1615551125555", "name": "CMDtoDIDO", - "x": 417, - "y": 858, + "x": 413, + "y": 654, "connections": {}, "disabledio": { "input": [ @@ -1720,21 +1654,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1683981346282", "component": "virtualwirein", "tab": "1615551125555", "name": "from-dido-controller", - "x": 113, - "y": 423, + "x": 71, + "y": 260, "connections": { "0": [ { @@ -1755,19 +1689,19 @@ "text": "from-dido-controller", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "from-dido-controller" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1684055037116", "component": "debug", "tab": "1615551125555", "name": "from dido to cmd", - "x": 441, - "y": 461, + "x": 423, + "y": 331, "connections": {}, "disabledio": { "input": [ @@ -1779,21 +1713,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1684060205000", "component": "debug", "tab": "1615551125555", "name": "HTTP routes", - "x": 441, - "y": 564, + "x": 423, + "y": 422, "connections": {}, "disabledio": { "input": [ @@ -1805,21 +1739,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1684179110403", "component": "debug", "tab": "1611921777196", "name": "MDBToDido", - "x": 402, - "y": 300, + "x": 401, + "y": 125, "connections": {}, "disabledio": { "input": [], @@ -1829,21 +1763,21 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1699963668903", "component": "dido_controller", "tab": "1615551125555", "name": "DIDO_Controller", - "x": 406, - "y": 940, + "x": 402, + "y": 736, "connections": { "0": [ { @@ -1876,19 +1810,19 @@ "text": "", "color": "gray" }, + "color": "#2134B0", + "notes": "", "options": { "edge": "undefined" - }, - "color": "#2134B0", - "notes": "" + } }, { "id": "1699964678894", "component": "virtualwirein", "tab": "1615551125555", "name": "modbus_to_dido", - "x": 83, - "y": 775, + "x": 79, + "y": 595, "connections": { "0": [ { @@ -1909,19 +1843,19 @@ "text": "modbus_to_dido", "color": "gray" }, + "color": "#303E4D", + "notes": "", "options": { "wirename": "modbus_to_dido" - }, - "color": "#303E4D", - "notes": "" + } }, { "id": "1699964793925", "component": "debug", "tab": "1615551125555", "name": "modbusToDido", - "x": 415, - "y": 765, + "x": 411, + "y": 561, "connections": {}, "disabledio": { "input": [ @@ -1933,13 +1867,13 @@ "text": "Enabled", "color": "gray" }, + "color": "#967ADC", + "notes": "", "options": { "type": "data", "repository": false, "enabled": true - }, - "color": "#967ADC", - "notes": "" + } }, { "id": "1699965957410", @@ -1968,11 +1902,11 @@ "2": [ { "index": "0", - "id": "1621340721628" + "id": "1615809595184" }, { "index": "0", - "id": "1684179110403" + "id": "1714752862828" } ] }, @@ -1984,17 +1918,17 @@ "text": "", "color": "gray" }, - "options": {}, "color": "#2134B0", - "notes": "" + "notes": "", + "options": {} }, { "id": "1700411878636", "component": "thermometer", "tab": "1611921777196", "name": "Thermometer", - "x": 94.75, - "y": 414, + "x": 103.75, + "y": 408, "connections": { "0": [ { @@ -2027,10 +1961,34 @@ "text": "", "color": "gray" }, - "options": {}, "color": "#5CB36D", - "notes": "" + "notes": "", + "options": {} + }, + { + "id": "1714752862828", + "component": "debug", + "tab": "1611921777196", + "name": "MDBToTb", + "x": 402, + "y": 215, + "connections": {}, + "disabledio": { + "input": [], + "output": [] + }, + "state": { + "text": "Enabled", + "color": "gray" + }, + "color": "#967ADC", + "notes": "", + "options": { + "type": "data", + "repository": false, + "enabled": true + } } ], - "version": 615 + "version": 618 } \ No newline at end of file