Skip to content

rqbanerjee/nest-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rajat Banerjee
http://github.com/rqbanerjee


Requirements:
- Tested with Ruby 2.1.1
- rvm -- http://rvm.io
- httparty - gem install httparty
- Nest developer account. NEST_ID and NEST_SECRET from https://developer.nest.com/products


Installation
gem install httparty

To run from an EC2 instance on Amazon Linux:
sudo yum install mysql-devel build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool
sudo gem install mysql2

Database setup
- Use a MYSQL RDS host, t2.small will do it
- Log in on the command line as the 'master user' you set while setting it up. 'root' is prohibited so don't try that.
- CREATE DATABASE thermo;
- GRANT ALL ON thermo.* TO '<YOUR MASTER USER>'@'localhost';
- CREATE USER 'nestwriter'@'localhost' IDENTIFIED BY '<GENERATE A PASSWORD FOR NEST USER AND PUT IT IN YOUR CONFIG>';
- GRANT INSERT ON thermo.* TO 'nestwriter'@'localhost';

Create the db
mysql -h <YOUR RDS HOST>.us-east-1.rds.amazonaws.com -P 3306 -u <YOUR MASTER USER> -p  thermo < db/create_database.sql 

About

scripts to interface with nest thermostats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages