Reads the utility usage of various public buildings including Number 10 Downing Street
Add this line to your application's Gemfile:
gem 'carbonculture'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carbonculture
You can find building from organisations or call it directly.
org = Carbonculture::Organisation.new('number10')
org.places
or
Carbonculture::Place.new('10-downing-street', 'number10')
Channels for different types of utility (electric, gas, etc)
Carbonculture::Place.new('10-downing-street', 'number10').channels
The above example will list all available channels. Below you can target specific type of energy.
Carbonculture::Channel.new('heat', '10-downing-street', 'number10')
Options can be passed in as a Hash.
Carbonculture::Channel.new('heat', '10-downing-street', 'number10', { 'start-time' => '2013-10-01' })
More information on options, methods and results available can be discovered at http://data.carbonculture.net/docs
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request