Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

I cannot get list.weather.main

Romney May 04, 2019 03:00PM BST

Excuse me, but I need help.I want to get the weather parameters.

I referred to below link.
https://openweathermap.org/forecast5

Based on the "weather parameter in API response", I could get the "data.list". I'm also be able to get "data.list.main.temp" & "data.list.weather", but cannot get "data.list.weather.main".

I got an response "undefined" when I tried to get "data.list.weather.main".

When I tried to get "data.list.weather", the response was like that.
[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}]"}]

Does someone give me any help to solve this problem?

Up 0 rated Down
romney May 09, 2019 03:20PM BST
Solved by myself.

I just need to describe as below.
"data.list.weather[0].main"

[0] should be there.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete