View Source Weather (Weather v0.3.2)
Gets and displays weather information.
API Key Needed
In order to use
Weather
, you'll need to create an account at OpenWeatherMap and get an API key for the One Call API 3.0 service.The service allows for 1,000 free API calls per day.
Summary
Functions
Fetches weather from the OpenWeatherMap API.
Fetches weather from the OpenWeatherMap API. Raises a RuntimeError
if any problems are encountered.
Functions
@spec get(Weather.Opts.t()) :: {:ok, String.t()} | {:error, String.t()}
Fetches weather from the OpenWeatherMap API.
@spec get!(Weather.Opts.t()) :: String.t()
Fetches weather from the OpenWeatherMap API. Raises a RuntimeError
if any problems are encountered.