forecastr v0.1.9 Forecastr
Forecastr is an application that queries the Open Weather Map API
The Forecastr user API is exposed in this way:
Query the OWM API for today’s weather
Forecastr.forecast(:today, query, params \ %{}, renderer \ Forecastr.Renderer.ASCII )
Query the OWM API for the forecast in the next 5 days
Forecastr.forecast(:in_five_days, query, params \ %{}, renderer \ Forecastr.Renderer.ASCII )
For example:
Forecastr.forecast(:today, “Berlin”)
Forecastr.forecast(:in_five_days, “Berlin”, %{units: :imperial})
Forecastr.forecast(:today, “Lima”, %{units: :imperial}, Forecastr.Renderer.PNG)
Link to this section Summary
Link to this section Types
Link to this type
renderer()
renderer() :: Forecastr.Renderer.ASCII | Forecastr.Renderer.ANSI | Forecastr.Renderer.HTML | Forecastr.Renderer.JSON | Forecastr.Renderer.PNG
Link to this section Functions
Link to this function
forecast(when_to_forecast, query, params \\ %{units: :metric}, renderer \\ Forecastr.Renderer.ASCII)