03-09-2018 13:57
03-09-2018 13:57
Hey all,
The local fitbit data seems to have a bit of a bug. What I get back from today.local.activeMinutes differs from the phone and Fitbit's Today app. I've tried rebooting both devices and resyncing several times. Below are pictures showing what I'm talking about.
The app showing 42:
The Today app showing 42:
My code output showing 46:
Answered! Go to the Best Answer.
03-09-2018 14:17
03-09-2018 14:17
you need to use adjusted values:
import { today } from 'user-activity'; let steps = today.adjusted.steps.toString();
03-09-2018 14:17
03-09-2018 14:17
you need to use adjusted values:
import { today } from 'user-activity'; let steps = today.adjusted.steps.toString();
03-09-2018 14:29
03-09-2018 14:29
Perfect, thank you! If you don't mind me asking, what is the different between local and adjusted?
03-09-2018 15:00
03-09-2018 15:00
If I understand correctly, adjusted values are the ones that are "adjusted" by the server ML algorithm. Local ones are an approximation to be used in between syncs.