Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

today.local.activeMinutes differs from app and the Fitbit today app

ANSWERED

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:

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

you need to use adjusted values:

 

import { today } from 'user-activity';

let steps = today.adjusted.steps.toString();

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

you need to use adjusted values:

 

import { today } from 'user-activity';

let steps = today.adjusted.steps.toString();
Best Answer
0 Votes

Perfect, thank you! If you don't mind me asking, what is the different between local and adjusted?

Best Answer
0 Votes

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.

Best Answer