Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'mode' command to turn thermostat on and off #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add 'mode' command to turn thermostat on and off #19

wants to merge 1 commit into from

Conversation

scotte
Copy link

@scotte scotte commented Nov 5, 2014

Supported modes: off, heat, cool, auto

Supported modes: off, heat, cool, auto
@youngrh
Copy link

youngrh commented Nov 23, 2014

Around the time that nest announced the developer program my implementation
of the pynest.py program stopped working.

Given the change in the nest api, will this updated version of pynest.py
still work with my nest?

On Wednesday, November 5, 2014, Scott Emmons [email protected]
wrote:

Supported modes: off, heat, cool, auto

You can merge this Pull Request by running

git pull https://github.com/scotte/pynest master

Or view, comment on, or merge it at:

#19
Commit Summary

  • Add 'mode' command to turn thermostat on and off

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#19.

Sent from Gmail Mobile

@scotte
Copy link
Author

scotte commented Nov 23, 2014

It works fine, maybe you just needed an updated version?

I don't expect this pull request, or any of the other ones to ever be merged (after submitting this I noticed that someone else already made a similar pull request) - this project is no longer maintained. I started a rewrite, a bit cleaner and more modular, at https://github.com/scotte/nestcontrol

@youngrh
Copy link

youngrh commented Dec 27, 2014

Hello Scott,

I hope you and yours had a very Merry Christmas!

I am running CentOS 6.6 and python 2.6.

After editing the nest.py file by changing "python2.7" to "python2.6 and
running it, I get the following output. I hope you will be able to guide
me in the right direction with getting it to work as I really miss pynest
when it was working.

#################### Beginning of output
##################################
(mylogin@myserver Linux)
(/home/mylogin/nestcontrol/nestcontrol)$ ./nest.py -u [email protected] -p
mypass -d 5
Sat Dec 27 18:44:06 EST 2014
Logging in
POST: https://home.nest.com/user/login
headers: None
http_status: 400
headers: {'content-length': '91', 'content-encoding': 'gzip', 'date': 'Sat,
27 Dec 2014 23:41:43 GMT', 'set-cookie': 'cztoken=; Expires=Sat, 27 Dec
2014 23:41:43 GMT', 'content-type': 'application/json', 'connection':
'keep-alive', 'server': 'nginx/1.1.19'}
Error, nest API returned HTTP status 400
Traceback (most recent call last):
File "./nest.py", line 216, in
auth = login(session, args.username, args.password)
File "./nest.py", line 102, in login
data = r.json()
AttributeError: 'NoneType' object has no attribute 'json'

(mylogin@myserver Linux)
(/home/mylogin/nestcontrol/nestcontrol)$
#################### End of output ##################################

Thanks so much!

Ron

Ron Young
919-621-9015
http://www.linkedin.com/in/ronhyoung

+++++++++++++++++++
Little tiny dreams require little tiny thoughts and little tiny steps.
Great big dreams require great big thoughts and little tiny steps.
+++++++++++++++++++

On Sun, Nov 23, 2014 at 5:43 PM, Scott Emmons [email protected]
wrote:

It works fine, maybe you just needed an updated version?

I don't expect this pull request, or any of the other ones to ever be
merged (after submitting this I noticed that someone else already made a
similar pull request) - this project is no longer maintained. I started a
rewrite, a bit cleaner and more modular, at
https://github.com/scotte/nestcontrol


Reply to this email directly or view it on GitHub
#19 (comment).

@youngrh
Copy link

youngrh commented Dec 28, 2014

Scott,

My apologies for the previous email!! The nest.py app works great!

I had forgotten that since my last nest api testing that I had changed my
password at nest some weeks ago using LastPass to generate the password due
to the recent hacking activities.

Happy New Year!

Ron

Ron Young
919-621-9015
http://www.linkedin.com/in/ronhyoung

+++++++++++++++++++
Little tiny dreams require little tiny thoughts and little tiny steps.
Great big dreams require great big thoughts and little tiny steps.
+++++++++++++++++++

On Sun, Nov 23, 2014 at 5:43 PM, Scott Emmons [email protected]
wrote:

It works fine, maybe you just needed an updated version?

I don't expect this pull request, or any of the other ones to ever be
merged (after submitting this I noticed that someone else already made a
similar pull request) - this project is no longer maintained. I started a
rewrite, a bit cleaner and more modular, at
https://github.com/scotte/nestcontrol


Reply to this email directly or view it on GitHub
#19 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants