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.
Unfortunately we don't expose HRV. Accelerometer data is available (x,z,y) - https://dev.fitbit.com/build/reference/device-api/accelerometer/
with minhr and maxhr declared globally and reset after each variability calculation :
var hrm = new HeartRateSensor({ frequency: 1, batch: 1 });
// Declare an event handler that will be called every time a new HR value is received.
hrm.addEventListener("reading", () => {
// Peek the current sensor values - first of batch, ignore the others
//console.log("Current heart rate: " + hrm.heartRate);
hrLabel.text = hrm.heartRate;
lastValueTimestamp = Date.now();
if (maxhr < hrm.heartRate) {
maxhr = hrm.heartRate;
}
if (minhr > hrm.heartRate) {
minhr = hrm.heartRate;
}
});
Thank you YannisParis. Can I access data every minute? How can I know If current heart rate in rest situation or not ?what do frequency and batch parameters meaning? Thank you so much 🙂
Best Answerhttps://dev.fitbit.com/build/guides/sensors/heart-rate/
https://dev.fitbit.com/build/reference/device-api/heart-rate/