ICP4 - marajant/CS5590-IOT-Robotics GitHub Wiki
IOT ICP4
Description
Our goal was to use the node-red software to read the weather pattern from the OpenWeatherMap website and sent the weather information to a UI, Gmail as well as a Twitter account
![gmail]
Flowchart
[{"id":"53ef8565.0c639c","type":"inject","z":"2de38548.faa61a","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":280,"wires":"1bb7e37c.a57bad"},{"id":"b117ab4e.16af28","type":"debug","z":"2de38548.faa61a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":750,"y":240,"wires":[]},{"id":"1bb7e37c.a57bad","type":"openweathermap","z":"2de38548.faa61a","name":"","wtype":"current","lon":"","lat":"","city":"kansas city","country":"USA","language":"en","x":310,"y":280,"wires":"8fc852.fba4b7b"},{"id":"aa94cd4c.d088","type":"ui_text","z":"2de38548.faa61a","group":"faf4a400.4cea48","order":0,"width":0,"height":0,"name":"","label":"Weather","format":"{{msg.payload.detail}}{{msg.payload.detail}}","layout":"row-left","x":740,"y":320,"wires":[]},{"id":"8fc852.fba4b7b","type":"function","z":"2de38548.faa61a","name":"exactTweetMessage","func":"msg.payload = msg.payload.description +" tutu"\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":280,"wires":"b117ab4e.16af28","e10d910e.d2e1a","aa94cd4c.d088","2c1f9dad.09bc42"},{"id":"2c1f9dad.09bc42","type":"twitter out","z":"2de38548.faa61a","twitter":"","name":"Tweet","x":730,"y":360,"wires":[]},{"id":"e10d910e.d2e1a","type":"e-mail","z":"2de38548.faa61a","server":"smtp.gmail.com","port":"465","secure":true,"name":"[email protected]","dname":"weather","x":740,"y":280,"wires":[]},{"id":"faf4a400.4cea48","type":"ui_group","z":"","name":"weather","tab":"549b6752.8a5798","order":1,"disp":true,"width":"6","collapse":false},{"id":"549b6752.8a5798","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1}]