Dashing widget to display weather from forecast.io.
##Usage
To use this widget, copy forecast.coffee
, forecast.html
, and forecast.scss
into the /widgets/forecast
directory. Put the forecast.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following to your dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="forecast" data-view="Forecast" data-title="Weather Forecast" ></div>
</li>
##Settings
- Forecast API Key from developer.forecast.io
- Latitude and Longitude for your desired location. Easily obtained from forward geocoding sites such as geocoder.ca
- Configurable temperature units. (US, SI, UK)
- Default schedule set to fetch weather every 5 minutes but can be changed from within forcast.rb.
Firstly, Thankyou this is awesome.
For some reason this was "minutely" as the top level key, Was causing exception on line 24.
https://gist.github.com/mjamieson/5274790#file-forecast-rb-L24
Needs to be hourly to match json from forecast.io
forecast_hour_summary = forecast["hourly"]["summary"]