2172 lines
No EOL
38 KiB
JSON
2172 lines
No EOL
38 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": 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"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1611938192035"
|
|
}
|
|
]
|
|
},
|
|
"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": [],
|
|
"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": 380.75,
|
|
"y": 264,
|
|
"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": [],
|
|
"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-demo-push",
|
|
"x": 68.75,
|
|
"y": 289,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1612776786008"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1612783322136"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1656081515468"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1656420898232"
|
|
}
|
|
]
|
|
},
|
|
"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": "to TB",
|
|
"x": 383.75,
|
|
"y": 167,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [
|
|
0
|
|
],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Enabled",
|
|
"color": "gray"
|
|
},
|
|
"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",
|
|
"component": "debug",
|
|
"tab": "1612772287426",
|
|
"name": "errors from MQTT Broker",
|
|
"x": 660,
|
|
"y": 126,
|
|
"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": 806,
|
|
"y": 9,
|
|
"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-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": 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": 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": 807,
|
|
"y": 545,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [
|
|
0
|
|
],
|
|
"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": {
|
|
"data": "{line:2, command: \"turnOff\", force: true}",
|
|
"datatype": "object"
|
|
},
|
|
"color": "#F6BB42",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1617115013095",
|
|
"component": "virtualwireout",
|
|
"tab": "1615551125555",
|
|
"name": "tb-demo-push",
|
|
"x": 794,
|
|
"y": 637,
|
|
"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": 312,
|
|
"y": 870,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1617180390661"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"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": 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": {
|
|
"datatype": "string",
|
|
"data": "profile_nodes"
|
|
},
|
|
"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": 679.8833312988281,
|
|
"y": 218,
|
|
"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": 753.8833312988281,
|
|
"y": 391,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [
|
|
0
|
|
],
|
|
"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": 796.8833312988281,
|
|
"y": 725,
|
|
"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": 74.88333129882812,
|
|
"y": 222,
|
|
"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"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1683922207976"
|
|
}
|
|
]
|
|
},
|
|
"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": 688.8833312988281,
|
|
"y": 307,
|
|
"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": {
|
|
"datatype": "object",
|
|
"data": "{line: 3, command: \"turnOn\", force: true}"
|
|
},
|
|
"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"
|
|
}
|
|
],
|
|
"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": 70,
|
|
"y": 420,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1619515097737"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Listening",
|
|
"color": "green"
|
|
},
|
|
"options": {
|
|
"timeout": 5,
|
|
"cachepolicy": 0,
|
|
"cacheexpire": "5 minutes",
|
|
"size": 100,
|
|
"url": "/db",
|
|
"method": "GET",
|
|
"name": "",
|
|
"flags": [
|
|
"id:1619605019281",
|
|
"get",
|
|
5000
|
|
]
|
|
},
|
|
"color": "#5D9CEC",
|
|
"notes": "### Configuration\n\n- __GET /db__\n- flags: \n- maximum request data length: __100 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": {
|
|
"data": "{command: \"turnOnAlarm\"}",
|
|
"datatype": "object"
|
|
},
|
|
"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": {
|
|
"data": "{command: \"turnOffAlarm\"}",
|
|
"datatype": "object"
|
|
},
|
|
"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": ""
|
|
},
|
|
{
|
|
"id": "1622640022885",
|
|
"component": "httproute",
|
|
"tab": "1615551125555",
|
|
"name": "POST /db_connector",
|
|
"x": 1107,
|
|
"y": 338,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1622640073521"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Listening",
|
|
"color": "green"
|
|
},
|
|
"options": {
|
|
"timeout": 5,
|
|
"cachepolicy": 0,
|
|
"cacheexpire": "5 minutes",
|
|
"size": 500,
|
|
"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: __500 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": 1363,
|
|
"y": 395,
|
|
"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": 1588,
|
|
"y": 454,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"options": {},
|
|
"color": "#5D9CEC",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1634303504177",
|
|
"component": "monitormemory",
|
|
"tab": "1612772287426",
|
|
"name": "RAM",
|
|
"x": 72.88333129882812,
|
|
"y": 674.5,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1634465281992"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "203.08 MB / 249 MB",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"enabled": true,
|
|
"interval": 20000
|
|
},
|
|
"color": "#F6BB42",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1634303533779",
|
|
"component": "monitordisk",
|
|
"tab": "1612772287426",
|
|
"name": "disk",
|
|
"x": 78.88333129882812,
|
|
"y": 774.5,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1634465821120"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "5.89 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": 5.883331298828125,
|
|
"y": 1089.5,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1634463186563"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"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": 416.8833312988281,
|
|
"y": 690.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": 776.8833312988281,
|
|
"y": 476.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": 633.8833312988281,
|
|
"y": 1047.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": 350.75,
|
|
"y": 1021,
|
|
"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": 241,
|
|
"y": 592,
|
|
"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": 436,
|
|
"y": 590,
|
|
"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": 232,
|
|
"y": 673,
|
|
"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": 413,
|
|
"y": 775,
|
|
"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": 234,
|
|
"y": 766,
|
|
"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": 411,
|
|
"y": 862,
|
|
"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": 475,
|
|
"y": 1202,
|
|
"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": 1008.8833312988281,
|
|
"y": 1047.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": 725,
|
|
"y": 456,
|
|
"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": 80,
|
|
"y": 588,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1634464580289"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "9% / 57.78 MB",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"monitorfiles": true,
|
|
"monitorconnections": true,
|
|
"monitorsize": true,
|
|
"monitorconsumption": true,
|
|
"enabled": true,
|
|
"interval": 5000
|
|
},
|
|
"color": "#967ADC",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656081515468",
|
|
"component": "code",
|
|
"tab": "1612772287426",
|
|
"name": "send just example nodes data",
|
|
"x": 327.8833312988281,
|
|
"y": 432.8000030517578,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1656420898232"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [
|
|
0
|
|
],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"keepmessage": true,
|
|
"code": "//send(0, value);\n\nconst nodes = ['oGVzxNWP9lrjaQ7vKODQ7g51gqp62YZREmdw3XBM','Ymn9oleRxJ0vw17WzAyGwdyEBk4ObdMXj2VgpNLG']\n\nif(nodes.includes(Object.keys(value)[0]))\n{\n\tif(value[Object.keys(value)[0]][0].values.hasOwnProperty('dimming') || value[Object.keys(value)[0]][0].values.hasOwnProperty('status'))\n\t{\n\t\tsend(0, value);\n\t}\n}\n\nconst example = {\n \"vnmG4kJxaXWNBgMQq0D7Aj5e9oZzOAlr6LdR3w2V\": [\n {\n \"ts\": 1656081519502,\n \"values\": {\n \"statecode\": 2\n }\n }\n ]\n}",
|
|
"outputs": 1
|
|
},
|
|
"color": "#656D78",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656081823357",
|
|
"component": "debug",
|
|
"tab": "1612772287426",
|
|
"name": "1 mqtt processor exit 1",
|
|
"x": 1191.8833312988281,
|
|
"y": 509.8000030517578,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Enabled",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"type": "data",
|
|
"repository": false,
|
|
"enabled": true
|
|
},
|
|
"color": "#967ADC",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656164263549",
|
|
"component": "trigger",
|
|
"tab": "1612772287426",
|
|
"name": "Trigger",
|
|
"x": 629.3500061035156,
|
|
"y": 625.3999938964844,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1656420898232"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"data": "{ \t\t \"vnmG4kJxaXWNBgMQq0D7Mz5e9oZzOAlr6LdR3w2V\": [ \t\t\t{ \t\t\t \"ts\": 1656420464663, \t\t\t \"values\": { \t\t\"status\":\"OK\"\t } \t\t\t} \t\t ] \t\t}",
|
|
"datatype": "object"
|
|
},
|
|
"color": "#F6BB42",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656420898232",
|
|
"component": "mqttprocessor",
|
|
"tab": "1612772287426",
|
|
"name": "MQTT processor",
|
|
"x": 953.75,
|
|
"y": 578,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1656081823357"
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"index": "0",
|
|
"id": "1656505814026"
|
|
},
|
|
{
|
|
"index": "0",
|
|
"id": "1656586224071"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [
|
|
0
|
|
],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Connected",
|
|
"color": "green"
|
|
},
|
|
"options": {
|
|
"username": "",
|
|
"clientid": "",
|
|
"port": 1883,
|
|
"host": "192.168.252.3"
|
|
},
|
|
"color": "#888600",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656505814026",
|
|
"component": "debug",
|
|
"tab": "1612772287426",
|
|
"name": "mqttprocessor exit 2",
|
|
"x": 1181,
|
|
"y": 687,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Enabled",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"type": "data",
|
|
"repository": false,
|
|
"enabled": true
|
|
},
|
|
"color": "#967ADC",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1656586224071",
|
|
"component": "virtualwireout",
|
|
"tab": "1612772287426",
|
|
"name": "3rd party system platform-rpc-call",
|
|
"x": 1181,
|
|
"y": 600.75,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "platform-rpc-call",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"wirename": "platform-rpc-call"
|
|
},
|
|
"color": "#303E4D",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1683922207976",
|
|
"component": "debug",
|
|
"tab": "1615551125555",
|
|
"name": "to dido_controller",
|
|
"x": 450,
|
|
"y": 476,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Enabled",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"type": "data",
|
|
"repository": false,
|
|
"enabled": true
|
|
},
|
|
"color": "#967ADC",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1690972387040",
|
|
"component": "trigger",
|
|
"tab": "1612772287426",
|
|
"name": "Trigger",
|
|
"x": 73,
|
|
"y": 421,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1612776786008"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"data": "{ \"9YkRpoB2vVa0mKqEO8ZrOw8jW43eXnJML6GxzbwQ\": [ { \"ts\": 1690972374805, \"values\": { \"status\": \"OK\" } } ] }"
|
|
},
|
|
"color": "#F6BB42",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1691063647317",
|
|
"component": "trigger",
|
|
"tab": "1612772287426",
|
|
"name": "Trigger 650 ver4",
|
|
"x": 71,
|
|
"y": 497,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1612776786008"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"data": "{ \"GjQobgOK0n2YqBZmVDVzQGDR9ep6EXA1ka3vzlP7\": [ { \"ts\": 1690972374805, \"values\": { \"status\": \"OK\" } } ] }"
|
|
},
|
|
"color": "#F6BB42",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1702560071662",
|
|
"component": "mqttlistener",
|
|
"tab": "1612772287426",
|
|
"name": "MQTT listener",
|
|
"x": 244.88333129882812,
|
|
"y": 1397.433349609375,
|
|
"connections": {
|
|
"0": [
|
|
{
|
|
"index": "0",
|
|
"id": "1702560098149"
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"index": "0",
|
|
"id": "1702560098149"
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"index": "0",
|
|
"id": "1702560098149"
|
|
}
|
|
]
|
|
},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Disconnected",
|
|
"color": "red"
|
|
},
|
|
"options": {
|
|
"host": "192.168.252.2",
|
|
"port": "3883",
|
|
"clientid": "",
|
|
"username": ""
|
|
},
|
|
"color": "#888600",
|
|
"notes": ""
|
|
},
|
|
{
|
|
"id": "1702560098149",
|
|
"component": "debug",
|
|
"tab": "1612772287426",
|
|
"name": "Debug",
|
|
"x": 471.8833312988281,
|
|
"y": 1412.433349609375,
|
|
"connections": {},
|
|
"disabledio": {
|
|
"input": [],
|
|
"output": []
|
|
},
|
|
"state": {
|
|
"text": "Enabled",
|
|
"color": "gray"
|
|
},
|
|
"options": {
|
|
"type": "data",
|
|
"repository": false,
|
|
"enabled": true
|
|
},
|
|
"color": "#967ADC",
|
|
"notes": ""
|
|
}
|
|
],
|
|
"version": 615
|
|
} |