NestWrapper
This is currently under development.
A wrapper for the nest_thermostat
gem. So, a wrapper that wraps a wrapper.
Installation
Add this line to your application's Gemfile:
gem 'nest_wrapper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nest_wrapper
Usage
Login to the API with your credentials:
NestWrapper.login ENV['NEST_EMAIL'], ENV['NEST_PASSWORD']
Get status information:
state = NestWrapper.device.state
state.temp # => 'Set Temperature'
state.curr_temp # => 'Current Temperature'
state.away # => true || false
state.leaf # => true || false
state.humidity # => 'Humidity'
# etc.
Get device information:
device = NestWrapper.device
device.name # => 'Name of nest device'
device.zip # => 'ZIP'
device.country # => 'COUNTRY'
device.config_data # => { blob: :of_data }
Contributing
- Fork it ( http://github.com/johnotander/nest_wrapper/fork )
- 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