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

Sleep dashboard and api inconsistencies

ANSWERED

Hello,

 

I've encountered some inconsistencies between the total sleep time displayed in the dashboard and the total sleep amount returned by the end /sleep endpoint. An example sample of the return (with minute data ommited):

 

{"sleep":[{"efficiency":90,"awakeCount":2,"minutesAsleep":454,"awakeDuration":2,"minutesAwake":50,"minuteData":[],"restlessDuration":48,"isMainSleep":true,"duration":30240000,"minutesToFallAsleep":0,"minutesAfterWakeup":0,"dateOfSleep":"2017-06-02","awakeningsCount":35,"restlessCount":33,"timeInBed":504,"logId":14830648278,"startTime":"2017-06-01T22:23:30.000","endTime":"2017-06-02T06:48:00.000"}],"summary":{"totalMinutesAsleep":454,"totalTimeInBed":504,"stages":{"deep":70,"wake":66,"light":197,"rem":72},"totalSleepRecords":1}}

The dashboard:

http://imgur.com/07xcf3F

 

Sleep day on dashboard

 

As can be seen, there is a 15 minute difference from the "minutesAsleep" return and the "Time Asleep" reported on the dash board.

 

Any insight would be great

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@dev_t Looks like you're using an old endpoint. See this post about changes to sleep endpoints

Andrew | Community Moderator, Fitbit

What motivates you?

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

@dev_t Looks like you're using an old endpoint. See this post about changes to sleep endpoints

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

That was indeed the issue, 1 -> 1.2 - thanks

Best Answer

@dev_t Glad I could help! Robot Very Happy

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes