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.
06-10-2015 16:10 - edited 06-10-2015 16:12
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.
06-10-2015 15:49
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
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.