11-07-2014 01:17
11-07-2014 01:17
Hello Fitbit community!![]()
Now I try to map Withings sleep data with Fitbit.
Withings have no "isMainSleep" property. Only start/end date property.
So I want to identify main Withings sleep by time duration.
My question is:
When Fitbit marks sleep period as "MainSleep"? Is it calculated relatively sleep duration?
Any help appreciated!![]()
Answered! Go to the Best Answer.
Best Answer06-10-2015 16:10 - edited 06-10-2015 16:12
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.
06-10-2015 16:10 - edited 06-10-2015 16:12
@LGFox: People may have multiple sleep sessions in a day. Fitbit attempts to identify a person's primary session (typically a night of rest) as "main sleep" to help applications disambiguate it from naps.
When logging, you only provide date, start time, and duration. Fitbit then determines if it is a person's primary sleep session. See https://wiki.fitbit.com/display/API/API-Log-Sleep for more information.
Best Answer06-10-2015 15:49
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
06-10-2015 15:49
Nice to see you again @LGFox! The Main Sleep is the sleep duration. You can take a look and check our sleep article.
06-10-2015 16:10 - edited 06-10-2015 16:12
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.
06-10-2015 16:10 - edited 06-10-2015 16:12
@LGFox: People may have multiple sleep sessions in a day. Fitbit attempts to identify a person's primary session (typically a night of rest) as "main sleep" to help applications disambiguate it from naps.
When logging, you only provide date, start time, and duration. Fitbit then determines if it is a person's primary sleep session. See https://wiki.fitbit.com/display/API/API-Log-Sleep for more information.
Best Answer