I am trying to collect weather data from openweather.com on a NANO33 IOT (and JSON 6.X). I have registered to the Free plan what gives access to current and forecast weather data (with some calls/minute limitation).
The current weather call works as expected in browser and on IOT:
However changing the parameters following website instructions the forecast call works in browser but on NANO IOT "serialprint"-ing ApiData returns nothing
Thanks for the reply. The data is retrieved in HTML format or JSON? I assume in HTML. I am looking for JSON.
For me still an open question how is it possible that the code for "current weather" call works but "forecast" does not. I have double checked all the attributes I even tested in Postman.
Thanks for your help. I was playing a bit with my code and I think I have found the issue
but now gets more interesting. It looks like if I call only "hourly" data than serialprint does not show any data ("&exclude=minutely,current,alerts,daily).
As I see in your code you excluded "hourly". Could you please try it on your your end what happens?
If you can retrieve the hourly forecast than maybe the NANO33 IOT board has not enough memory? Arduino JSON Assistant suggests 24576 byte need to store that data.
(Probably you noticed I am not an expert just a hobbyist so any of your help is appreciated!)
Hi, many thanks. The original project is a garden watering system and I alternate the daily programs with sunset/sundown and current weather data. When I was playing with API came the idea to poll weather forecast data to show it on the TFT.
Now my ESP is on the way, it will do the forecast poll. I will wiretransfer (IIC) it to the NANO to visualize it on the TFT.
So again many thanks for your help. If you are interested I can share the whole project with you when I am finished.