Get Current Weather Condition and Extract Current Temperature

Get Current Weather Condition and Extract Current Temperature

[{"id":"9c494b8d.c0c408","type":"http request","z":"a7258722.5275","name":"Get Current Weather","method":"GET","ret":"obj","url":"https://twcservice.mybluemix.net/api/weather/v1/geocode/11.3/77.8/observations.json?language=en-US","tls":"","x":269.857177734375,"y":915.6428527832031,"wires":[["ce09b41.4041848","deb23a37.ecfbb8"]]},{"id":"b32d496a.9851b","type":"inject","z":"a7258722.5275","name":"Trigger weather output","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":155.75006103515625,"y":840.9999694824219,"wires":[["9c494b8d.c0c408"]]},{"id":"deb23a37.ecfbb8","type":"debug","z":"a7258722.5275","name":"Current weather output","active":true,"console":"false","complete":"payload","x":460.9722595214844,"y":980.8493041992188,"wires":[]},{"id":"8606981a.54df","type":"debug","z":"a7258722.5275","name":"Weather channel temperature today","active":true,"console":"false","complete":"payload","x":888.1432495117188,"y":830.2858581542969,"wires":[]},{"id":"ba380ac7.1a59e","type":"template","z":"a7258722.5275","name":"Weather Channel Temperature in Fahrenheit","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"Temperature now from Weather Channel: {{payload}} degree Fahrenheit!","x":731.2857666015625,"y":917.2859191894531,"wires":[["8606981a.54df"]]},{"id":"ce09b41.4041848","type":"function","z":"a7258722.5275","name":"Get Temperature data from Weather rest api","func":"return {payload:msg.payload.observation.temp};","outputs":1,"noerr":0,"x":512.8569641113281,"y":840.0003051757812,"wires":[["ba380ac7.1a59e"]]}]
gmagie

Flow Info

created 10 months, 2 weeks ago

Node Types

Core
  • debug (x2)
  • function (x1)
  • http request (x1)
  • inject (x1)
  • template (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option