10-20-2021 08:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-20-2021 08:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

10-20-2021 08:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-20-2021 08:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

10-20-2021 14:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-20-2021 14:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi Rummi,
Typically, the sleep log with the longest sleep of the day will contain isMainSleep = true.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
