01-10-2020 06:13
01-10-2020 06:13
Hi
How can I measure stress because Fitbit does not provides skin conductance level (SCL) ? Can I get heart rate variety?
What kind of data of accelerometer sensor? Thank you
01-14-2020 10:31
01-14-2020 10:31
Unfortunately we don't expose HRV. Accelerometer data is available (x,z,y) - https://dev.fitbit.com/build/reference/device-api/accelerometer/
01-15-2020 08:19
01-15-2020 08:19
For dream detection I calculated Hrv with this method :
for one minute , get heartbeat per minute
take max and min of these value, and output the difference
the result is pretty accurate if frequency is good.
01-15-2020 08:33
01-15-2020 08:33
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;
}
});
01-26-2020 10:47 - edited 01-26-2020 10:48
01-26-2020 10:47 - edited 01-26-2020 10:48
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 🙂
01-26-2020 11:48
01-26-2020 11:48
https://dev.fitbit.com/build/guides/sensors/heart-rate/
https://dev.fitbit.com/build/reference/device-api/heart-rate/