Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.49 KB

README.md

File metadata and controls

34 lines (19 loc) · 1.49 KB

Description

Dashing widget to display weather from Yahoo! Weather using Climacons Font. Also the background of the widget automatically changes to the current temperature outside.

##Dependencies

json

Add the gem to your dashing gemfile:

gem 'json'

and run bundle install.

##Usage

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.

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>

##Settings

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))

##Preview

cold hot