This file contains hidden or 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":"58fee7bf.6157d8","type":"tab","label":"NodeRED","disabled":false,"info":""},{"id":"53760db8.55aa94","type":"change","z":"58fee7bf.6157d8","name":"","rules":[{"t":"set","p":"API_weather","pt":"global","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":40,"wires":[[]]},{"id":"cfbfcfa.b41733","type":"inject","z":"58fee7bf.6157d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":40,"wires":[["53760db8.55aa94"]]},{"id":"e4156e89.283d6","type":"function","z":"58fee7bf.6157d8","name":"Get Weather from OpenWeather","func":"var API = global.get(\"API_weather\");\nvar city = msg.payload;\nvar units = msg.topic;\n\n\nmsg.url = \"https://api.openweathermap.org/data/2.5/forecast?q=\"+city+\"&units=\"+units+\"&appid=\" + API;\nreturn msg;","outputs":1,"noerr":0,"initialize":"\n","finalize":"","x":370,"y":160,"wires":[["46abee35.1228"]]},{"id":"46abee35.122 |
This file contains hidden or 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":"c450d8c0.8be3c8","type":"tab","label":"NodeRED session1 ","disabled":false,"info":""},{"id":"58167317.1a064c","type":"mqtt in","z":"c450d8c0.8be3c8","name":"","topic":"tele/testlight/SENSOR","qos":"0","datatype":"json","broker":"6e117ba5.8026e4","x":720,"y":60,"wires":[["f2ded7e5.730378"]]},{"id":"f2ded7e5.730378","type":"debug","z":"c450d8c0.8be3c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1140,"y":60,"wires":[]},{"id":"998f5aa6.7f10a8","type":"mqtt out","z":"c450d8c0.8be3c8","name":"","topic":"tele/testlight/STATE","qos":"","retain":"","broker":"6e117ba5.8026e4","x":1100,"y":120,"wires":[]},{"id":"3cd5cd97.9127b2","type":"inject","z":"c450d8c0.8be3c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":730,"y":120,"wires":[["998f5aa6.7f10a8"]]},{"id":"9c3cff0f.8029b","type":"ping","z":"c450d8c0.8be3c8","mode":"timed","name":"Device offline","host":"www.google.com1","timer":"5","inputs |