02-20-2022 23:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-20-2022 23:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi all,
I received Fitbit data that was exported using complicated programming language that I don't know, but while looking at it, I came up with few questions about the variable I see:
1. As for the variable "sleep : timeInBed" in the sleep log list, what is the equation to get this value?
According to the data I have, thought it was: "sleep : minutesAsleep + sleep : minutesAfterWakeup + Restless duration + Awake duration". But seems this is not correct - I calculated and checked that most of the values in my data follow this equation but there are few that do not match.
2. I also have the distance variable: "activities : distance". I checked the description that says "distance traveled during the exercise". My questions is, what is the unit of the distance value? Is it in kilometers? meters?
Your help is much appreciated. Thank you so much in advance!
02-23-2022 13:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-23-2022 13:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @jireh7
1. We don't share our algorithms. However, looking at my data I believe "minutesAsleep + minutesAwake + minutesToFallAsleep = timeInBed"
2. The units is determine at the time the data was pulled. If you're not sure, it's possibly metric units. See https://dev.fitbit.com/build/reference/web-api/developer-guide/application-design/#Unit-Systems
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
