ExOwm v1.0.0-rc.1 ExOwm.Worker View Source

Module’s code is executed as Elixir Task.

Link to this section Summary

Functions

Returns current weather for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL

Returns five day weather forecast for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL

Returns sixteen day weather forecast for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL

Link to this section Functions

Link to this function get_current_weather(location, opts) View Source
get_current_weather(map(), [{:key, atom()}]) :: map()

Returns current weather for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL.

Link to this function get_five_day_forecast(location, opts) View Source
get_five_day_forecast(map(), [{:key, atom()}]) :: map()

Returns five day weather forecast for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL.

Link to this function get_sixteen_day_forecast(location, opts) View Source
get_sixteen_day_forecast(map(), [{:key, atom()}]) :: map()

Returns sixteen day weather forecast for a specific location and given options. Checks wether request has been already cached, if not it sends the request to OWM API and caches it with specific TTL.