This package includes a job to pull forecasts from the Forecast.io API and a widget to display the forecast information.
- Install into your dashboard with
mix kitto.install --gist 229b76b15eae45ee9f5cc1e5d62a40eb - Register for a DarkSky API key and set it into your applications environment in config/config.exs:
config :my_dashboard,
forecastio_api_key: "..."- Update the
api_key/0method inforecast_io.ex#L31with the correct accessor to the applications environment - Update the
locationvariable inforecast.exs#L11with the correct GPS coordinated to access the forecast for
The forecast widget works in a 1x1 widget:
<div data-widget="Forecast"
data-source="forecast"
data-title="Forecast"
data-moreinfo="Powered by Forecast.io"></div>