Weatheroutlook Dashing Widget displays a 5-days weather outlook from Yahoo! Weather using Climacons Font.
Add the gem to your dashing gemfile:
gem 'json'
and run bundle install
.
First, copy weatheroutlook.coffee
, weatheroutlook.html
, and weatheroutlook.sass
into the /widgets/weatheroutlook
directory. Put the weatheroutlook.rb
file in the /jobs
folder, the 4 font files (.EOT, .WOFF, .SVG & .TTF) in the /assets/fonts
directory and the climacons-font.css
in the /assets/stylesheets
directory.
To use the widget, put the following codes in the /dashboards
directory's .erb
file:
<li data-row="1" data-col="1" data-sizex="4" data-sizey="1">
<div data-id="weatheroutlook" data-view="Weatheroutlook"></div>
</li>
Change to your desired location by editing the WOEID (Where On Earth ID) in the jobs file. Lookup your WOEID here
woeid = 2151330 # beijing
You are also able to change the metrics unit for your widget by editing the format in the jobs file. ( Yahoo! Weather API supports both Fahrenheit (f) and Celsius (c). Change the temperature unit by editing the format variable.
format = "f"
Just as a warning to others, trying to install this via "dashing install 6362854" fails to install weatheroutlook.sass. Manual install works fine.