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

sleep mainevent?

Hi, I am analyzing sleep data downloaded from fitbit API. There is a column called mainevent that has either TRUE or FALSE. I want to know the algorithm of how fitbit figures out which one is sleep main event (night sleep) or just a nap.

Best Answer
0 Votes
2 REPLIES 2

Hi @Rummi  you posted this in the Blaze area of the forum and it's been moved to the Developer's area for API. You'll get better responses in this forum area.

Stepping in the U.S.A. since September 2013. Android 14

Best Answer
0 Votes

Hi Rummi,

 

Typically, the sleep log with the longest sleep of the day will contain isMainSleep = true.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer