Skip to content

Latest commit

 

History

History
112 lines (73 loc) · 2.51 KB

README.md

File metadata and controls

112 lines (73 loc) · 2.51 KB

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
  1. 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
  1. 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