I need help getting my photon to get the weather from: http://api.openweathermap.org/data/2.5/weather?q=Lansdale,US&APPID=“myAPIKEY”&units=imperial
I tried understanding it on my own, but I am mentally disabled/chalenged and can’t get my brain to make the required connections.
An example of what you get when you provide a valid api key is as follows.
{"coord":{"lon":-75.2838,"lat":40.2415},"weather":[{"id":721,"main":"Haze","description":"haze","icon":"50d"}],"base":"stations","main":{"temp":61.74,"feels_like":52.56,"temp_min":60.01,"temp_max":63,"pressure":1026,"humidity":23},"visibility":10000,"wind":{"speed":8.05,"deg":90},"clouds":{"all":1},"dt":1616441144,"sys":{"type":1,"id":4743,"country":"US","sunrise":1616410850,"sunset":1616454895},"timezone":-14400,"id":5197159,"name":"Lansdale","cod":200}
If I can get my photon to be able to read the value that appears above as - “id”:721 - I think I can accomplish my goal. So if anyone can tell me exactly what I need to enter in my code/what I need to do, that would be amazing!
Thanks-