View Source ExOwm.SixteenDayForecast.Worker (ExOwm v1.3.1)

Sixteen Day Forecast Worker task implementation.

Summary

Functions

Returns sixteen 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_sixteen_day_forecast(location, opts)

View Source
@spec get_sixteen_day_forecast(map(), [{:key, atom()}]) ::
  {:ok, map()} | {:error, map()} | {:error, map(), map()}

Returns sixteen 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.