Skip to content

alexanderbecher/klimato-dashing-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

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.

Dependencies

Yahoo Weather API key

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.

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>

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

preview

About

Yahoo Weather widget for Dashing using Climacons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 47.3%
  • CSS 22.8%
  • CoffeeScript 20.8%
  • HTML 9.1%