-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for reading historical data
- Loading branch information
windka
committed
Apr 4, 2022
1 parent
5d56454
commit c69e118
Showing
7 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"id":"66b4df9cdc60b976","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":360,"wires":[["6592afcafa8f6f46"]]},{"id":"30a5462281a04175","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":360,"wires":[]},{"id":"58c71aaadfcde7a3","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":420,"wires":[["c8e2533ad925c950"]]},{"id":"616a402c7b2fb9c7","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":480,"wires":[["f2d67eb619de6923"]]},{"id":"92e22b3bbcf30152","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":420,"wires":[]},{"id":"52d922654befa906","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":480,"wires":[]},{"id":"6592afcafa8f6f46","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"WC","appliance":"Sense1","devicetype":"101","description":"","x":440,"y":360,"wires":[["30a5462281a04175"]]},{"id":"c8e2533ad925c950","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Küche","appliance":"Sense2","devicetype":"101","description":"","x":440,"y":420,"wires":[["92e22b3bbcf30152"]]},{"id":"f2d67eb619de6923","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Wasserkeller","appliance":"Sense3","devicetype":"101","description":"","x":440,"y":480,"wires":[["52d922654befa906"]]},{"id":"dd73ac27fcefb839","type":"grohe location","location":"Haus"}] | ||
[{"id":"66b4df9cdc60b976","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":360,"wires":[["6592afcafa8f6f46"]]},{"id":"30a5462281a04175","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":360,"wires":[]},{"id":"58c71aaadfcde7a3","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":420,"wires":[["c8e2533ad925c950"]]},{"id":"616a402c7b2fb9c7","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":480,"wires":[["f2d67eb619de6923"]]},{"id":"92e22b3bbcf30152","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":420,"wires":[]},{"id":"52d922654befa906","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":480,"wires":[]},{"id":"6592afcafa8f6f46","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"WC","appliance":"Sense1","devicetype":"101","description":"","x":440,"y":360,"wires":[["30a5462281a04175"]]},{"id":"c8e2533ad925c950","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Küche","appliance":"Sense2","devicetype":"101","description":"","x":440,"y":420,"wires":[["92e22b3bbcf30152"]]},{"id":"f2d67eb619de6923","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Wasserkeller","appliance":"Sense3","devicetype":"101","description":"","x":440,"y":480,"wires":[["52d922654befa906"]]},{"id":"e3aeb6fbe42726b5","type":"function","z":"3a763adab0a2a52d","name":"data","func":"let end = new Date();\nlet start = new Date();\nstart.setDate(end.getDate() - 1); // last 7 days.\n\nmsg.payload = {\n data : {\n from : start,\n to : end\n }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":540,"wires":[["f2d67eb619de6923"]]},{"id":"d76b31949d238dd4","type":"inject","z":"3a763adab0a2a52d","name":"get data","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":540,"wires":[["e3aeb6fbe42726b5"]]},{"id":"dd73ac27fcefb839","type":"grohe location","location":"Haus"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"id":"acb005546b6d1d8a","type":"catch","z":"3a763adab0a2a52d","name":"","scope":null,"uncaught":false,"x":130,"y":60,"wires":[["12d34d7f89400a30"]]},{"id":"12d34d7f89400a30","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":300,"y":60,"wires":[]},{"id":"d4e111d3e6674702","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":120,"wires":[["ed7589d527fde314"]]},{"id":"16aa744e037af364","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":120,"wires":[]},{"id":"1714900eea381bcf","type":"inject","z":"3a763adab0a2a52d","name":"open valve","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":120,"y":160,"wires":[["b137886b772ea0d2"]]},{"id":"b137886b772ea0d2","type":"function","z":"3a763adab0a2a52d","name":"open","func":"msg.payload = { \n command : {\n // temp_user_unlock_on: false,\n // reason_for_change: 1,\n // pressure_measurement_running: false,\n // buzzer_on: false,\n // buzzer_sound_profile: 2,\n valve_open: true,\n // measure_now: false,\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":160,"wires":[["ed7589d527fde314"]]},{"id":"2ee7f46b1e23c3be","type":"inject","z":"3a763adab0a2a52d","name":"close valve","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":120,"y":200,"wires":[["01cffcf2a41fdbf6"]]},{"id":"01cffcf2a41fdbf6","type":"function","z":"3a763adab0a2a52d","name":"close","func":"msg.payload = { \n command : {\n // temp_user_unlock_on: false,\n // reason_for_change: 1,\n // pressure_measurement_running: false,\n // buzzer_on: false,\n // buzzer_sound_profile: 2,\n valve_open: false,\n // measure_now: false,\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":200,"wires":[["ed7589d527fde314"]]},{"id":"ed7589d527fde314","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Wasserkeller","appliance":"SenseGuard","devicetype":"103","description":"","x":450,"y":120,"wires":[["16aa744e037af364"]]},{"id":"dd73ac27fcefb839","type":"grohe location","location":"Haus"}] | ||
[{"id":"d4e111d3e6674702","type":"inject","z":"3a763adab0a2a52d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":120,"wires":[["ed7589d527fde314"]]},{"id":"16aa744e037af364","type":"debug","z":"3a763adab0a2a52d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":120,"wires":[]},{"id":"1714900eea381bcf","type":"inject","z":"3a763adab0a2a52d","name":"open valve","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":120,"y":220,"wires":[["b137886b772ea0d2"]]},{"id":"b137886b772ea0d2","type":"function","z":"3a763adab0a2a52d","name":"open","func":"msg.payload = { \n command : {\n // temp_user_unlock_on: false,\n // reason_for_change: 1,\n // pressure_measurement_running: false,\n buzzer_on: true,\n // buzzer_sound_profile: 1,\n valve_open: true,\n // measure_now: true,\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":220,"wires":[["ed7589d527fde314"]]},{"id":"2ee7f46b1e23c3be","type":"inject","z":"3a763adab0a2a52d","name":"close valve","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":120,"y":260,"wires":[["01cffcf2a41fdbf6"]]},{"id":"01cffcf2a41fdbf6","type":"function","z":"3a763adab0a2a52d","name":"close","func":"msg.payload = { \n command : {\n // temp_user_unlock_on: false,\n // reason_for_change: 1,\n // pressure_measurement_running: false,\n buzzer_on: false,\n // buzzer_sound_profile: 2,\n valve_open: false,\n // measure_now: false,\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":260,"wires":[["ed7589d527fde314"]]},{"id":"ed7589d527fde314","type":"grohe sense","z":"3a763adab0a2a52d","location":"dd73ac27fcefb839","room":"Wasserkeller","appliance":"SenseGuard","devicetype":"103","description":"","x":510,"y":120,"wires":[["16aa744e037af364"]]},{"id":"c478c1d3715264d5","type":"function","z":"3a763adab0a2a52d","name":"data","func":"let end = new Date();\nlet start = new Date();\nstart.setDate(end.getDate() - 1); // last 7 days.\n\nmsg.payload = {\n data : {\n from : start,\n to : end\n }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":250,"y":300,"wires":[["ed7589d527fde314"]]},{"id":"8c577a27b2846c21","type":"inject","z":"3a763adab0a2a52d","name":"get data","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":300,"wires":[["c478c1d3715264d5"]]},{"id":"dd73ac27fcefb839","type":"grohe location","location":"Haus"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters