Handle contactors separately in daily_report

This commit is contained in:
rasta5man 2025-10-19 19:47:04 +02:00
parent 7093d765ec
commit c5c5b21f47
10 changed files with 427 additions and 242 deletions

View file

@ -449,8 +449,8 @@
"color": "gray"
},
"options": {
"data": "{line: 3, command: \"turnOff\", force: true}",
"datatype": "object"
"datatype": "object",
"data": "{line: 3, command: \"turnOff\", force: true}"
},
"color": "#F6BB42",
"notes": ""
@ -501,8 +501,8 @@
"color": "gray"
},
"options": {
"datatype": "string",
"data": "profile_nodes"
"data": "profile_nodes",
"datatype": "string"
},
"color": "#F6BB42",
"notes": ""
@ -712,8 +712,8 @@
"color": "gray"
},
"options": {
"datatype": "object",
"data": "{line: 1, command: \"turnOn\", force: true}"
"data": "{line: 1, command: \"turnOn\", force: true}",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
@ -852,8 +852,8 @@
"color": "gray"
},
"options": {
"data": "{command: \"turnOnAlarm\"}",
"datatype": "object"
"datatype": "object",
"data": "{command: \"turnOnAlarm\"}"
},
"color": "#F6BB42",
"notes": ""
@ -882,8 +882,8 @@
"color": "gray"
},
"options": {
"data": "{command: \"turnOffAlarm\"}",
"datatype": "object"
"datatype": "object",
"data": "{command: \"turnOffAlarm\"}"
},
"color": "#F6BB42",
"notes": ""
@ -1019,7 +1019,7 @@
"output": []
},
"state": {
"text": "858.06 MB / 985.68 MB",
"text": "858.88 MB / 985.68 MB",
"color": "gray"
},
"options": {
@ -1049,7 +1049,7 @@
"output": []
},
"state": {
"text": "5.69 GB / 7.26 GB",
"text": "5.78 GB / 7.26 GB",
"color": "gray"
},
"options": {
@ -1162,9 +1162,9 @@
"color": "gray"
},
"options": {
"stringify": "json",
"url": "http://192.168.252.2:8004/sentmessage",
"method": "POST",
"url": "http://192.168.252.2:8004/sentmessage"
"stringify": "json"
},
"color": "#5D9CEC",
"notes": ""
@ -1505,7 +1505,7 @@
"output": []
},
"state": {
"text": "13% / 74.17 MB",
"text": "49.2% / 69.91 MB",
"color": "gray"
},
"options": {
@ -1972,8 +1972,8 @@
"component": "virtualwirein",
"tab": "1612772287426",
"name": "tb-push",
"x": 77.75,
"y": 1630,
"x": 88.75,
"y": 1685,
"connections": {
"0": [
{
@ -2028,7 +2028,7 @@
"tag_on_include": "[{\"user_id\":\"U072JE5JUQG\", \"includes\":[\"Electrometer\", \"Twilight sensor\"]}]",
"message_includes": "[\"is responding again\", \"Flow has been restarted\", \"Node db has changed\"]",
"types": "[\"emergency\", \"critical\", \"error\", \"alert\"]",
"name": "rvo_senica_15_ip114"
"name": ""
},
"color": "#30E193",
"notes": ""
@ -2057,9 +2057,9 @@
"color": "gray"
},
"options": {
"stringify": "json",
"url": "http://192.168.252.2:8004/slack",
"method": "POST",
"url": "http://192.168.252.2:8004/slack"
"stringify": "json"
},
"color": "#5D9CEC",
"notes": ""
@ -2095,8 +2095,8 @@
"component": "trigger",
"tab": "1612772287426",
"name": "Trigger",
"x": 79,
"y": 1723,
"x": 87,
"y": 1591,
"connections": {
"0": [
{
@ -2114,8 +2114,8 @@
"color": "gray"
},
"options": {
"datatype": "object",
"data": "{ \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\": [ { \"ts\": 1716289039281, \"values\": { \"_event\": { \"type\": \"alert\", \"status\": \"new\", \"source\": { \"func\": \"CMD Manager: process cmd\", \"component\": \"1619515097737\", \"component_name\": \"CMD Manager\", \"edge\": \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\" }, \"message\": \"NOW CONNECTED TO SLACK !\", \"message_data\": \"\" } } } ] }"
"data": "{ \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\": [ { \"ts\": 1716289039281, \"values\": { \"_event\": { \"type\": \"alert\", \"status\": \"new\", \"source\": { \"func\": \"CMD Manager: process cmd\", \"component\": \"1619515097737\", \"component_name\": \"CMD Manager\", \"edge\": \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\" }, \"message\": \"NOW CONNECTED TO SLACK !\", \"message_data\": \"\" } } } ] }",
"datatype": "object"
},
"color": "#F6BB42",
"notes": ""
@ -2677,8 +2677,8 @@
"component": "nodesdb_change_check",
"tab": "1612772287426",
"name": "Nodes DB change check",
"x": 263.8833312988281,
"y": 1993.2333984375,
"x": 266.8833312988281,
"y": 1980.2333984375,
"connections": {
"0": [
{
@ -2689,6 +2689,16 @@
"index": "0",
"id": "1732700642917"
}
],
"1": [
{
"index": "0",
"id": "1759958914348"
},
{
"index": "0",
"id": "1759959003114"
}
]
},
"disabledio": {
@ -2708,8 +2718,8 @@
"component": "virtualwirein",
"tab": "1612772287426",
"name": "db-init",
"x": 84.75,
"y": 1994,
"x": 76.75,
"y": 1988,
"connections": {
"0": [
{
@ -2737,8 +2747,8 @@
"component": "debug",
"tab": "1612772287426",
"name": "nodesChange",
"x": 561.8833312988281,
"y": 2055.2333984375,
"x": 571.8833312988281,
"y": 2018.2333984375,
"connections": {},
"disabledio": {
"input": [],
@ -2761,8 +2771,8 @@
"component": "virtualwireout",
"tab": "1612772287426",
"name": "tb-push",
"x": 557.8833312988281,
"y": 1949,
"x": 567.8833312988281,
"y": 1933,
"connections": {},
"disabledio": {
"input": [],
@ -2924,9 +2934,9 @@
"color": "gray"
},
"options": {
"url": "http://192.168.252.2:8015/daily_report",
"stringify": "json",
"method": "POST",
"stringify": "json"
"url": "http://192.168.252.2:8015/daily_report"
},
"color": "#5D9CEC",
"notes": ""
@ -2978,6 +2988,114 @@
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1759958914348",
"component": "httprequest",
"tab": "1612772287426",
"name": "http://192.168.252.2:8015/node_numbers",
"x": 571,
"y": 2111,
"connections": {
"0": [
{
"index": "0",
"id": "1759958927094"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "",
"color": "gray"
},
"options": {
"stringify": "json",
"method": "POST",
"url": "http://192.168.252.2:8015/node_numbers"
},
"color": "#5D9CEC",
"notes": ""
},
{
"id": "1759958927094",
"component": "debug",
"tab": "1612772287426",
"name": "nodesChangeCloud",
"x": 951.8833312988281,
"y": 2109.2333984375,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1759959003114",
"component": "debug",
"tab": "1612772287426",
"name": "nodeChangeCloud1",
"x": 574,
"y": 2218,
"connections": {},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "Enabled",
"color": "gray"
},
"options": {
"type": "data",
"repository": false,
"enabled": true
},
"color": "#967ADC",
"notes": ""
},
{
"id": "1760020290879",
"component": "virtualwirein",
"tab": "1612772287426",
"name": "db-init",
"x": 84.75,
"y": 1787,
"connections": {
"0": [
{
"index": "1",
"id": "1718016052341"
}
]
},
"disabledio": {
"input": [],
"output": []
},
"state": {
"text": "db-init",
"color": "gray"
},
"options": {
"wirename": "db-init"
},
"color": "#303E4D",
"notes": ""
}
],
"version": 615