Get Current Weather Condition and Extract Current Temperature
Last active
September 22, 2023 13:03
-
-
Save gmagie/41316faa91cea8b6155f026613b5d0a9 to your computer and use it in GitHub Desktop.
Get Current Weather Condition and Extract Current Temperature
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":"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"]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have an update for this? https://twcservice.mybluemix.net no longer exists...