Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Heart Rate Intraday Time Series - # of samples returned?

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

Best Answer
0 Votes
3 REPLIES 3

@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.hr 21mar16.jpg

Colin:Victoria, Australia
Ionic (OS 4.2.1, 27.72.1.15), Android App 3.45.1, Premium, Phone Sony Xperia XA2, Android 9.0
Best Answer
0 Votes

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:

 

 

 

screen-capture.png

Best Answer
0 Votes

@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:

 

 

 

screen-capture.png


 

Colin:Victoria, Australia
Ionic (OS 4.2.1, 27.72.1.15), Android App 3.45.1, Premium, Phone Sony Xperia XA2, Android 9.0
Best Answer
0 Votes