View Source ExOwm.FiveDayForecast.Worker (ExOwm v1.3.1)
Five Day Forecast Worker task implementation.
Summary
Functions
Returns five day weather forecast for a specific location and given options. Checks whether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL.
Functions
@spec get_five_day_forecast(map(), [{:key, atom()}]) :: {:ok, map()} | {:error, map()} | {:error, map(), map()}
Returns five day weather forecast for a specific location and given options. Checks whether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL.