citysys-flowserver/flow/designer.json

2358 lines
No EOL
43 KiB
JSON

{
"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": 118.5,
"y": 111.5,
"connections": {
"0": [
{
"index": "0",
"id": "1611951142547"
}
],
"1": [
{
"index": "0",
"id": "1730283489001"
}
],
"2": [
{
"index": "0",
"id": "1612772119611"
},
{
"index": "0",
"id": "1730283489001"
}
],
"3": [
{
"index": "0",
"id": "1611938192035"
},
{
"index": "0",
"id": "1730283344075"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Running",
"color": "green"
},
"options": {
"edge": "KjbN4q7JPZmexgdnz2yKQ98YAWwO0Q3BMX6ERLoV"
},
"color": "#2134B0",
"notes": ""
},
{
"id": "1611938192035",
"component": "debug",
"tab": "1611921777196",
"name": "to dido",
"x": 804.5,
"y": 290.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": 700,
"y": 26,
"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-push",
"x": 718.75,
"y": 213.5,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "tb-push",
"color": "gray"
},
"options": {
"wirename": "tb-push"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1612776786008",
"component": "wsmqttpublish",
"tab": "1612772287426",
"name": "WS MQTT publish",
"x": 338.75,
"y": 185,
"connections": {
"0": [
{
"index": "0",
"id": "1615551060773"
}
],
"1": [
{
"index": "0",
"id": "1618300858252"
},
{
"index": "0",
"id": "1618558465485"
}
],
"2": [
{
"index": "0",
"id": "1618300863816"
},
{
"index": "0",
"id": "1634303685503"
}
]
},
"disabledio": {
"input": [
1
],
"output": []
},
"state": {
"text": "Connected",
"color": "green"
},
"options": {
"username": "xmRd6RJxW53WZe4vMFLU",
"clientid": "showroom_test_panel_led",
"port": "1883",
"host": ""
},
"color": "#888600",
"notes": ""
},
{
"id": "1612778461252",
"component": "virtualwirein",
"tab": "1612772287426",
"name": "tb-push",
"x": 67.75,
"y": 273,
"connections": {
"0": [
{
"index": "1",
"id": "1612776786008"
},
{
"index": "0",
"id": "1612783322136"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-push",
"color": "gray"
},
"options": {
"wirename": "tb-push"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1612783322136",
"component": "debug",
"tab": "1612772287426",
"name": "to TB",
"x": 341.75,
"y": 324,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1615551060773",
"component": "debug",
"tab": "1612772287426",
"name": "errors from MQTT Broker",
"x": 648,
"y": 151,
"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": 788,
"y": 78,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#DA4453",
"notes": ""
},
{
"id": "1615566865233",
"component": "virtualwireout",
"tab": "1615551125555",
"name": "tb-push",
"x": 784,
"y": 170,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-push",
"color": "gray"
},
"options": {
"wirename": "tb-push"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1615798582262",
"component": "debug",
"tab": "1615551125555",
"name": "data to TB",
"x": 784,
"y": 259,
"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": "thermoDido",
"x": 738.8833312988281,
"y": 717.3500061035156,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1615809128443",
"component": "debug",
"tab": "1611921777196",
"name": "thermoTb",
"x": 595.8833312988281,
"y": 497.3500061035156,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1615809595184",
"component": "virtualwireout",
"tab": "1611921777196",
"name": "tb-push",
"x": 749.8833312988281,
"y": 610.25,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-push",
"color": "gray"
},
"options": {
"wirename": "tb-push"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1616165795916",
"component": "httproute",
"tab": "1615551125555",
"name": "POST /terminal",
"x": 71,
"y": 444,
"connections": {
"0": [
{
"index": "1",
"id": "1619515097737"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Listening",
"color": "green"
},
"options": {
"timeout": 10,
"cachepolicy": 0,
"cacheexpire": "5 minutes",
"size": 5,
"url": "/terminal",
"method": "POST",
"name": "",
"flags": [
"id:1616165795916",
"post",
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": 782,
"y": 342,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"datatype": "json"
},
"color": "#5D9CEC",
"notes": ""
},
{
"id": "1617284749681",
"component": "trigger",
"tab": "1615551125555",
"name": "update profile / node",
"x": 95,
"y": 107,
"connections": {
"0": [
{
"index": "1",
"id": "1619515097737"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"datatype": "string",
"data": "profile_nodes"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1618235171399",
"component": "trigger",
"tab": "1615551125555",
"name": "tun tasks",
"x": 82,
"y": 183,
"connections": {
"0": [
{
"index": "1",
"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": 670.8833312988281,
"y": 242,
"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": 685.8833312988281,
"y": 434,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1618393674428",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "platform-rpc-call",
"x": 76.88333129882812,
"y": 270,
"connections": {
"0": [
{
"index": "1",
"id": "1619515097737"
},
{
"index": "0",
"id": "1729630658131"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "platform-rpc-call",
"color": "gray"
},
"options": {
"wirename": "platform-rpc-call"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1618393827655",
"component": "virtualwireout",
"tab": "1615551125555",
"name": "cmd-to-dido",
"x": 780.8833312988281,
"y": 446,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "cmd-to-dido",
"color": "gray"
},
"options": {
"wirename": "cmd-to-dido"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1618558465485",
"component": "virtualwireout",
"tab": "1612772287426",
"name": "platform-rpc-call",
"x": 674.8833312988281,
"y": 338,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "platform-rpc-call",
"color": "gray"
},
"options": {
"wirename": "platform-rpc-call"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1619515097737",
"component": "cmd_manager",
"tab": "1615551125555",
"name": "CMD Manager",
"x": 435,
"y": 126,
"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"
}
],
"4": [
{
"index": "0",
"id": "1635936391935"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#5D9CEC",
"notes": ""
},
{
"id": "1619605019281",
"component": "httproute",
"tab": "1615551125555",
"name": "GET db",
"x": 65,
"y": 549,
"connections": {
"0": [
{
"index": "1",
"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": 53,
"y": 842,
"connections": {
"0": [
{
"index": "1",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"data": "{command: \"turnOnAlarm\"}",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1619784812964",
"component": "trigger",
"tab": "1615551125555",
"name": "turnOffAlarm",
"x": 50,
"y": 928,
"connections": {
"0": [
{
"index": "1",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"data": "{command: \"turnOffAlarm\"}",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1621340721628",
"component": "virtualwireout",
"tab": "1611921777196",
"name": "modbus-to-dido",
"x": 921,
"y": 404,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "modbus-to-dido",
"color": "gray"
},
"options": {
"wirename": "modbus-to-dido"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1622640022885",
"component": "httproute",
"tab": "1615551125555",
"name": "POST /db_connector",
"x": 20,
"y": 1443,
"connections": {
"0": [
{
"index": "0",
"id": "1622640073521"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Listening",
"color": "green"
},
"options": {
"timeout": 5,
"cachepolicy": 0,
"cacheexpire": "5 minutes",
"size": 5,
"url": "/db_connector",
"method": "POST",
"flags": [
"id:1622640022885",
"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",
"component": "db_connector",
"tab": "1615551125555",
"name": "DbConnector",
"x": 276,
"y": 1500,
"connections": {
"1": [
{
"index": "0",
"id": "1622641420685"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"edge": "undefined"
},
"color": "#2134B0",
"notes": ""
},
{
"id": "1622641420685",
"component": "httpresponse",
"tab": "1615551125555",
"name": "HTTP Response",
"x": 501,
"y": 1559,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#5D9CEC",
"notes": ""
},
{
"id": "1634303504177",
"component": "monitormemory",
"tab": "1612772287426",
"name": "RAM",
"x": 112.88333129882812,
"y": 797.5,
"connections": {
"0": [
{
"index": "0",
"id": "1634465281992"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "192.45 MB / 249 MB",
"color": "gray"
},
"options": {
"enabled": true,
"interval": 20000
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1634303533779",
"component": "monitordisk",
"tab": "1612772287426",
"name": "disk",
"x": 114.88333129882812,
"y": 895.5,
"connections": {
"0": [
{
"index": "0",
"id": "1634465821120"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "5.92 GB / 7.22 GB",
"color": "gray"
},
"options": {
"enabled": true,
"path": "/",
"interval": 20000
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1634303595494",
"component": "virtualwirein",
"tab": "1612772287426",
"name": "send-to-services",
"x": -11.116668701171875,
"y": 1207.5,
"connections": {
"0": [
{
"index": "0",
"id": "1634463186563"
},
{
"index": "1",
"id": "1634488120710"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"options": {
"wirename": "send-to-services"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1634303602169",
"component": "virtualwireout",
"tab": "1612772287426",
"name": "send-to-services",
"x": 507.8833312988281,
"y": 815.5,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"options": {
"wirename": "send-to-services"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1634303685503",
"component": "virtualwireout",
"tab": "1612772287426",
"name": "send-to-services",
"x": 686.8833312988281,
"y": 530.5,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"options": {
"wirename": "send-to-services"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1634303743260",
"component": "httprequest",
"tab": "1612772287426",
"name": "http://192.168.252.2:8004/sentmessage",
"x": 508.8833312988281,
"y": 1134.7333374023438,
"connections": {
"0": [
{
"index": "0",
"id": "1635327431236"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"stringify": "json",
"method": "POST",
"url": "http://192.168.252.2:8004/sentmessage"
},
"color": "#5D9CEC",
"notes": ""
},
{
"id": "1634463186563",
"component": "debug",
"tab": "1612772287426",
"name": "Debug",
"x": 242.75,
"y": 1248,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1634464580289",
"component": "code",
"tab": "1612772287426",
"name": "Code",
"x": 299,
"y": 730,
"connections": {
"0": [
{
"index": "0",
"id": "1634465243324"
},
{
"index": "0",
"id": "1634303602169"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"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",
"component": "debug",
"tab": "1612772287426",
"name": "Debug",
"x": 481,
"y": 726,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1634465281992",
"component": "code",
"tab": "1612772287426",
"name": "Code",
"x": 305,
"y": 817,
"connections": {
"0": [
{
"index": "0",
"id": "1634465338103"
},
{
"index": "0",
"id": "1634303602169"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"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",
"component": "debug",
"tab": "1612772287426",
"name": "Debug",
"x": 482,
"y": 906,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1634465821120",
"component": "code",
"tab": "1612772287426",
"name": "Code",
"x": 301,
"y": 910,
"connections": {
"0": [
{
"index": "0",
"id": "1634465892500"
},
{
"index": "0",
"id": "1634303602169"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"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",
"component": "debug",
"tab": "1612772287426",
"name": "Debug",
"x": 482,
"y": 1003,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1634484067516",
"component": "debug",
"tab": "1612772287426",
"name": "Send info",
"x": 509,
"y": 1245,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1634488120710",
"component": "infosender",
"tab": "1612772287426",
"name": "Info sender",
"x": 233,
"y": 1148,
"connections": {
"0": [
{
"index": "0",
"id": "1634484067516"
},
{
"index": "0",
"id": "1634303743260"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"edge": "undefined"
},
"color": "#2134B0",
"notes": ""
},
{
"id": "1635327431236",
"component": "debug",
"tab": "1612772287426",
"name": "Debug",
"x": 1038.8833312988281,
"y": 1090.5,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1635936391935",
"component": "virtualwireout",
"tab": "1615551125555",
"name": "send-to-services",
"x": 781,
"y": 550,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"options": {
"wirename": "send-to-services"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1637069803394",
"component": "monitorconsumption",
"tab": "1612772287426",
"name": "CPU",
"x": 109,
"y": 713,
"connections": {
"0": [
{
"index": "0",
"id": "1634464580289"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "40.6% / 47.36 MB",
"color": "gray"
},
"options": {
"monitorfiles": true,
"monitorconnections": true,
"monitorsize": true,
"monitorconsumption": true,
"enabled": true,
"interval": 5000
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1725218490415",
"component": "trigger",
"tab": "1612772287426",
"name": "Trigger - dimming 650",
"x": 282.8833312988281,
"y": 422,
"connections": {
"0": [
{
"index": "0",
"id": "1618558465485"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"datatype": "object",
"data": "{ \"topic\": \"v1/gateway/rpc\", \"content\": { \"device\": \"KjbN4q7JPZmexgdnz2yKQ98YAWwO0Q3BMX6ERLoV\", \"data\": { \"id\": 5, \"method\": \"set_command\", \"params\": { \"entities\": [ { \"entity_type\": \"street_luminaire\", \"tb_name\": \"0XYElWeKBNJn1gdoMG8lYdDALkPvj4V3xra2q6mO\" } ], \"command\": \"dimming\", \"payload\": { \"value\": 5 } } } } }"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1725287725896",
"component": "trigger",
"tab": "1612772287426",
"name": "Trigger - nodeProfile 650",
"x": 283.8833312988281,
"y": 498,
"connections": {
"0": [
{
"index": "0",
"id": "1618558465485"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"data": "{ \"topic\": \"v1/gateway/rpc\", \"content\": { \"device\": \"0XYElWeKBNJn1gdoMG8lYdDALkPvj4V3xra2q6mO\", \"data\": { \"id\": 11, \"method\": \"set_profile\", \"params\": { \"entities\": [ { \"entity_type\": \"street_luminaire\", \"tb_name\": \"0XYElWeKBNJn1gdoMG8lYdDALkPvj4V3xra2q6mO\" } ], \"payload\": { \"intervals\": [ { \"cct\": 3000, \"value\": 0, \"end_time\": \"16:45\",\"start_time\": \"13:00\" }, { \"cct\": 3000, \"value\": 7, \"end_time\": \"17:00\", \"start_time\": \"16:45\"}, { \"cct\": 3000, \"value\": 30, \"end_time\": \"17:15\", \"start_time\": \"17:00\" }, { \"cct\": 3000, \"value\":5, \"end_time\": \"17:30\", \"start_time\": \"17:15\" }, { \"cct\": 3000, \"value\": 0, \"end_time\": \"13:00\", \"start_time\": \"17:30\" }, ], \"astro_clock\": false, \"dawn_lux_sensor\": false, \"dusk_lux_sensor\": false, \"dawn_lux_sensor_value\": 5, \"dusk_lux_sensor_value\": 5, \"dawn_astro_clock_offset\": 30, \"dusk_astro_clock_offset\": 20, \"dawn_lux_sensor_time_window\": 30, \"dusk_lux_sensor_time_window\": 30, \"dawn_astro_clock_time_window\": 60, \"dusk_astro_clock_time_window\": 60 } } } } }",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1725463389430",
"component": "trigger",
"tab": "1612772287426",
"name": "Trigger - dimming 659",
"x": 289.8833312988281,
"y": 599,
"connections": {
"0": [
{
"index": "0",
"id": "1618558465485"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"data": "{ \"topic\": \"v1/gateway/rpc\", \"content\": { \"device\": \"KjbN4q7JPZmexgdnz2yKQ98YAWwO0Q3BMX6ERLoV\", \"data\": { \"id\": 5, \"method\": \"set_command\", \"params\": { \"entities\": [ { \"entity_type\": \"street_luminaire\", \"tb_name\": \"joqRYBVL30k9eQWOlZ5qwpD2KJpNEmA6gPxXzwaM\" } ], \"command\": \"dimming\", \"payload\": { \"value\": 7 } } } } }",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1728565522830",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "db-init",
"x": 100.88333129882812,
"y": 34,
"connections": {
"0": [
{
"index": "0",
"id": "1619515097737"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1728981631674",
"component": "virtualwirein",
"tab": "1612772287426",
"name": "db-init",
"x": 65.88333129882812,
"y": 170.8000030517578,
"connections": {
"0": [
{
"index": "0",
"id": "1612776786008"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1728981755263",
"component": "virtualwirein",
"tab": "1611921777196",
"name": "db-init",
"x": 87.88333129882812,
"y": 631.3999938964844,
"connections": {
"0": [
{
"index": "0",
"id": "1732823597895"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1729356985353",
"component": "trigger",
"tab": "1612772287426",
"name": "show settings",
"x": 99.88333129882812,
"y": 1531.2000122070312,
"connections": {
"0": [
{
"index": "0",
"id": "1729357628696"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1729357628696",
"component": "showdb",
"tab": "1612772287426",
"name": "Show db data",
"x": 364.8833312988281,
"y": 1614.2000122070312,
"connections": {
"0": [
{
"index": "0",
"id": "1729357637821"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#888600",
"notes": ""
},
{
"id": "1729357637821",
"component": "debug",
"tab": "1612772287426",
"name": "GLOBALS dbdata",
"x": 606.8833312988281,
"y": 1628.2000122070312,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1729359849748",
"component": "trigger",
"tab": "1612772287426",
"name": "show relays",
"x": 98.88333129882812,
"y": 1593.2000122070312,
"connections": {
"0": [
{
"index": "1",
"id": "1729357628696"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1729359867511",
"component": "trigger",
"tab": "1612772287426",
"name": "show nodesData",
"x": 78.88333129882812,
"y": 1667.2000122070312,
"connections": {
"0": [
{
"index": "2",
"id": "1729357628696"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1729359879876",
"component": "trigger",
"tab": "1612772287426",
"name": "show pins",
"x": 83.88333129882812,
"y": 1741.2000122070312,
"connections": {
"0": [
{
"index": "3",
"id": "1729357628696"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1729630658131",
"component": "debug",
"tab": "1615551125555",
"name": "fromDIDO",
"x": 455,
"y": 312,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1729712837697",
"component": "db_init",
"tab": "1612772287426",
"name": "DB Initialization",
"x": 72,
"y": 47,
"connections": {
"0": [
{
"index": "0",
"id": "1729712846867"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#888600",
"notes": ""
},
{
"id": "1729712846867",
"component": "virtualwireout",
"tab": "1612772287426",
"name": "db-init",
"x": 315.8833312988281,
"y": 44.5,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730283344075",
"component": "code",
"tab": "1611921777196",
"name": "Code",
"x": 380,
"y": 287,
"connections": {
"0": [
{
"index": "0",
"id": "1730286332882"
},
{
"index": "0",
"id": "1621340721628"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"keepmessage": true,
"code": "let b = value.tbdata;\n\nif(b == undefined) return;\nlet key = Object.keys(b)[0];\n\nlet toSend = b[key][0];\ndelete toSend.ts;\ndelete toSend.values.status;\n\nsend(0, toSend);\n\nlet a ={\n \"sender\": \"modbus_citysys\",\n \"tbdata\": {\n \"PLBJzmK1r3Gynd6OW0gGYz0e5wV4vx9bDEqNgYR8\": [\n {\n \"ts\": 1730326629980,\n \"values\": {\n \"status\": \"OK\",\n \"Phase_2_voltage\": 233.8,\n \"Phase_3_voltage\": 233,\n \"Phase_1_current\": 0.07,\n \"Phase_2_current\": 0.33,\n \"Phase_3_current\": 0,\n \"Phase_1_power\": 5.3,\n \"Phase_2_power\": 37.1,\n \"Phase_3_power\": 0,\n \"total_power\": 42.4,\n \"total_energy\": 5803.8,\n \"Phase_1_pow_factor\": 0.49,\n \"Phase_2_pow_factor\": 0.86,\n \"Phase_3_pow_factor\": 0,\n \"power_factor\": 0.8\n }\n }\n ]\n }\n}",
"outputs": 1
},
"color": "#656D78",
"notes": ""
},
{
"id": "1730283489001",
"component": "debug",
"tab": "1611921777196",
"name": "modbus tb",
"x": 705.5,
"y": 113.5,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1730286332882",
"component": "debug",
"tab": "1611921777196",
"name": "modbusCode",
"x": 546,
"y": 383,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1730323243484",
"component": "dido_controller",
"tab": "1615551125555",
"name": "DIDO_Controller",
"x": 403,
"y": 959,
"connections": {
"0": [
{
"index": "0",
"id": "1730323814342"
}
],
"1": [
{
"index": "0",
"id": "1730323748655"
},
{
"index": "0",
"id": "1730323814342"
}
],
"2": [
{
"index": "0",
"id": "1730323748661"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"edge": "undefined"
},
"color": "#2134B0",
"notes": ""
},
{
"id": "1730323407563",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "db-init",
"x": 56.883331298828125,
"y": 1260.2000122070312,
"connections": {
"0": [
{
"index": "2",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730323590937",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "modbus-to-dido",
"x": 53.883331298828125,
"y": 760,
"connections": {
"0": [
{
"index": "0",
"id": "1730323243484"
},
{
"index": "0",
"id": "1730324345047"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "modbus-to-dido",
"color": "gray"
},
"options": {
"wirename": "modbus-to-dido"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730323631557",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "cmd-to-dido",
"x": 47.883331298828125,
"y": 1013.2000122070312,
"connections": {
"0": [
{
"index": "1",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "cmd-to-dido",
"color": "gray"
},
"options": {
"wirename": "cmd-to-dido"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730323674816",
"component": "trigger",
"tab": "1615551125555",
"name": "turnOff line",
"x": 50,
"y": 1090,
"connections": {
"0": [
{
"index": "1",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"datatype": "object",
"data": "{line:3, command: \"turnOff\", force: true}"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1730323674822",
"component": "trigger",
"tab": "1615551125555",
"name": "turnOn line",
"x": 57,
"y": 1166,
"connections": {
"0": [
{
"index": "1",
"id": "1730323243484"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"data": "{line:1, command: \"turnOn\", force: true}",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
},
{
"id": "1730323748655",
"component": "virtualwireout",
"tab": "1615551125555",
"name": "tb-push",
"x": 720,
"y": 1003,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-push",
"color": "gray"
},
"options": {
"wirename": "tb-push"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730323748661",
"component": "virtualwireout",
"tab": "1615551125555",
"name": "to-cmd-manager",
"x": 722.8833312988281,
"y": 1090,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "from-dido-controller",
"color": "gray"
},
"options": {
"wirename": "from-dido-controller"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730323814342",
"component": "debug",
"tab": "1615551125555",
"name": "DidoDebug",
"x": 709,
"y": 906,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1730324002079",
"component": "virtualwirein",
"tab": "1615551125555",
"name": "from-dido-controller",
"x": 73,
"y": 359,
"connections": {
"0": [
{
"index": "1",
"id": "1619515097737"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "from-dido-controller",
"color": "gray"
},
"options": {
"wirename": "from-dido-controller"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1730324345047",
"component": "debug",
"tab": "1615551125555",
"name": "toDido",
"x": 405,
"y": 841,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1730327321896",
"component": "virtualwirein",
"tab": "1612772287426",
"name": "db-init",
"x": 4.883331298828125,
"y": 1111.8000030517578,
"connections": {
"0": [
{
"index": "0",
"id": "1634488120710"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
},
{
"id": "1732823597895",
"component": "thermometer",
"tab": "1611921777196",
"name": "Thermometer",
"x": 372.75,
"y": 602,
"connections": {
"1": [
{
"index": "0",
"id": "1615809595184"
},
{
"index": "0",
"id": "1615809128443"
}
],
"2": [
{
"index": "0",
"id": "1621340721628"
},
{
"index": "0",
"id": "1615802995322"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {},
"color": "#5CB36D",
"notes": ""
}
],
"version": 615
}