I categorized the app as personal, I am able to access the minute by minute sleep data. However I am able to get the complete data only after waking up. Instead I need to get sleep data at multiple times in the middle of the night of the current sleep.
The request URL I am using is
https://api.fitbit.com/1/user/-/sleep/date/today.json
With this I am getting previous night's data until mid night, then the sleep data is null. I changed the date to tomorrow's date in the current code and I will have to test it tonight, but I believe its gonna show null until I wake up.
Please help me get minute by minute data for current sleep instead all at once after wakign up.
Thanks.
Answered! Go to the Best Answer.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Sleep logs are only available after awakening and a device sync.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Yup, please consider this for future API release.
There is some interest for this app I am trying to build
https://www.reddit.com/r/fitbit/comments/3uvmaj/is_there_any_app_out_there_which_can_mute_music/
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Keep in mind that devices only attempt to sync every 15–20 minutes. Even if partial sleep logs were added, this would be a significant delay to pausing someone's music.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
In order to maximize the time between having to charge the device, Bluetooth communication is kept to a minimum. I would not expect to see this functionality offered.
Best AnswerWhile it should be kept to a minimum for most usages, for many real-time applications, the ability to force syncs would be extremily helpful.
Best AnswerIs there any progress about this?
Thanks.
Best Answer