ExOwm v1.1.1 ExOwm.CurentWeather.Worker View Source

Curent Weather Worker task implementation.

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

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.