{ "tabs": [ { "name": "MAIN PUSH", "linker": "main-push", "id": "1612772287426", "index": 0 }, { "name": "CMD manager", "linker": "cmd-manager", "id": "1615551125555", "index": 1 }, { "name": "Devices", "linker": "devices", "id": "1611921777196", "index": 2 } ], "components": [ { "id": "1611938185451", "component": "modbus_citysys", "tab": "1611921777196", "name": "Modbus_citysys", "x": 159.5, "y": 164.5, "connections": { "0": [ { "index": "0", "id": "1611951142547" } ], "1": [ { "index": "0", "id": "1611938192035" } ], "2": [ { "index": "0", "id": "1612772119611" }, { "index": "0", "id": "1611938192035" } ], "3": [ { "index": "0", "id": "1621340721628" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "Running", "color": "green" }, "options": { "edge": "KjbN4q7JPZmexgdnz2yKQ98YAWwO0Q3BMX6ERLoV" }, "color": "#2134B0", "notes": "" }, { "id": "1611938192035", "component": "debug", "tab": "1611921777196", "name": "Debug", "x": 566.5, "y": 168.5, "connections": {}, "disabledio": { "input": [ 0 ], "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": 562, "y": 54, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#DA4453", "notes": "" }, { "id": "1612772119611", "component": "virtualwireout", "tab": "1611921777196", "name": "tb-demo-push", "x": 625.75, "y": 324.5, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-demo-push", "color": "gray" }, "options": { "wirename": "tb-demo-push" }, "color": "#303E4D", "notes": "" }, { "id": "1612776786008", "component": "wsmqttpublish", "tab": "1612772287426", "name": "WS MQTT publish", "x": 384.75, "y": 247, "connections": { "0": [ { "index": "0", "id": "1615551060773" } ], "1": [ { "index": "0", "id": "1618300858252" }, { "index": "0", "id": "1618558465485" } ], "2": [ { "index": "0", "id": "1613568918462" }, { "index": "0", "id": "1618300863816" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "Connected", "color": "green" }, "options": { "username": "", "clientid": "", "port": "1883", "host": "" }, "color": "#888600", "notes": "" }, { "id": "1612778461252", "component": "virtualwirein", "tab": "1612772287426", "name": "tb-demo-push", "x": 68.75, "y": 269, "connections": { "0": [ { "index": "0", "id": "1612776786008" }, { "index": "0", "id": "1612783322136" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-demo-push", "color": "gray" }, "options": { "wirename": "tb-demo-push" }, "color": "#303E4D", "notes": "" }, { "id": "1612783322136", "component": "debug", "tab": "1612772287426", "name": "Debug", "x": 426.75, "y": 140, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1613568918462", "component": "nosql", "tab": "1612772287426", "name": "Insert data to DB", "x": 653.8833312988281, "y": 460, "connections": { "0": [ { "index": "0", "id": "1613568955702" } ], "1": [ { "index": "0", "id": "1613568983491" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "method": "insert", "collection": "tbdata", "addid": true }, "color": "#D770AD", "notes": "" }, { "id": "1613568955702", "component": "debug", "tab": "1612772287426", "name": "Insert NOSQL", "x": 906.8833312988281, "y": 404, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1613568983491", "component": "debug", "tab": "1612772287426", "name": "Inserted data NOSQL", "x": 907.8833312988281, "y": 501, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1613569046792", "component": "httproute", "tab": "1612772287426", "name": "GET /tbdata", "x": 36.883331298828125, "y": 526, "connections": { "0": [ { "index": "0", "id": "1613569068475" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "Listening", "color": "green" }, "options": { "timeout": 5, "cachepolicy": 0, "cacheexpire": "5 minutes", "size": 5, "url": "/tbdata", "method": "GET", "name": "", "flags": [ "id:1613569046792", "get", 5000 ] }, "color": "#5D9CEC", "notes": "### Configuration\n\n- __GET /tbdata__\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": "1613569068475", "component": "nosql", "tab": "1612772287426", "name": "GET data from db", "x": 248.88333129882812, "y": 629, "connections": { "0": [ { "index": "0", "id": "1613569129780" }, { "index": "0", "id": "1613574834147" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "method": "query", "collection": "tbdata" }, "color": "#D770AD", "notes": "" }, { "id": "1613569129780", "component": "code", "tab": "1612772287426", "name": "Code", "x": 522.8833312988281, "y": 702, "connections": { "0": [ { "index": "0", "id": "1613569234477" } ], "1": [ { "index": "0", "id": "1613569202286" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "keepmessage": true, "code": "//send(1, value);\n//value[\"response\"].map( item => {\n //if (typeof item.id !== \"undefined\" ){\n\t//send(0, {id:item.id});\n //}\n//})\n\nsend(1, value);\nlet reversed = value[\"response\"].reverse();\nreversed.map( item => {\n\tif (item.id !== undefined) {\n\t\tsend(0, {id: item.id});\n\t}\n})", "outputs": 2 }, "color": "#656D78", "notes": "", "output": 2 }, { "id": "1613569202286", "component": "debug", "tab": "1612772287426", "name": "Data from DB", "x": 717.8833312988281, "y": 773, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1613569234477", "component": "nosql", "tab": "1612772287426", "name": "Remove data from DB", "x": 715.8833312988281, "y": 650, "connections": { "0": [ { "index": "0", "id": "1613569269806" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "method": "remove", "collection": "tbdata" }, "color": "#D770AD", "notes": "" }, { "id": "1613569269806", "component": "debug", "tab": "1612772287426", "name": "Removed data", "x": 1006.8833312988281, "y": 602, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1613574834147", "component": "httpresponse", "tab": "1612772287426", "name": "HTTP Response", "x": 498.8833312988281, "y": 569, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "0.29 sec.", "color": "gray" }, "options": { "datatype": "json" }, "color": "#5D9CEC", "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": 12, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": {}, "color": "#704cff", "notes": "" }, { "id": "1615551060773", "component": "debug", "tab": "1612772287426", "name": "errors from MQTT Broker", "x": 660, "y": 106, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#DA4453", "notes": "" }, { "id": "1615563373927", "component": "debug", "tab": "1615551125555", "name": "Debug", "x": 803, "y": 27, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#DA4453", "notes": "" }, { "id": "1615566865233", "component": "virtualwireout", "tab": "1615551125555", "name": "tb-demo-push", "x": 802, "y": 101, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-demo-push", "color": "gray" }, "options": { "wirename": "tb-demo-push" }, "color": "#303E4D", "notes": "" }, { "id": "1615798582262", "component": "debug", "tab": "1615551125555", "name": "data to TB", "x": 802, "y": 190, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1615802995322", "component": "debug", "tab": "1611921777196", "name": "Debug", "x": 660.8833312988281, "y": 527.3500061035156, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1615809128443", "component": "debug", "tab": "1611921777196", "name": "Debug", "x": 649.8833312988281, "y": 633.3500061035156, "connections": {}, "disabledio": { "input": [ 0 ], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1615809595184", "component": "virtualwireout", "tab": "1611921777196", "name": "tb-demo-push", "x": 403.8833312988281, "y": 663.25, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-demo-push", "color": "gray" }, "options": { "wirename": "tb-demo-push" }, "color": "#303E4D", "notes": "" }, { "id": "1615809105191", "component": "gettemperature", "tab": "1611921777196", "name": "Get RVO temperature", "x": 124.88333129882812, "y": 488.3500061035156, "connections": { "0": [ { "index": "0", "id": "1615802995322" } ], "1": [ { "index": "0", "id": "1615809128443" }, { "index": "0", "id": "1615809595184" } ], "2": [ { "index": "0", "id": "1621340721628" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": {}, "color": "#5CB36D", "notes": "" }, { "id": "1616165795916", "component": "httproute", "tab": "1615551125555", "name": "POST /terminal", "x": 72, "y": 314, "connections": { "0": [ { "index": "0", "id": "1619515097737" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "Listening", "color": "green" }, "options": { "timeout": 5, "cachepolicy": 0, "cacheexpire": "5 minutes", "size": 5, "url": "/terminal", "method": "POST", "name": "", "flags": [ "id:1616165795916", "post", 5000 ] }, "color": "#5D9CEC", "notes": "### Configuration\n\n- __POST /terminal__\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": "1616165824813", "component": "httpresponse", "tab": "1615551125555", "name": "HTTP Response", "x": 800, "y": 273, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "datatype": "json" }, "color": "#5D9CEC", "notes": "" }, { "id": "1617104731852", "component": "debug", "tab": "1615551125555", "name": "Debug", "x": 803, "y": 499, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1617114651703", "component": "trigger", "tab": "1615551125555", "name": "turnOff line", "x": 74, "y": 507, "connections": { "0": [ { "index": "0", "id": "1618232536546" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "datatype": "object", "data": "{line: 1, command: \"turnOff\"}" }, "color": "#F6BB42", "notes": "" }, { "id": "1617115013095", "component": "virtualwireout", "tab": "1615551125555", "name": "tb-demo-push", "x": 797, "y": 596, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "tb-demo-push", "color": "gray" }, "options": { "wirename": "tb-demo-push" }, "color": "#303E4D", "notes": "" }, { "id": "1617178324650", "component": "debug", "tab": "1615551125555", "name": "Debug", "x": 703, "y": 846, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1617179044099", "component": "trigger", "tab": "1615551125555", "name": "start import", "x": 300, "y": 791, "connections": { "0": [ { "index": "0", "id": "1617180390661" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "data": "{table: \"nodesx\", startFrom: 1, delimiter: \";\", uniqueColumn: \"node\", path: \"flow/audit_rvo14_lampy.csv\", mapImport: {1: \"node\",\t3: \"tbname\", 2: \"line\"}}", "datatype": "object" }, "color": "#F6BB42", "notes": "" }, { "id": "1617180390661", "component": "csv_import", "tab": "1615551125555", "name": "CsvImport", "x": 508, "y": 809, "connections": { "0": [ { "index": "0", "id": "1617178324650" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "edge": "undefined" }, "color": "#2134B0", "notes": "" }, { "id": "1617197763128", "component": "comment", "tab": "1615551125555", "name": "import data from csv", "x": 485, "y": 748, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": {}, "color": "#704cff", "notes": "" }, { "id": "1617284749681", "component": "trigger", "tab": "1615551125555", "name": "update profile / node", "x": 77, "y": 57, "connections": { "0": [ { "index": "0", "id": "1619515097737" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "data": "profile_nodes", "datatype": "string" }, "color": "#F6BB42", "notes": "" }, { "id": "1618232536546", "component": "di_do_controller", "tab": "1615551125555", "name": "DI_DO_Controller", "x": 450, "y": 547, "connections": { "0": [ { "index": "0", "id": "1617104731852" } ], "1": [ { "index": "0", "id": "1617115013095" } ], "2": [ { "index": "0", "id": "1618393583970" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "edge": "R3JjOWdylwgNLzxVab7NEBkZ2vG64rq8PEB5QmDo" }, "color": "#2134B0", "notes": "" }, { "id": "1618235171399", "component": "trigger", "tab": "1615551125555", "name": "tun tasks", "x": 80, "y": 134, "connections": { "0": [ { "index": "0", "id": "1619515097737" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "data": "run" }, "color": "#F6BB42", "notes": "" }, { "id": "1618300858252", "component": "debug", "tab": "1612772287426", "name": "wsmqtt-exit1", "x": 657.8833312988281, "y": 198, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1618300863816", "component": "debug", "tab": "1612772287426", "name": "wsmqtt-exit2", "x": 654.8833312988281, "y": 384, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "Enabled", "color": "gray" }, "options": { "type": "data", "repository": false, "enabled": true }, "color": "#967ADC", "notes": "" }, { "id": "1618393583970", "component": "virtualwireout", "tab": "1615551125555", "name": "platform-rpc-call", "x": 802.8833312988281, "y": 687, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "platform-rpc-call", "color": "gray" }, "options": { "wirename": "platform-rpc-call" }, "color": "#303E4D", "notes": "" }, { "id": "1618393674428", "component": "virtualwirein", "tab": "1615551125555", "name": "platform-rpc-call", "x": 78.88333129882812, "y": 221, "connections": { "0": [ { "index": "0", "id": "1619515097737" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "platform-rpc-call", "color": "gray" }, "options": { "wirename": "platform-rpc-call" }, "color": "#303E4D", "notes": "" }, { "id": "1618393759854", "component": "virtualwirein", "tab": "1615551125555", "name": "di_do_controller-in", "x": 72.88333129882812, "y": 657, "connections": { "0": [ { "index": "0", "id": "1618232536546" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "di_do_controller-in", "color": "gray" }, "options": { "wirename": "di_do_controller-in" }, "color": "#303E4D", "notes": "" }, { "id": "1618393827655", "component": "virtualwireout", "tab": "1615551125555", "name": "di_do_controller-in", "x": 798.8833312988281, "y": 377, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "di_do_controller-in", "color": "gray" }, "options": { "wirename": "di_do_controller-in" }, "color": "#303E4D", "notes": "" }, { "id": "1618558465485", "component": "virtualwireout", "tab": "1612772287426", "name": "platform-rpc-call", "x": 652.8833312988281, "y": 290, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "platform-rpc-call", "color": "gray" }, "options": { "wirename": "platform-rpc-call" }, "color": "#303E4D", "notes": "" }, { "id": "1618572059773", "component": "trigger", "tab": "1615551125555", "name": "turnOn line", "x": 75, "y": 568, "connections": { "0": [ { "index": "0", "id": "1618232536546" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "data": "{line: 1, command: \"turnOn\"}", "datatype": "object" }, "color": "#F6BB42", "notes": "" }, { "id": "1619515097737", "component": "cmd_manager", "tab": "1615551125555", "name": "CMD Manager", "x": 431, "y": 150, "connections": { "0": [ { "index": "0", "id": "1615563373927" } ], "1": [ { "index": "0", "id": "1615566865233" }, { "index": "0", "id": "1615798582262" } ], "2": [ { "index": "0", "id": "1616165824813" } ], "3": [ { "index": "0", "id": "1618393827655" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": {}, "color": "#5D9CEC", "notes": "" }, { "id": "1619605019281", "component": "httproute", "tab": "1615551125555", "name": "GET db", "x": 70, "y": 411, "connections": { "0": [ { "index": "0", "id": "1619515097737" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "Listening", "color": "green" }, "options": { "timeout": 5, "cachepolicy": 0, "cacheexpire": "5 minutes", "size": 5, "url": "/db", "method": "GET", "name": "", "flags": [ "id:1619605019281", "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": 82, "y": 755, "connections": { "0": [ { "index": "0", "id": "1618232536546" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "datatype": "object", "data": "{command: \"turnOnAlarm\"}" }, "color": "#F6BB42", "notes": "" }, { "id": "1619784812964", "component": "trigger", "tab": "1615551125555", "name": "turnOffAlarm", "x": 88, "y": 819, "connections": { "0": [ { "index": "0", "id": "1618232536546" } ] }, "disabledio": { "input": [], "output": [] }, "state": { "text": "", "color": "gray" }, "options": { "datatype": "object", "data": "{command: \"turnOffAlarm\"}" }, "color": "#F6BB42", "notes": "" }, { "id": "1621340721628", "component": "virtualwireout", "tab": "1611921777196", "name": "di_do_controller-in", "x": 630, "y": 422, "connections": {}, "disabledio": { "input": [], "output": [] }, "state": { "text": "di_do_controller-in", "color": "gray" }, "options": { "wirename": "di_do_controller-in" }, "color": "#303E4D", "notes": "" } ], "version": 615 }