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.
Heroku requires that Sinatra applications run on Ruby 1.9.2.
- If you don't already have Ruby 1.9.2 installed, install it using RVM:
$ rvm install 1.9.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
- 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
$ 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
$ bundle install
-
Create a new Heroku app (you'll have to use something other than
verbinski
):$ heroku apps:create verbinski
-
Set Heroku configuration variables:
heroku config:set FORECAST_API_KEY=myforecastapikey heroku config:set LATITUDE=mylatitude heroku config:set LONGITUDE=mylongitude
-
Deploy!
$ git push heroku master
-
assets/stylesheets/application.scss
differs from the original source code in that line 144 has been commented out:padding: 25px 12px;