Python API for Dummies


#1

Hi all -

I’m trying to understand how the API authentication works. I’m making a simple temperature logger for my own personal use. I’ve registered as a developer, created a bogus product, got the PIN via the auth URL. I then got the access token via curl (or requests in python). I was then able to query my thermostat once. After the single query I’m unable to query again without the manual steps of getting the PIN and auth URL. How can I automate this so I can log the temp every 30 minutes without the manual PIN steps. What am I missing? Please help!


#2

Looks like you’ve got all the Nest parts hooked up right but need some help with the code aspect. I’d suggest visiting StackOverflow for more in-depth code questions. The Python community there is great and you can also use the nest-api tag.