Datafield: Heart Rate Zones Chart

Hello all,

this is the suport-thread for the datafield "Heart Rate Zones Chart".

Here you can find the Datafield:
https://apps.garmin.com/de-DE/apps/4...0-c69f911780d6

Feel free to write if you have questions or suggestions (english or german).
Please consider that it was created for my personal use. But with the user configuration via GCM or GE I can share it for everyone who is interested in.

--------------
Overview
--------------
This datafield provides a graph showing the percentage of time spend in the defined HR-zones.
The bars grow depending on the time you spend in the HR-zone during the activity.
It is designed for use in every screen-layout and field size, keeping the default textsize and style, but showing more information about heart rate in a single field.
User configuration is supported for definition of user-depending HR-zones and options.

----------
Details
----------
...are described in the app shop page:
https://apps.garmin.com/de-DE/apps/4...0-c69f911780d6

------------------
Screenshots
------------------






------------------------------------------------------------------------------------------------------------------------------
Version info is included and updated in this post because of limitation of app description
-------------------------------------------------------------------------------------------------------------------------------

------------------------
History - English
------------------------

Version 1.4.1
- updated SDK-version for support of new devices (e.g. Edge 1030)

Version 1.4.0
- updated SDK-version for support of new devices (e.g. fenix 5)
- optimized recognition of timer stated (started/paused).

Version 1.3.2 - 28.06.2016
- corrected descriptions of app settings

Version 1.3.1 - 27.06.2016
- Initialize the datafield after starting an new activity (after anding a previous activity) on Edge devices

Version 1.3.0 - 23.06.2016
- The Datafield supports calculating HR-% based on HR.Max, HR-Rest or LTHR
HR-Max: HR-% is calculated for the range 0 to HR-Max (MR-Max is read from App-Settings/Zones or from user profile)
HR-Rest: HR% is calculated for the range HR-Rest to HR-Max (e.g. 50=0%...180=100% if you set 50 as HR-Rest in App settings)
LTHR: HR% is calculated for the range 0 to LTHR (0=0%, 160=100%, 180=112% if you set 160 as LTHR in App settings)

