Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Showing sleep data on fitbit device

ANSWERED

I would like to show sleep data on my Fitbit Versa. Is there a way to get your sleep data straight from the Fitbit device without using the web api? I've looked through the device API but I only seem to find information like heart-rate, user-activity (steps, stairs,...), etc. 

I would like to have an app on my Fitbit which shows me how much I slept straight after I woke up without having to sync with my phone and then open the sleep part of the Fitbit phone app. It would be nice not having to use the web api so my Fitbit doesn't need to be connected to my phone for internet.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

That's my understanding, yes. Even if some sleep processing is done on the device (which I doubt), there's no way to access it via the Device API. You'd have to do the processing yourself. The hardest part of that would be determining how to interpret the sensor readings in terms of sleep stages, etc.

 

I don't use my Fitbit's sleep data because it can't distinguish between when I'm asleep and when I'm watching TV. You may be able to come up with a better algorithm than Fitbit!

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
6 REPLIES 6

Short answer: no.

 

It could be done if your app ran all night and assessed the various sensor readings continually, then made its own decisions about your sleep state. NOT trivial to do.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

So I guess that when syncing with your phone the data is sent to Fitbit servers and processed over there? And the only way to get similar result without syncing is processing the data itself on the fitbit and the fitbit does not have that native functionality?

Best Answer
0 Votes

That's my understanding, yes. Even if some sleep processing is done on the device (which I doubt), there's no way to access it via the Device API. You'd have to do the processing yourself. The hardest part of that would be determining how to interpret the sensor readings in terms of sleep stages, etc.

 

I don't use my Fitbit's sleep data because it can't distinguish between when I'm asleep and when I'm watching TV. You may be able to come up with a better algorithm than Fitbit!

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Ok, thanks for your reply! 

 

I would have to do more research if I want to interpret and process the sensor readings myself. If that would be feasible I might do that but I fear it will be too complex to do this as a side project if I can't find good information on how to get and process the data. 

Best Answer
0 Votes

You can query the Web APIs as mentioned, there's an example app here https://github.com/Fitbit/sdk-oauth

Best Answer
0 Votes

Thanks for the reply. Can I assume that there is no code freely available which analyses the sensor data resulting into the amount of sleep and the different sleep stages?

Best Answer
0 Votes