netzfrequenz/flow.json

2 lines
4.6 KiB
JSON
Raw Normal View History

2021-11-05 11:20:14 +00:00
[{"id":"a9fa47cbeb7f0912","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"d832bb581bea7f25","type":"group","z":"a9fa47cbeb7f0912","name":"","style":{"fill":"#bfdbef","label":true},"nodes":["0317149365c4f1f3","0c550ef4e393e187","a355aee9340a9ecc","554b7037ebfa363c","8ac36b2b5f1715a3","0d745433e5a8f5af","f664981292095622","25ef36794cc4aa8c","74ecb656dd57f070","b54a398aef2e7f74","3a55a8ac75e45386","32c4ad773c4f1a5f","f2d4c58a0f0202a2"],"env":[],"x":74,"y":99,"w":1032,"h":382},{"id":"0317149365c4f1f3","type":"http request","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Frequenzmessung","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":530,"y":240,"wires":[["554b7037ebfa363c"]]},{"id":"0c550ef4e393e187","type":"debug","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1010,"y":240,"wires":[]},{"id":"a355aee9340a9ecc","type":"inject","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":180,"y":240,"wires":[["f2d4c58a0f0202a2"]]},{"id":"554b7037ebfa363c","type":"xml","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"","property":"payload","attr":"","chr":"","x":710,"y":240,"wires":[["8ac36b2b5f1715a3"]]},{"id":"8ac36b2b5f1715a3","type":"function","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Lese Wert","func":"var freq = msg.payload.r.f[0];\nmsg.payload = freq;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":860,"y":240,"wires":[["0c550ef4e393e187","f664981292095622"]]},{"id":"0d745433e5a8f5af","type":"comment","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Netzfrequenz Überwachung","info":"","x":620,"y":140,"wires":[]},{"id":"f664981292095622","type":"switch","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Schwellwerte","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"49.800","vt":"str"},{"t":"gt","v":"50.050","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":340,"wires":[["3a55a8ac75e45386"],["3a55a8ac75e45386"]]},{"id":"25ef36794cc4aa8c","type":"telegram sender","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"","bot":"4d6abd77c5388fab","haserroroutput":true,"outputs":2,"x":960,"y":440,"wires":[[],[]]},{"id":"74ecb656dd57f070","type":"inject","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"","props":[{"p":"payload.text","v":"","vt":"date"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":510,"y":440,"wires":[["b54a398aef2e7f74"]]},{"id":"b54a398aef2e7f74","type":"function","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Sende zu Telegram","func":"var msg1 = msg.payload.text;\nmsg.payload = {}\nmsg.payload.chatId = XXXXXXX\nmsg.payload.type = \"message\"\nmsg.payload.content = msg1+\": Aktuelle Netzfrequenz\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":730,"y":440,"wires":[["25ef36794cc4aa8c"]]},{"id":"3a55a8ac75e45386","type":"change","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Text Payload","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.text","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":340,"wires":[["b54a398aef2e7f74"]]},{"id":"32c4ad773c4f1a5f","type":"inject","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"Test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<r> <f>50.06</f> <n>C_4</n> <z> 04.11.2021 12:18:49</z> <p>064</p> <d>007</d> <dt>-15,84</dt> </r>","payloadType":"str","x":570,"y":180,"wires":[["554b7037ebfa363c"]]},{"id":"f2d4c58a0f0202a2","type":"function","z":"a9fa47cbeb7f0912","g":"d832bb581bea7f25","name":"URL","func":"var url0='https://netzfrequenzmessung.de