The Weather module uses the OpenWeather API to show how's the weather where you live.
You need to provide an environment variable called
OPEN_WEATHER_API_KEY with you OpenWeather's api key. This module has two submodules; current weather and forecasts. Both has their own feeds on OpenWeather.
Every hour, the data gets updated, this is to comply with OpenWeather's api call limitations and let's be honest, the weather rarely changes that much in an hour. But this is configurable, so you prefer, you can update the
refresh option to something else than 1 hour.
The forecasts uses the
/forecast endpoint which provides about 5 days every 3 hours forecast. The view will pick the noon forecast to be displayed.
The server do both calls in parrallel then notifies the view. It keeps a custom casted struct of the OpenWeather's payload to be used in views.
integer, required) Your city's ID based on this list
string, optional) Locale to displays days of the forecast; fallbacks to
unit, optional) Unit to display weather info (either metric or imperial); fallbacks to
:metric | :imperial
integer, optional) Numbers of milliseconds before refreshing the weather; fallbacks