Simple flow to put WeatherApi on Dashboard by timestamps.
-
-
Save EdgarWollust/2204d0c8a4ee009a2c96083781427e56 to your computer and use it in GitHub Desktop.
Openweathermap on Dashboard
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
[{"id":"d78a34f9.756958","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"ee142ab8.569928","type":"inject","z":"d78a34f9.756958","name":"","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":135,"y":197,"wires":[["f408a168.a2bd5"]]},{"id":"c8da45e2.bfb458","type":"function","z":"d78a34f9.756958","name":"Auswahl","func":"msg.payload = msg.payload.weather;\nreturn msg;","outputs":1,"noerr":0,"x":625,"y":197,"wires":[["2f70a9c8.4389c6"]]},{"id":"7a0ca6ba.0ba8b8","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":3,"width":0,"height":0,"name":"","label":"Wetter","format":"{{msg.payload}}","layout":"row-spread","x":995,"y":197,"wires":[]},{"id":"e4e538ac.821fc8","type":"function","z":"d78a34f9.756958","name":"Auswahl","func":"msg.payload = msg.payload.windspeed\nreturn msg;\n\n\n\n","outputs":1,"noerr":0,"x":625,"y":257,"wires":[["cad06bcf.b070c8"]]},{"id":"a426f875.fa2b58","type":"function","z":"d78a34f9.756958","name":"Auswahl","func":"msg.payload = msg.payload.pressure;\nreturn msg;","outputs":1,"noerr":0,"x":625,"y":317,"wires":[["7882f071.099ed"]]},{"id":"7882f071.099ed","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":5,"width":0,"height":0,"name":"","label":"Luftdruck","format":"{{msg.payload}} hPa","layout":"row-spread","x":805,"y":317,"wires":[]},{"id":"38c113c9.9229ec","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":4,"width":0,"height":0,"name":"","label":"Windgeschwindigkeit","format":"{{msg.payload}} km/h","layout":"row-spread","x":1245,"y":257,"wires":[]},{"id":"f408a168.a2bd5","type":"openweathermap","z":"d78a34f9.756958","name":"","wtype":"current","lon":"","lat":"","city":"Dresden","country":"Germany","language":"de","x":355,"y":197,"wires":[["c8da45e2.bfb458","e4e538ac.821fc8","a426f875.fa2b58","2abda9e4.60dc46"]]},{"id":"2f70a9c8.4389c6","type":"google-translate","z":"d78a34f9.756958","name":"Übersetzen","to":"de","x":815,"y":197,"wires":[["7a0ca6ba.0ba8b8"]]},{"id":"2abda9e4.60dc46","type":"function","z":"d78a34f9.756958","name":"Auswahl","func":"msg.payload = msg.payload.winddirection;\nreturn msg;","outputs":1,"noerr":0,"x":625,"y":377,"wires":[["b98c475e.30aa28"]]},{"id":"7d07405.331d1c","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":5,"width":0,"height":0,"name":"","label":"Windrichtung","format":"{{msg.payload}} °","layout":"row-spread","x":1015,"y":377,"wires":[]},{"id":"cad06bcf.b070c8","type":"unit-converter","z":"d78a34f9.756958","category":"speed","inputUnit":"m/s","outputUnit":"km/h","inputField":"payload","outputField":"payload","inputFieldType":"msg","outputFieldType":"msg","name":"Umrechnen","x":815,"y":257,"wires":[["dda93c21.74e17"]]},{"id":"dda93c21.74e17","type":"function","z":"d78a34f9.756958","name":"Aufrunden","func":"msg.payload = msg.payload.toFixed(1).replace('.', ',');\nreturn msg;","outputs":1,"noerr":0,"x":1015,"y":257,"wires":[["38c113c9.9229ec"]]},{"id":"b98c475e.30aa28","type":"function","z":"d78a34f9.756958","name":"Aufrunden","func":"msg.payload = msg.payload.toFixed(1).replace('.', ',');\nreturn msg;","outputs":1,"noerr":0,"x":815,"y":377,"wires":[["7d07405.331d1c"]]},{"id":"58a2d79b.5d99d8","type":"ui_group","z":"","name":"Wetter Aktuell","tab":"e823fcf3.f66dd","order":1,"disp":true,"width":"6","collapse":false},{"id":"e823fcf3.f66dd","type":"ui_tab","z":"","name":"Seite 2","icon":"dashboard","order":2,"disabled":false,"hidden":false}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Edgar, thanks for the code but the most important part of weather info is missing ie the Temperature, is this an easy fix ?
regards
Stuart