0.0
No commit activity in last 3 years
No release in over 3 years
A wrapper to a wrapper for the nest thermostat API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0

Runtime

 Project Readme

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

  1. Fork it ( http://github.com/johnotander/nest_wrapper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request