View Source ExOwm.HistoricalWeather.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

Link to this function

get_historical_weather(location, opts)

View Source
@spec get_historical_weather(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.