grafia/flow/designer.json
2025-08-14 22:59:29 +02:00

1027 lines
No EOL
17 KiB
JSON

{
"tabs": [
{
"id": "1636110831878",
"name": "Main",
"icon": "fa-object-ungroup",
"linker": "main",
"index": 0
},
{
"name": "Time setter",
"linker": "time-setter",
"id": "1667233810390",
"index": 1
}
],
"components": [
{
"id": "1636110851291",
"component": "socomec",
"tab": "1636110831878",
"name": "IP - 192.168.1.31 & 32",
"x": 34,
"y": 124,
"connections": {
"0": [
{
"index": "0",
"id": "1636110855097"
}
],
"1": [
{
"index": "0",
"id": "1636110863291"
},
{
"index": "0",
"id": "1636461793375"
},
{
"index": "0",
"id": "1643021318333"
}
],
"2": [
{
"index": "0",
"id": "1640011795746"
},
{
"index": "0",
"id": "1645452856681"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#2134B0",
"notes": "",
"options": {
"port": 502,
"host": "192.168.1.11"
}
},
{
"id": "1636110855097",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 389,
"y": 45,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1636110863291",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 553,
"y": 83,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1636461560741",
"component": "virtualwirein",
"tab": "1636110831878",
"name": "tb-prod01-push",
"x": 30,
"y": 587,
"connections": {
"0": [
{
"index": "0",
"id": "1694075854662"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-prod01-push",
"color": "gray"
},
"color": "#303E4D",
"notes": "",
"options": {
"wirename": "tb-prod01-push"
}
},
{
"id": "1636461793375",
"component": "virtualwireout",
"tab": "1636110831878",
"name": "tb-prod01-push",
"x": 446,
"y": 194,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "tb-prod01-push",
"color": "gray"
},
"color": "#303E4D",
"notes": "",
"options": {
"wirename": "tb-prod01-push"
}
},
{
"id": "1636971481195",
"component": "monitormemory",
"tab": "1636110831878",
"name": "Memory",
"x": 47,
"y": 987,
"connections": {
"0": [
{
"index": "0",
"id": "1641214032469"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "847.58 MB / 987.80 MB",
"color": "gray"
},
"color": "#F6BB42",
"notes": "",
"options": {
"enabled": true,
"interval": 60000
}
},
{
"id": "1636971491099",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 397,
"y": 1056,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1636972747889",
"component": "monitorconsumption",
"tab": "1636110831878",
"name": "CPU",
"x": 43,
"y": 890,
"connections": {
"0": [
{
"index": "0",
"id": "1641213956795"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "0.3% / 64.51 MB",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"monitorfiles": true,
"monitorconnections": true,
"monitorsize": true,
"monitorconsumption": true,
"enabled": true,
"interval": 60000
}
},
{
"id": "1636972771931",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 397,
"y": 868,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1640011795746",
"component": "httprequest",
"tab": "1636110831878",
"name": "grafia-prod01.worksys.io/total_energy",
"x": 443,
"y": 284,
"connections": {
"0": [
{
"index": "0",
"id": "1640011891453"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#5D9CEC",
"notes": "",
"options": {
"method": "POST",
"stringify": "json",
"url": "http://192.168.252.2:8005/total_energy",
"type": "json"
}
},
{
"id": "1640011891453",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 794,
"y": 279,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1640013180066",
"component": "trigger",
"tab": "1636110831878",
"name": "Trigger",
"x": 186,
"y": 292,
"connections": {
"0": [
{
"index": "0",
"id": "1640011795746"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#F6BB42",
"notes": "",
"options": {
"data": "{s:3}",
"datatype": "object"
}
},
{
"id": "1641213956795",
"component": "code",
"tab": "1636110831878",
"name": "Code",
"x": 214,
"y": 889,
"connections": {
"0": [
{
"index": "0",
"id": "1636972771931"
},
{
"index": "0",
"id": "1641214092460"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#656D78",
"notes": "",
"options": {
"keepmessage": true,
"code": "let response = {};\nresponse.cpu = value.cpu;\nresponse.uptime = value.uptime;\n\nsend(0, response);",
"outputs": 1
}
},
{
"id": "1641214032469",
"component": "code",
"tab": "1636110831878",
"name": "Code",
"x": 214,
"y": 983,
"connections": {
"0": [
{
"index": "0",
"id": "1636971491099"
},
{
"index": "0",
"id": "1641214092460"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#656D78",
"notes": "",
"options": {
"keepmessage": true,
"code": "let response = {};\n\nresponse.memory_total = value.total;\nresponse.memory_free = value.free;\nresponse.memory_used = value.used;\n\nsend(0, response);",
"outputs": 1
}
},
{
"id": "1641214092460",
"component": "virtualwireout",
"tab": "1636110831878",
"name": "send-to-services",
"x": 414,
"y": 965,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"color": "#303E4D",
"notes": "",
"options": {
"wirename": "send-to-services"
}
},
{
"id": "1641214696139",
"component": "monitordisk",
"tab": "1636110831878",
"name": "Disk",
"x": 52,
"y": 1088,
"connections": {
"0": [
{
"index": "0",
"id": "1641214703623"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "5.78 GB / 7.26 GB",
"color": "gray"
},
"color": "#F6BB42",
"notes": "",
"options": {
"enabled": true,
"path": "/",
"interval": 60000
}
},
{
"id": "1641214703610",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 399,
"y": 1146,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1641214703623",
"component": "code",
"tab": "1636110831878",
"name": "Code",
"x": 219,
"y": 1090,
"connections": {
"0": [
{
"index": "0",
"id": "1641214703610"
},
{
"index": "0",
"id": "1641214092460"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#656D78",
"notes": "",
"options": {
"keepmessage": true,
"code": "let response = {};\n\nresponse.hdd_total = value.total;\nresponse.hdd_free = value.free;\nresponse.hdd_used = value.used;\n\nsend(0, response);",
"outputs": 1
}
},
{
"id": "1641214819493",
"component": "virtualwirein",
"tab": "1636110831878",
"name": "send-to-services",
"x": 57,
"y": 1349,
"connections": {
"0": [
{
"index": "0",
"id": "1641214853420"
},
{
"index": "0",
"id": "1641214870492"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"color": "#303E4D",
"notes": "",
"options": {
"wirename": "send-to-services"
}
},
{
"id": "1641214853420",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 343,
"y": 1306,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1641214870492",
"component": "infosender",
"tab": "1636110831878",
"name": "Info sender",
"x": 322,
"y": 1395,
"connections": {
"0": [
{
"index": "0",
"id": "1641214879162"
},
{
"index": "0",
"id": "1641214887643"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#2134B0",
"notes": "",
"options": {
"edge": "undefined"
}
},
{
"id": "1641214879162",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 543,
"y": 1470,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1641214887643",
"component": "httprequest",
"tab": "1636110831878",
"name": "http://192.168.252.2:8004/sentmessage",
"x": 535,
"y": 1363,
"connections": {
"0": [
{
"index": "0",
"id": "1641214960946"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#5D9CEC",
"notes": "",
"options": {
"type": "json",
"url": "http://192.168.252.2:8004/sentmessage",
"method": "POST",
"stringify": "json"
}
},
{
"id": "1641214960946",
"component": "debug",
"tab": "1636110831878",
"name": "Debug",
"x": 911,
"y": 1359,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1643021318333",
"component": "code",
"tab": "1636110831878",
"name": "Code",
"x": 705.8833312988281,
"y": 130.53334045410156,
"connections": {
"0": [
{
"index": "0",
"id": "1643021403079"
}
]
},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#656D78",
"notes": "",
"options": {
"keepmessage": true,
"code": "//if(value.hasOwnProperty('RO8rjaBDy21qPQJzW7oKN17pK3xmNleVZg9Ed4Gw') || value.hasOwnProperty('K94XLav1glVRnyQ6r01VZ3kme3YJwBxM5oOzdP2j'))\n\tif(value.hasOwnProperty('K94XLav1glVRnyQ6r01VZ3kme3YJwBxM5oOzdP2j'))\n\t{\n\t\tsend(0, value);\n\t}",
"outputs": 1
}
},
{
"id": "1643021403079",
"component": "debug",
"tab": "1636110831878",
"name": "just 1 module",
"x": 882.8833312988281,
"y": 127.53334045410156,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1645452856681",
"component": "debug",
"tab": "1636110831878",
"name": "Http req data",
"x": 449.8833312988281,
"y": 381.51666259765625,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1660045438935",
"component": "virtualwireout",
"tab": "1636110831878",
"name": "send-to-services",
"x": 582.8833312988281,
"y": 652,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "send-to-services",
"color": "gray"
},
"color": "#303E4D",
"notes": "",
"options": {
"wirename": "send-to-services"
}
},
{
"id": "1667233820282",
"component": "timesetter",
"tab": "1667233810390",
"name": "Timesetter",
"x": 333.8833312988281,
"y": 136,
"connections": {
"0": [
{
"index": "0",
"id": "1667233834272"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#656D78",
"notes": "",
"options": {}
},
{
"id": "1667233826092",
"component": "timer",
"tab": "1667233810390",
"name": "Timer",
"x": 115.88333129882812,
"y": 227,
"connections": {
"0": [
{
"index": "0",
"id": "1667233820282"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#F6BB42",
"notes": "",
"options": {
"interval": 86400000
}
},
{
"id": "1667233834272",
"component": "debug",
"tab": "1667233810390",
"name": "Debug",
"x": 554.8833312988281,
"y": 133,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
},
{
"id": "1667233843489",
"component": "comment",
"tab": "1667233810390",
"name": "Getting actual time once a day from service-prod01.worksys.io",
"x": 163.88333129882812,
"y": 38,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#704cff",
"notes": "",
"options": {}
},
{
"id": "1667233894816",
"component": "trigger",
"tab": "1667233810390",
"name": "Trigger",
"x": 118.88333129882812,
"y": 138,
"connections": {
"0": [
{
"index": "0",
"id": "1667233820282"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#F6BB42",
"notes": "",
"options": {}
},
{
"id": "1694075854662",
"component": "httprequest",
"tab": "1636110831878",
"name": "grafia-prod01.worksys.io/rerouting76",
"x": 263,
"y": 586,
"connections": {
"0": [
{
"index": "0",
"id": "1694075957040"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"color": "#5D9CEC",
"notes": "",
"options": {
"stringify": "json",
"method": "POST",
"url": "http://192.168.252.2:8005/rerouting76",
"type": "json"
}
},
{
"id": "1694075957040",
"component": "debug",
"tab": "1636110831878",
"name": "To rerouting76",
"x": 599,
"y": 541,
"connections": {},
"disabledio": {
"input": [
0
],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"color": "#967ADC",
"notes": "",
"options": {
"type": "data",
"repository": false,
"enabled": true
}
}
],
"version": 624
}