1

I'm using the Nest API to poll the current temperature and related temperature data from two of my Nests (simultaneously).

I was initially polling this data every minute but started getting an error:

nest.nest.APIError: blocked

I don't get the error every minute, more like intermittently every 5-10 minutes.

Reading through their documentation it seems that while pulling data once per minute is permissible, it's the maximum recommended query frequency.

So I set it to two minutes. I'm still getting the error.

I'm using this Python package, although I'm starting to wonder if there's too much going on under the hood that is making unnecessary requests.

Has anyone had any experience with this type of Nest error, or this Python package before?

Does polling two Nests with the same authenticated call result in multiple requests, as it relates to their data limiting?

Should I just scrap this package and roll my own? (this is generally my preference, but I need to learn to stop always re-writing everything the moment I hit a snag like this in order to fully control and thoroughly understand each aspect of a particular integration, right?)

Ryan Martin
  • 1,613
  • 3
  • 24
  • 36
  • The rate limit for polling typically sits at around 180 GET calls per hour and 10 PUT calls per hour. Blocked is almost always a rate limit error, but you can confirm if its an HTTP 429 returned. – urman Mar 09 '17 at 20:43
  • I scrapped the package I was using and wrote the (relatively simple) integration myself so I can be absolutely positive i'm within those limits. Will update here with more information – Ryan Martin Mar 10 '17 at 19:05
  • This problem was fixed by getting rid of the Python Nest package and writing a fresh integration. I can confirm I can pull at least once per minute without any issues. – Ryan Martin Mar 13 '17 at 18:32

0 Answers0