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

heartRateZone values

ANSWERED

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.

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The strings are :

"out-of-range"
"fat-burn"
"cardio"
"peak"

View best answer in original post

Best Answer
4 REPLIES 4

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 🙂

Best Answer
0 Votes

The strings are :

"out-of-range"
"fat-burn"
"cardio"
"peak"
Best Answer

Yes, I knew about that page but wanted to confirm the exact strings.

Best Answer
0 Votes

Thanks! 🙂

Best Answer
0 Votes