03-26-2016 10:23 - edited 03-26-2016 10:25
03-26-2016 10:23 - edited 03-26-2016 10:25
I'm issuing the following API call:
https://api.fitbit.com/1/user/-/activities/heart/date/2016-03-25/1d/1sec/time/15:06/15:53.json
By my calculations this should return around 2800 samples (47 minutes x 60 seconds). It returns slightly over 300 samples, although the begin and end times returned for the first and the last sample are accurate. Does this imply that my fitbit HR is not reading my heartrate about 90% of the time?
Thanks, Len
03-26-2016 20:59
03-26-2016 20:59
@ljhardy wrote:I'm issuing the following API call:
https://api.fitbit.com/1/user/-/activities/heart/date/2016-03-25/1d/1sec/time/15:06/15:53.json
By my calculations this should return around 2800 samples (47 minutes x 60 seconds). It returns slightly over 300 samples, although the begin and end times returned for the first and the last sample are accurate. Does this imply that my fitbit HR is not reading my heartrate about 90% of the time?
Thanks, Len
@ljhardy I have found you can check that and get about 2.5 seconds/plot if you create a Custom Activity and check a section of your daily HR's.
See this example where I was checking my sleep. That test should confirm that your HR is being recorded at least at the level of 2.5 to 3 seconds/plot point.
03-27-2016 07:56
03-27-2016 07:56
Thanks Colin, but I'm still not understanding. If the API has an option for 1sec and 1 min intervals, shouldn't it return the heartrate at these 1 second or 1 minute intervals?
I tried to set up an activity for my sleep and when I checked the "this is a sleep record" and tried to save the activity, I received this error:
03-27-2016 12:19
03-27-2016 12:19
@ljhardy Thanks for getting back to us.. You will always get that error if your create an Activity Record, Edit and tick the sleep box because there is a sleep period there.
You need to create a Custom Activity called Sleep and that works and gives you your HR in the detail..
I agree the data in the API should return what you are expecting.
Colin
@ljhardy wrote:Thanks Colin, but I'm still not understanding. If the API has an option for 1sec and 1 min intervals, shouldn't it return the heartrate at these 1 second or 1 minute intervals?
I tried to set up an activity for my sleep and when I checked the "this is a sleep record" and tried to save the activity, I received this error: