11-03-2021 02:18
11-03-2021 02:18
We are developing a clock face that will show steps count, heart rate, and sleeping hours. We are able to get steps to count and heart rate from device API but are not able to get sleeping hours.
Is there any way to get sleeping hours from device API?
I found device API which will give the state of "awake" or "asleep".
https://dev.fitbit.com/build/reference/device-api/sleep/
but I am not able to capture these above events("awake", "asleep").
Could anybody suggest what is the best approach we should follow?
11-03-2021 04:24
11-03-2021 04:24
The device sleep API is just a simple classifier. https://dev.fitbit.com/blog/2020-09-10-announcing-fitbit-os-sdk-4.2/#sleep-api
Actual sleep data can be fetched from the web APIs. There's an example here https://github.com/Fitbit/sdk-oauth
11-07-2021 23:50
11-07-2021 23:50
How we can test this API( https://dev.fitbit.com/blog/2020-09-10-announcing-fitbit-os-sdk-4.2/#sleep-api) on the Fitbit emulator or Real device and How we can create a sleeping scenario in the Fitbit emulator.
11-11-2021 00:44 - edited 11-11-2021 00:55
11-11-2021 00:44 - edited 11-11-2021 00:55
did you find it anyway? and one strange issue I am faced for the last 3-4 days. Fitbit Simulator only showing companion phone to connect but device not connecting to visual studio. It's working fine for the real device(Sense).
Please check the below screenshot
The device bridge is disconnected
11-11-2021 02:06