05-01-2021 06:26
05-01-2021 06:26
So I have spent some time digging through the API and making some clock faces for fun. The experience has been pretty enjoyable and I will be posting a few clock faces to the store as free downloads soon. However, I have a major complaint with the inaccessible sleep data on the fitbit.
The sleep API functionality is super limited and user activity does not include the sleep values for the previous night or even sleep goals.
Since the today screen already displays this data, I don't understand why its unavailable to developers. You are already aware what data the users are looking for, you are already displaying it on the today screen.
Please don't bother to bring up the fact that you can fetch data through the messaging API. I have spent the better part of a day looking into this cryptic module and am annoyed by the lack of useful testing tools and constant authentication errors. The support documents lead you to needing a client ID and secret to gain token access, which cant be right for a fetch to your own sleep data onto your clock face.
I have been down the road of
https://dev.fitbit.com/build/reference/web-api/explore/#/Sleep/getSleepByDate
https://dev.fitbit.com/apps/oauthinteractivetutorial
https://dev.fitbit.com/apps/new
This data needs a real solution, not the complex maze that is authentication on a messaging API.
05-01-2021 19:20
05-01-2021 19:20
I realized this also while trying to make an advanced health app. I ended up having to leave out sleep in it.
It is a problem and there should be a solution that is similar to the way we can add stats to clockfaces.