-
Notifications
You must be signed in to change notification settings - Fork 58
Command Line Tool
Troy Fontaine edited this page Jul 9, 2017
·
2 revisions
The python-nest command-line tool, nest
can be executed and set up to talk to the Nest™ API:
- Using the arguments --client-id and --client-secret (including your credentials from your Nest™ Developer Account.
- Using a properly formatted configuration file.
Once you have generated a token_cache file (this is created automatically with either method), you can remove the config file or cease using the --client-id and --client-secret arguments.
The configuration file is relatively straight forward, it should be formatted as follows.
[nest]
client_id = 99999999-9999-9999-9999-999999999999
client_secret = suchGoodSecretIsGood
# If your nest is not in range mode
nest --conf myconfig --client-id CLIENTID --client-secret SECRET temp 73
# If your nest is in range mode
nest --conf myconfig --client-id CLIENTID --client-secret SECRET temp 66 73
nest --conf myconfig --client-id CLIENTID --client-secret SECRET fan --auto
nest --conf myconfig --client-id CLIENTID --client-secret SECRET target_hum 35