Dashing / Smashing widget to display weather from Yahoo! Weather using Climacons Font. The current weather is displayed on top. Underneath is the forecast for the next two days.
Add the gem to your dashing gemfile:
gem 'json'
and run bundle install
.
To use this widget, copy klimato.coffee
, klimato.html
, and klimato.sass
into the /widgets/klimato
directory. Put the klimato.rb
file in your /jobs
folder, the 4 font files (.EOT, .WOFF, .SVG & .TTF) in your /assets/fonts
directory and the climacons-font.css
in your /assets/stylesheets
directory.
You need to add your API key, your consumer secret and consumer key to the klimato.rb
file in your /jobs
folder.
To include the widget into your dashboard add the following code:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="klimato" data-view="Klimato"></div>
</li>
Adjust the widget to your desired location by editing the WOEID (Where On Earth ID) in the jobs file. (You can lookup your WOEID here: http://woeid.rosselliot.co.nz)
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))