ExOwm v1.2.3 ExOwm.Weather.Worker View Source

Current Weather Worker task implementation.

Link to this section Summary

Functions

Returns current weather 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.

Link to this section Functions

Link to this function

get_weather(location, opts)

View Source

Specs

get_weather(map(), [{:key, atom()}]) :: map()

Returns current weather 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.