Version 1.2 - 18.05.2016
- The datafield supports now reading of HR zones from user profile.
If the device-API supports the access-funtions, the datafield uses the HR-zones. Nearly evera device with SDK-version 1.2.6 should be ready for this.
The app settings for HR zones are still present (for compatibility with devices which don't support reading uer profile yet).
With the settings parameter you can switch back to the app settings. So you can still define independent HR zones only for the datafield.
The Zones are read depending on the current sport type. If no zones are defined for the sport type, the default zones are used.

Version 1.1.5c - 16.05.2016
- added support for forerunner FR735XT

Version 1.1.5b - 02.05.2016
- re-added support for Edge 520 & 1000
The app settings should work now with latest Edge firmware

Version 1.1.5a - 01.04.2016
- temporarily stopped support for Edge 520 & 1000
Reason: The Edge-firmware has a bug in app setting handling. The settings are not stored to the device so changes will not take effect
The Edge will be supported if the firmware is updated.

Version 1.1.5 - 23.03.2016
- technical update
- code optimization to reduce memory consumption
- added some new devices

Version 1.1.4 - 15.02.2016
- optimization of text position (centered text)
- optimization of text position for datafield in corner position e.g. on fenix 3 (shifted to non-obscured side)
- changes of style (chart design, text) in ConnectMobile takes effect in running activity

Version 1.1.3 - 11.02.2016
- optimization of text position (more centered)
- optimization of chart drawing performance

Version 1.1.2 - 10.02.2016
- Time in Zones is now only counted if application is active and started

Version 1.1.0 - 10.02.2016
- New settings for chart design:
- thin lines with wide gap (default)
- thin lines with small gap
- bold lines
- solid color. The non-colored HR-value would be easier to read using solid chart color.
- New setting for text size.
- default: same textsize as Garmin-Fields
- dynamic: bigger textsize on bigger fieldsize (e.g. single field, 2 fields). Possible textsize depends on device system fonts.
Details: https://forums.garmin.com/showthread...517#post803517

Version 1.0.0 - 21.12.2015
- initial version


--------------------------
Historie - Deutsch
--------------------------
Version 1.4.1
- Aktualisierung der SDK-Version fpr Kompatibilität mit neuen Ger?ten (z.B. Edge 1030)

Version 1.4.0
- Aktualisierung der SDK-Version fpr Kompatibilität mit neuen Ger?ten (z.B. fenix 5)
- Optimierung der Status-Erkennung (gestartet/pausiert)

Version 1.3.2 - 28.06.2016
- Beschreibungen in den App-Einstellungen korrigiert

Version 1.3.1 - 27.06.2016
- Datenfeld initialisieren beim Start einer neuen Aktivität (nach Beenden einer vorherigen Aktivität) auf Edge-Geräten

Version 1.3.0 - 23.06.2016
- Das Datafield berechnet HR-% basierend auf HR.Max, HR-Rest oder LTHR
HR-Max: HR-% wird berechnet für den Bereich 0 bis HR-Max (HR-Max wird aus den Zonen-Definitionen des Benutzerprofil oder der App-Einstellungen gelesen)
HR-Rest: HR% wird berechnet für den Bereich HR-Rest (Ruhepuls) bis HR-Max (50=0%...180=100% wenn 50 als HR-Rest in den App-Einstellungen angegeben ist)
LTHR: HR% wird berechnet für den Bereich 0 bis LTHR (0=0%, 160=100%, 180=112% wenn 160 als LTHR in den App-Einstellungen angegeben ist)

Version 1.2 - 18.05.2016
- Das Datenfeld verwendet nun die HR-Zonen des Benutzer-Profils.
Wenn das verwendete Gerät den Zugriff auf die Benutzerprofil-Zonen unterstützt, werden diese standardmäßig verwendet.
Dabei werden die Zonen abhängig von der aktuellen Sportart gelesen. Sind zur Sportart keine Zonen definiert, dann werden die Standard-Zonen verwendet.
Die Zonen-Einstellungen in den App-Einstellungen sind noch vorhanden (zur Kompatibilität für Geräte, die das Lesen des Benutzerprofils noch nicht unterstützen).
Mit dem entsprechenden Parameter kann zur Verwendung der App-Einstellungen zurückgewechselt werden. So können z.B. abweichende Zonen speziell für das Datenfeld definiert werden.

Version 1.1.5c - 16.05.2016
- Support für Forerunner FR735XT

Version 1.1.5b - 02.05.2016
- Support for Edge 520 & 1000 wieder aktiviert
Die Epp-Einstellungen sollten mit der aktuellen Edge-Firmware wieder funktionieren

Version 1.1.5a - 01.04.2016
- Support für Edge 520 & 1000 wurde vorübergehend deaktiviert
Grund: Die Edge-Firmware verursacht Fehler beim Speichern der App-Einstellungen. Damit ist es nicht möglich, die Einstellungen des Dtaenfeldes anzupassen.
Die Edge-Unterstützung wird nach einer Firmwarekorrektur seitens Garmin wieder aktiviert.

Version 1.1.5 - 23.03.2016
- Technisches Update
- Code-Optimierung und Reduzierung des Speicherverbrauches
- Neue Geräte ergänzt

Version 1.1.4-15.02.2016
- Textposition angepasst (zentriert)
- Textposition aggepasst für Datenfeld-Position in einer Ecke (bei fenix 3). Der Text wird in Richtung Mitte verschoben.
- Änderungen am Layout in ConnectMobile werden auch in einer laufenden Aktivität übernommen.

Version 1.1.3-11.02.2016
- Text-Position angepasst
- Performanceverbesserungen

Version 1.1.2-10.02.2016
- Zeit in Zonen wird nur während einer gestarteten Aktivität summiert

Version 1.1.0-10.02.2016
- Neue Option zur Wahl eines Diagramm-Designs_
- dünne Linien mit großem Abstand
- dünne Linien mit kleinem Abstand
- breite Linien
- ausgefüllt
- Neue Option zum Einstellen der Textgröße (abhängig von verfügbaren Geräte-Schriften)
Details: https://forums.garmin.com/showthread...517#post803517

Version 1.0.0-21.12.2015
- Initiale Version
  • Its working as intended on Epix! Very good!

    %HRR would be great. Especialy when resting and max HR could be entered to automaticly calculate %HRR zones! :)
  • The definition of HR zones in app settings ist just a workaround because there is currently no way to read HR zones from your user profile (the zones you defined in Garmin Connect).
    So I hope Garmin will extend the SDK so apps can read the profile settings. In that case I would read this central HR zone settings from GC/device and would remove these duplicated settings for the datafield. So you only have to define it in one place (in GC).
    Because of this I don't like to extend the settings. GC has just done a move back to HRmax for zone definition. I want to keep it compatible to GC. I hope you unterstand this reasons. It's just putting 5 numbers from GC to app settings ;)

    But for showing HR value I could add some features.
    I'm not using HR-rest and HR-reserve for myself. What I understood is that HR-reserve is showing a percental value for the HR in the range between HR-rest and HR-max. Right?

    So if this exyample is according to your expectations, it's possible to implement:

    HR-rest: 50
    HR-current: 150
    HR-max: 200

    %HRR = (HR-current - HR-rest) / (HR-max - HR-rest)
    = (150-50) / (200-50)
    = 67% (instead of 75% of HR-max)

    Is that what you want to see?
  • Just use this calculator:

    http://www.marathonguide.com/fitnesscalcs/HeartRate2calc.cfm

    HRR = HRmax - HRrest (200 - 50) = 150
    70% HRR zone = [(HRRx70%)+HRrest] 150x0.7 + 50 = 155


    Your field replaced my standard hr field and it should be default in garmin devices :)
  • I want to keep it compatible to GC. I hope you unterstand this reasons. It's just putting 5 numbers from GC to app settings ;)

    But for showing HR value I could add some features.
    I'm not using HR-rest and HR-reserve for myself. What I understood is that HR-reserve is showing a percental value for the HR in the range between HR-rest and HR-max. Right?


    Sounds reasonable. Too optimistic :-). I think you are right with formula. This can help you:

    http://www.runningforfitness.org/calc/heart-rate-calculators/hrzone
  • Thank you for updates!

    Thank you so much for the updates!! The bold lines and solid colors work fantastic for me on my Fenix 3!! The increased font size is also a huge bonus!! Thank you for taking the time to do this for us!!
  • Too optimistic :-)

    Yes, I am :D

    @sousekd & MikeDozer:
    What would you need in the datafield? Do you want to see the percentage value as %HRR? This would result in showing 67% HRR (instead of 75% HR-max) depending on my example. I don't use it and don't know about advantage. If this is what you need I could do this. In addition a new setting-field for HR-rest would be added. Or did I understood you wrong and you only wanted to have another zone setting option?
    Thanks for your answer.
  • Yes, I am :D

    @sousekd & MikeDozer:
    What would you need in the datafield? Do you want to see the percentage value as %HRR? This would result in showing 67% HRR (instead of 75% HR-max) depending on my example. I don't use it and don't know about advantage. If this is what you need I could do this. In addition a new setting-field for HR-rest would be added. Or did I understood you wrong and you only wanted to have another zone setting option?
    Thanks for your answer.


    Hi, you understood correctly I think. Basically, if you set-up zones using %HRR, you may want to show %HRR instead of BPM in the field. Setting up zones by %HRR can be done manually by calculating zones BPMs. Having an option to show %HRR instead of %HRmax or BPM would be nice. I wouldn't use it probably and left it on BPM, because your field indicates current zone in another way. But I think some guys would like it and I believe the built-in standard HR field has this option as well.
  • Yes i am calculatng them manualy right now :) its ok but it could be usefull by %. Anywa it has replaced my standard HR field, so it is cool :)
    I even swap standard field for your field on my fathers F3 and he is absolutly happy with it :)
  • Hi, you understood correctly I think. Basically, if you set-up zones using %HRR, you may want to show %HRR instead of BPM in the field. Setting up zones by %HRR can be done manually by calculating zones BPMs. Having an option to show %HRR instead of %HRmax or BPM would be nice. I wouldn't use it probably and left it on BPM, because your field indicates current zone in another way. But I think some guys would like it and I believe the built-in standard HR field has this option as well.


    Hello sousekd,
    thanks for clarifying. It seems to be a good choice to give the user the choice for %HRR or HRmax. I'll give it a try. I didn't use it until now but perhaps the %HRR is a bit more intuitive to read.
  • I even swap standard field for your field on my fathers F3 and he is absolutly happy with it :)


    Nice to hear :cool:
    I just did the field for me beacuse the default fields didn't give the information i wanted (especially combined in only one field to avoid scrooling pages). Seems others have the same requirements.
    Greetings to your father ;)