-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
28 lines (21 loc) · 1.09 KB
/
README
File metadata and controls
28 lines (21 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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