Skip to content
forked from gtcno/verbinski

A three-column Dashing widget that displays weather information from Forecast.io

License

Notifications You must be signed in to change notification settings

kfirarad/verbinski

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verbinski

A Dashing widget that displays weather information from Forecast.io. Background changes according to temperature (blue for cold, green for cool, orange/red for warm/hot, in various shades). Icons from Climacons.

Inspired by Klimato.

Screenshot

screenshot

Setup/Requirements

Ruby 1.9.2

Heroku requires that Sinatra applications run on Ruby 1.9.2.

  1. If you don't already have Ruby 1.9.2 installed, install it using RVM:

     $ rvm install 1.9.2
    
  2. Make sure that it's installed:

     $ rvm list
    
     rvm rubies
    
        ruby-1.9.2-p320 [ x86_64 ]
     =* ruby-1.9.3-p392 [ x86_64 ]
        ruby-2.0.0-p0 [ x86_64 ]
    
     # => - current
     # =* - current && default
     #  * - default
    
  3. Use Ruby 1.9.2:

     $ rvm use 1.9.2
     Using /Users/yiqing/.rvm/gems/ruby-1.9.2-p320
     $ rvm list
    
     rvm rubies
    
     => ruby-1.9.2-p320 [ x86_64 ]
      * ruby-1.9.3-p392 [ x86_64 ]
        ruby-2.0.0-p0 [ x86_64 ]
    
     # => - current
     # =* - current && default
     #  * - default
    

Create a new gemset

$ rvm gemset create verbinski
gemset created verbinski    => /Users/yiqing/.rvm/gems/ruby-1.9.2-p320@verbinski
$ rvm gemset use verbinski
Using ruby-1.9.2-p320 with gemset verbinski

Install dependencies specified in Gemfile

$ bundle install

Deploying to Heroku

  1. Create a new Heroku app (you'll have to use something other than verbinski):

     $ heroku apps:create verbinski
    
  2. Set Heroku configuration variables:

     heroku config:set FORECAST_API_KEY=myforecastapikey
     heroku config:set LATITUDE=mylatitude
     heroku config:set LONGITUDE=mylongitude
    
  3. Deploy!

     $ git push heroku master
    

Notes

  1. assets/stylesheets/application.scss differs from the original source code in that line 144 has been commented out:

    padding: 25px 12px;

Links

About

A three-column Dashing widget that displays weather information from Forecast.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.3%
  • CSS 9.4%
  • HTML 6.3%
  • CoffeeScript 5.3%
  • Ruby 3.7%