Support Center

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

Process http weather forecast json request with microcontrollers with oly a few K of ram

Ulrich Springer Apr 02, 2018 06:05PM BST

Hi, is it possible to divide a weather forecast request in a couple of smaller requests?
The json memeory footprint of the weather forcast with cnt = 40 is too big. Is there a method for requesting forecast data in "chunks" e.g. form 1 to 8, then from 9 to 16, and so on?

Regards
Ulrich Springer
- Germany -

Up 0 rated Down
Maxim Gushcho Apr 03, 2018 08:12AM BST OpenWeatherMap Agent

Hello Ulrich,

Thanks for the request.

You can limit the number of records providied by forecast API using cnt parameter.

Like this: http://api.openweathermap.org/data/2.5/forecast?q=London&apikey=xxxxxx&cnt=10

This is the only possible way.

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