OpenWeatherMap not displaying

Hello all!

So, in the app I’m working on, I wanted a simple label at the top of the home screen that displays the current temperature. I went and signed up for an OpenWeatherMap API and figured out the city code I wanted, so was able to put the URL together and call up some data. I put some blocks together and tried it out but I can’t get it to work. Can anyone tell me where I went wrong? I’m at the point where I’m unsure of what to search for. I think I may be parsing the objects incorrectly, but that’s code that I’m using from other working projects, so I’m unsure how to debug it.

This is the very top of the JSON file, and references, what I’m assuming is, today. The rest of the data in the file repeats for 16 days.

{
“cod”:“200”,
“message”:0.0039,
“cnt”:40,
“list”:[
{
“dt”:1549562400,
“main”:{
“temp”:289.55,
“temp_min”:277.301,
“temp_max”:289.55,
“pressure”:949.09,
“sea_level”:1043.23,
“grnd_level”:949.09,
“humidity”:22,
“temp_kf”:12.25
},
“weather”:[
{
“id”:800,
“main”:“Clear”,
“description”:“clear sky”,
“icon”:“01d”
}
Here’s the blocks I put together hack’n’slash style from other remixed projects.

Thank you!

Just remove the “get property list” block and you should be good to go. Just tested this and it’s working.

2 Likes

Thank you so much! I really appreciate your help!

1 Like