06-16-2018 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-16-2018 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Assuming a code snippet like this one:
hrm.onreading = function() {
console.log("Zone: " + user.heartRateZone(hrm.heartRate));
}
What are all potential Zone values one could get? I want to have an if statement doing something different on each zone but can't seem to find the values listed anywhere.
Answered! Go to the Best Answer.

Accepted Solutions
06-19-2018 05:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-19-2018 05:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
06-17-2018 05:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-17-2018 05:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The different zones are listed here. From hight to low you have: peak zone, cardio zone, fatburn zone and out of zone. There is also the possibility of a custom zone which you can set yourself apparently.
I don't know how they will come out of 'hrm.heartRate' but I guess you'll figure that out if you print one out 🙂

06-19-2018 05:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-19-2018 05:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
The strings are :
"out-of-range" "fat-burn"
"cardio"
"peak"
06-19-2018 17:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-19-2018 17:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, I knew about that page but wanted to confirm the exact strings.

06-19-2018 17:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-19-2018 17:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks! 🙂

