Hey gang. I’m new to Imp and new to JSON.
I’ve made a lot of progress from code I’ve been able to reference from the forums. (Thank you, community!)
I’m working with the forcast.io api and I feel like I’m taking crazy pills trying to extract some data.
Here’s the forecast.io response:
{“latitude”:33.988687,“longitude”:-84.508454,“timezone”:“America/New_York”,“offset”:-5,“currently”:{“time”:1390150800,“summary”:“Clear”,“icon”:“clear-day”,“precipIntensity”:0,“precipProbability”:0,“temperature”:48.03,“apparentTemperature”:42.73,“dewPoint”:26.59,“humidity”:0.43,“windSpeed”:12.72,“windBearing”:290,“visibility”:10,“cloudCover”:0,“pressure”:1018.8},“daily”:{“data”:[{“time”:1390107600,“summary”:“Clear throughout the day.”,“icon”:“clear-day”,“sunriseTime”:1390135394,“sunsetTime”:1390172193,“moonPhase”:0.63,“precipIntensity”:0,“precipIntensityMax”:0,“precipProbability”:0,“temperatureMin”:33.71,“temperatureMinTime”:1390136400,“temperatureMax”:51.73,“temperatureMaxTime”:1390176000,“apparentTemperatureMin”:29.16,“apparentTemperatureMinTime”:1390136400,“apparentTemperatureMax”:51.73,“apparentTemperatureMaxTime”:1390176000,“dewPoint”:23.24,“humidity”:0.47,“windSpeed”:7.21,“windBearing”:260,“visibility”:10,“cloudCover”:0,“pressure”:1016.98}]},“flags”:{“sources”:[“isd”],“isd-stations”:[“722156-53873”,“722195-03888”,“722196-53863”,“722270-13864”,“747812-63813”],“units”:“us”}}
I want the data in the “daily” section at the bottom of the response. Specifically the sunriseTime, sunsetTime, and precipProbability.
Any suggestions?