Browse Source

Upload new JSON-File

master
Joachim Hummel 8 months ago
parent
commit
f01056d450
  1. 2
      flow.json

2
flow.json

@ -1 +1 @@
[{"id":"f271535cb0921814","type":"tab","label":"Netzfrequenz","disabled":false,"info":"","env":[]},{"id":"cc2580d9d9b74a34","type":"group","z":"f271535cb0921814","name":"","style":{"fill":"#92d04f","label":true},"nodes":["46f8d2a7fc530ae3","b4b3c8d7360f6e53","90821e2472eeab11","f56f93575149e669","1445243a58bffc6b","4fbf298b16d2175c","c8183ed878f00901","ec7432bc.138bd","af094afe8cc6365e","71c5b266fd4e1dfb","daf1ab2ff2a82e33","de4e13a2a5329c90"],"env":[],"x":114,"y":119,"w":972,"h":382},{"id":"46f8d2a7fc530ae3","type":"http request","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://netzfrequenzmessung.de:9080/frequenz01.xml","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":410,"y":260,"wires":[["f56f93575149e669"]]},{"id":"b4b3c8d7360f6e53","type":"debug","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":950,"y":260,"wires":[]},{"id":"90821e2472eeab11","type":"inject","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":220,"y":260,"wires":[["46f8d2a7fc530ae3"]]},{"id":"f56f93575149e669","type":"xml","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","property":"payload","attr":"","chr":"","x":590,"y":260,"wires":[["1445243a58bffc6b"]]},{"id":"1445243a58bffc6b","type":"function","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","func":"var freq = msg.payload.r.f[0];\nmsg.payload = freq;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":260,"wires":[["b4b3c8d7360f6e53","c8183ed878f00901"]]},{"id":"4fbf298b16d2175c","type":"comment","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"Netzfrequenz Überwachung","info":"","x":660,"y":160,"wires":[]},{"id":"c8183ed878f00901","type":"switch","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"49.500","vt":"str"},{"t":"gt","v":"50.000","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":340,"wires":[["daf1ab2ff2a82e33"],["daf1ab2ff2a82e33"]]},{"id":"ec7432bc.138bd","type":"telegram sender","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","bot":"888217daa537620c","haserroroutput":true,"outputs":2,"x":980,"y":460,"wires":[[],[]]},{"id":"af094afe8cc6365e","type":"inject","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","props":[{"p":"payload.text","v":"","vt":"date"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":590,"y":460,"wires":[["71c5b266fd4e1dfb"]]},{"id":"71c5b266fd4e1dfb","type":"function","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","func":"var msg1 = msg.payload.text;\nmsg.payload = {}\nmsg.payload.chatId = XXXXXXXX\nmsg.payload.type = \"message\"\nmsg.payload.content = msg1+\": Aktuelle Netzfrequenz\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":460,"wires":[["ec7432bc.138bd"]]},{"id":"daf1ab2ff2a82e33","type":"change","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.text","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":340,"wires":[["71c5b266fd4e1dfb"]]},{"id":"de4e13a2a5329c90","type":"inject","z":"f271535cb0921814","g":"cc2580d9d9b74a34","name":"Test","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<r> <f>50.02</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":430,"y":200,"wires":[["f56f93575149e669"]]},{"id":"888217daa537620c","type":"telegram bot","botname":"Dein_bot","usernames":"","chatids":"XXXXXXXX","baseapiurl":"","updatemode":"polling","pollinterval":"300","usesocks":false,"sockshost":"","socksport":"6667","socksusername":"anonymous","sockspassword":"","bothost":"","botpath":"","localbotport":"8443","publicbotport":"8443","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":true}]
[{"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:9080/frequenz01.xml';\nmsg.url = url0+\"?\"+Math.round(Math.random()*100000);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":330,"y":240,"wires":[["0317149365c4f1f3"]]},{"id":"4d6abd77c5388fab","type":"telegram bot","botname":"Dein_Bot","usernames":"","chatids":"","baseapiurl":"","updatemode":"polling","pollinterval":"300","usesocks":false,"sockshost":"","socksport":"6667","socksusername":"anonymous","sockspassword":"","bothost":"","botpath":"","localbotport":"8443","publicbotport":"8443","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false}]

Loading…
Cancel
Save