ESP32 to get weather forecast using Climacell’s API

Hi,
I am trying to program my ESP32 to get weather forecast using Climacell’s API.
I want it to relay the data every 3 hours during the night, but stay dormant during the day.
What would be the best way to set up relatively long intervals of this nature.
Can anyone direct me to a code example that is economical on CPU resources.
Thanks in advance

That question doesn’t seem to have anything to do with TTN. The original question in this thread concerned potentially using TTN to feed observation data into the weather forecasting system. But getting results out of it via an API isn’t a TTN question. Try more general resources from the project, someone has almost certainly made themselves a little weather display with an OLED and an ESP32…

(If you found your way here from a general web search, it’s important to take a minute to understand that TTN is a (hopefully) global network of things like sensor nodes, but constrained to sending only truly tiny amounts of information - just a few bytes per hour. And with very infrequent exception is usable in the uplink direction only, from devices to the cloud and not in the reverse - so unfortunately you can’t use it to send weather reports to an off-grid cabin)

3 Likes

Thank you! I will surely look into that. I appreciate your reply.