12-23-2015 09:16
12-23-2015 09:16
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.
12-23-2015 14:40
12-23-2015 14:40
Sleep logs are only available after awakening and a device sync.
12-23-2015 14:40
12-23-2015 14:40
Sleep logs are only available after awakening and a device sync.
12-23-2015 15:36
12-23-2015 15:36
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/
12-24-2015 12:12
12-24-2015 12:12
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.
12-24-2015 12:33
12-24-2015 12:33
12-24-2015 13:33
12-24-2015 13:33
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.
02-26-2016 07:40
02-26-2016 07:40
While it should be kept to a minimum for most usages, for many real-time applications, the ability to force syncs would be extremily helpful.
06-20-2016 06:58
06-20-2016 06:58
Is there any progress about this?
Thanks.