09-15-2017 03:45
09-15-2017 03:45
Using the API, I am getting some odd BMR's compared to the total calories, mainly when steps are low. These are amounting to - calories when I am calculating calories burnt after BMR (calories - BMR).
I am fetching calories via:
> user/-/activities/calories/date/today/max.json
and the (truncated) example data I get back is :
{"dateTime":"2016-05-08","value":"1734"}
I am fetching historic BMR via:
> user/-/activities/caloriesBMR/date/today/max.json
and the (truncated) example data I get back is :
{"dateTime":"2016-05-08","value":"1743"}
So obviously 1734 - 1743 = -9
Steps on this day were 12
Distance on this day was 0.01km
The calories of 1734 match up to what is showing on your dashboard
My working theory is because I have changed my weight / height the BMR has updated, but the calories for the day have not, this is why I am ending up with negative numbers with low counts.
If someone could tell me why this is happening / whether my suspicions are correct / best way to deal with this scenario I would greatly appreciate it.