1

My program is using the Firebase API and successfully getting data and changes back.

If you compare the data returned from the Firebase API and the nest website (Rest API) it looks like the Firebase data is rounded to the nearest integer (temps) or the nearest 5% for humidity.

Is this expected behavior? Why would the REST API have more exact numbers when Firebase is the preferred access method? How can I get the most exact data from Firebase.

Firebase data
Data from Firebase API

Rest API data enter image description here

Andrew Pearson
  • 317
  • 2
  • 12
  • There should be no difference in the values. Is this on a real or simulated device? – urman Oct 14 '15 at 01:45
  • @urman This is on a real device. I believe know what might cause the difference. I'm using the developer firebase API on the console output, while using API calls meant for home.nest.com on the excel sheet. The API calls code comes from https://gist.github.com/beezly/9b2de3749d687fdbff3f – Andrew Pearson Oct 15 '15 at 03:33
  • Ok thats what it looks like to me as well. I updated the answer, thanks! – urman Oct 16 '15 at 16:06

1 Answers1

2

You are using the unofficial API for the calls that are updating your spreadsheet. The unofficial API has no support of guaranteed accuracy.

As a side note use of the unofficial api is also very insecure. Never put your user credentials into anywhere other than a Nest owned domain.

urman
  • 596
  • 2
  • 9