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 AnswerHi @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.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi Rummi,
Typically, the sleep log with the longest sleep of the day will contain isMainSleep = true.
Gordon