A nest control panel made with Twitter Bootstrap. View historcal graphs and control your nest right from your web browser!
- Intuitive graphing using Highcharts Highstocks graphing tools
https://raw.githubusercontent.com/f0rkz/Bootstrap-Nest-Administration-Tool/master/nest-graphs.png
- Control panel to set temperatures and tweak settings
For Docker version:
If you want to use this simple Nest bootstrap with Docker, please follow these steps:
-
Copy the
nest.conf.php_EXAMPLE
tonest.conf.php
in theincludes
directory and fill it in with oyur configuration values: -
OPTIONAL - ONLY UPDATE IF NOT USING MYSQL IN DOCKER OR IF YOU WANT DIFFERENT CREDS; BE SURE TO MATCH THESE VARIABLES WITH ENV VARIABLES IN DOCKER-COMPOSE.YML
DB_HOST
- mariadbDB_USER
- nest_statsDB_PASS
= n3st_st4tsDB_NAME
= nest_stats
-
STANDARD
LATITUDE
- LatitudeLONGITUDE
- LongitudeDARK_API
- DarkSky API KeyENCRYPTION_KEY
- openssl encryption keyDEFAULT_USER
- optional if you want a username displayed on front page of graph
-
(Opt) Edit the docker-compose.yml file to specify your ENV variables and timezone.
-
Build Docker image:
docker-compose build
-
Run Project
docker-compose up -d
-
Do both build and run in one command:
docker-compose -f "docker-compose.yml" up -d --build
- php7-json
Recommend cloning to and running this this from your /opt/
directory.
Create a mysql database and give it a username and password.
create database nest_stats;
grant all privileges on nest_stats.* to nest_stats@localhost identified by 'some-password';
Export the tables from dbsetup.sql to the mysql database.
mysql -unest_stats -p nest_stats < dbsetup.sql
Set up vhost with documentroot pointing to ./web/ directory
Example: /opt/nest-bootstrap/web/
Copy nest.conf.php_EXAMPLE to nest.conf.php in the includes directory.
cp ./includes/nest.conf.php_EXAMPLE ./includes/nest.conf.php
Edit nest.conf and follow install prompts.
Configure the crontab to collect nest data and do scheduled tasks: Modify the path below to reflect your install:
*/5 * * * * /bin/rm -f /tmp/nest_php_* ; /usr/bin/php /opt/nest-bootstrap/includes/scripts/collect-nest-data.php > /dev/null
You may also update the frequency of data collection by modifing the crontab as so. 5 minutes works out pretty well and keeps from flooding the Nest API with too many requests.
Create an account once you can access the tool and configure your nest login information in settings.
- - Add K8s support
- - Update Database
timestamp
field value fromint
totimestamp
field type in MySQL - - Update
includes/collect-nest-data.php
includes path to detect which dir its in - - Convert
includes/collect-nest-data.php
to python - - Update Docker Support for PHP-7.2
- - Add Alpine Docker option