04-29-2023 22:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-29-2023 22:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I would like to realize realtime tracking with the fitbit Charge 5. Especially I would like to track in realtime if I am sleeping or not via webApi. Also it turns out the SDK does not really has this option, because of non existing background possibility and SDK App build restriction("This API provides a reliable update mechanism which is automatically deactivated when the device display is off" - with this it's nor usefull). The "All-day feature" not available anymore. The windows or mac app is not available anymore. It turns out the the problem is the missing syncing functionality by webApi or any other code. Are the possibilities to do it and how? Are Fitbit devices maybe the wrong choice? So far I was thinking to run an android app via some emulator in windows or linux(macOS), and write a code to move the cursor/display to update, as a first step. Would you have any better idea?
04-29-2023 22:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-29-2023 22:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Using Charge 5, the web API is your only option. However, the web API isn't real-time; it's only updated whenever the watch syncs (ie, every 20 minutes or so).
Gondwana Software

05-01-2023 06:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-01-2023 06:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you @Gondwana
Hi @DHR-FITB ... as Gondwana explained, the Web API is not real-time. Even if the device syncs while you're sleeping, it will not provide you data about your sleep until you wake up and sync your device to complete the sleep log. If you know how to use real-time heart rate data and accelerometer data to determine if you are asleep, the Device SDK would be your solution. However, the Device SDK is only supported on the smartwatches (i.e. Ionic, Versa family and Sense family devices). And, it sounds like there may be a limitation regarding keeping the device awake.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

