01-10-2020 06:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-10-2020 06:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-14-2020 10:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-15-2020 08:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-15-2020 08:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-26-2020 10:47 - edited 01-26-2020 10:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-26-2020 11:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
https://dev.fitbit.com/build/guides/sensors/heart-rate/
https://dev.fitbit.com/build/reference/device-api/heart-rate/
Gondwana Software
