Git Product home page Git Product logo

node-nest's Introduction

This is not an official Google product.

Node-Nest

Controls output pins of a beaglebone board in sync with Nest Thermostat states.

Example usage

Connect 120v air conditioner to Nest via Wi-Fi instead of using 24v HVAC wires.

Nest would think that it controls AC via 24v HVAC wire, but in reality your beaglebone would control it instead.

  1. Hardware configuration:
    1. BeagleBone Black w/ Wi-Fi module and external power source.
    2. PowerSwitch Tail II (PST2) in between your AC and power outlet.
    3. BeagleBone pin P9_2 connected to "-" PST2 input.
    4. BeagleBone pin P9_12 connected to "+" PST2 input.
    5. Wire jammed in Nest Y1 socket, accepting error message once.
  2. Software configuration:
    1. Ubuntu 14.04
    2. NodeJs 0.10 (0.12 is not compatible with bonescript as of April 2015)

sudo apt-get install npm nodejs-legacy

    3. NodeNest service & configuration:
        1. `git clone https://github.com/timothybasanov/node-nest.git`
        2. `cd node-nest`
        3. Config should be edited to add your login/pass for Nest: `nano config.js`
    4. Required NodeJs packages: `npm install bonescript unofficial-nest-api`
    5. Update bonescript to the nightly:
    ```
cd ..
git clone https://github.com/jadonk/bonescript.git
cp -v bonescript/src/* node-nest/node_modules/bonescript/
cp -v bonescript/package.json node-nest/node_modules/
cd node-nest
npm install ffi
5. Test running: `sudo node index.js`
  1. Running as a service (be careful, this opens a potential security hole as service runs under root):
    1. sudo ln -sv ~/node-nest/index.js /usr/local/bin/node-nest
    2. sudo cp node-nest.conf /etc/init/
    3. sudo service node-nest start
    4. Check: sudo tail -F /var/log/upstart/node-nest.log

Now your air conditioner should be controlled by Nest Thermostat. In real time.

Limitations

  • Could not read or write humidifier status as API exposed by Nest is limited, you can map your humidifier to a fan to trigger it once a day.

node-nest's People

Contributors

timothybasanov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.