# implement new "active zone minute" feature from Fitbit

**URL:** <https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830>\
**Category:** Bugabee\
**Created:** [May 31, 2020, 7:00am UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830 "2020-05-31T07:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyenleccss361](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nguyenleccss361](https://forum.beeminder.com/u/nguyenleccss361)\
**Post date:** [May 31, 2020, 7:00am UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/1 "2020-05-31T07:00:24Z")

</div>

Because all Fitbit existing tracking feature (steps, active minute, distance, calories) are very easy to cheat: just manually log your exercise from Fitbit app and it will sync to beeminder, I suggest to implement new “active zone minute” feature (only available on Charge 4 I think). This new feature can not be cheated since it needs your heart rate to be able to achieve.

Read more on this link: [https://help.fitbit.com/articles/en\_US/Help\_article/1379](https://help.fitbit.com/articles/en_US/Help_article/1379)

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [June 1, 2020, 10:43pm UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/2 "2020-06-01T22:43:37Z")

</div>

Great idea! Thanks for suggesting this! (Psst, others should click ❤ on this to help spur us to prioritize it…)

---

<div class="post-metadata">

**Author:** ![hiibb](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@hiibb](https://forum.beeminder.com/u/hiibb)\
**Post date:** [September 25, 2020, 4:16pm UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/3 "2020-09-25T16:16:50Z")

</div>

I would also be very interested in this feature!

---

<div class="post-metadata">

**Author:** ![dmalik](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dmalik](https://forum.beeminder.com/u/dmalik)\
**Post date:** [February 18, 2021, 9:23pm UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/4 "2021-02-18T21:23:27Z")

</div>

I would like this too, not because of cheating but because “active minutes” aren’t a very useful thing to maximize. AZM is much more useful.

You can fetch active zone minutes by getting time in each heart rate zone using this API:

> **[Fitbit Development: Heart Rate](https://dev.fitbit.com/build/reference/web-api/heart-rate/)**
>
> You'll fit in here. Using JavaScript, CSS, and SVG, developers now have a fast, easy way to build apps and clock faces for Fitbit OS.

Then you can calculate: AZM = minutes of “fat burn” + 2\*(minutes of “cardio” + minutes of “peak”)

---

<div class="post-metadata">

**Author:** ![clivemeister](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/clivemeister/32/2034_2.png) [@clivemeister](https://forum.beeminder.com/u/clivemeister)\
**Post date:** [April 23, 2022, 9:44am UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/5 "2022-04-23T09:44:12Z")

</div>

EDIT: I find (by viewing the source code) that actually all this is in there already. We can record Active Zone Minutes: by setting the target to “zoneminutes”, the code will check the “ActiveZoneMinutes” field and record that (writing an error out if it’s not there). Further down the code I also see that asking for “fairly\_active\_time” actually records “fairlyActiveMinutes” plus “veryActiveMinutes”, if the latter is there at all.

~~I think this is getting more important as more people are moving to newer Fitbits: [What are Active Zone Minutes or active minutes on my Fitbit device?](https://help.fitbit.com/articles/en_US/Help_article/1379.htm)~~

~~Right now I think we are using the [Get Daily Activity Summary (fitbit.com)](https://dev.fitbit.com/build/reference/web-api/activity/get-daily-activity-summary/#) API call. This returns (amongst other things) “lightlyActiveMinutes”, “fairlyActiveMinutes”, and “veryActiveMinutes”. As @dmalik says, we can simply calculate Active Zone Minutes from:  
AZM = lightlyActiveMinutes + 2\*(fairlyActiveMinutes + veryActiveMinutes)~~

~~Since users of these newer fitbits are looking at displays in their apps showing Active Zone Minutes, we really need to reflect this in Beeminder, or people will (rightly!) be confused why we aren’t showing the values they are seeing!~~

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [April 25, 2022, 7:12am UTC](https://forum.beeminder.com/t/implement-new-active-zone-minute-feature-from-fitbit/6830/6 "2022-04-25T07:12:21Z")

</div>

Ah, yes, thanks @clivemeister!

See also:  
[http://beeminder.com/changelog#4043](http://beeminder.com/changelog#4043)  
[http://beeminder.com/changelog#4044](http://beeminder.com/changelog#4044)
