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
  • Edge 520/1000 is supported now

    Hallo,

    the Edge-series (520/1000) is supported again.
    Thanks to Danny for testing it on the Edge ;)

    The storing of app setting should work now with the new firmware.
    Please test it and give me a info in thios thread ist there are still errors.
    Thanks.

    Bye
    Ronny
  • vivoactive HR

    Setting is not storing when adding the field. It shows then defaults to timer.:)
  • Setting is not storing when adding the field. It shows then defaults to timer.:)


    Hello and thanks for reporting it.
    This error seems to happen only on vivoactive HR. I can't reproduce it because a have no device.Please could you answer some questions?
    - Is the datafield replaced directly after adding it to the datapage (then it would be a problem of vivoactive HR firmware I think - perhaps some kind of incompatibility with the ConnectIQ-version or used functions like app-settings). You could check after editing the page, return to clock, return to setting, if at this time the datafield is still assigned.
    - Is the datafield rplaced after starting the activity (is the field shown a short time).
    - have you installed other datafield after this one? I've seen that after installing new fields/apps, older app got disabled or taken away from activity-datapages.

    Thanks and Bye
    Ronny
  • I have the vivoactive HR and this is happening to me :( To answer your questions...

    Yes, when I add the datapage and return to the clock then return to settings, it is replaced with default Timer.
    When I set the datafield, then go to start the activity, it defaults again to Timer.
    I have no installed other datafield apps.
  • The vivoactive had (or has?) problems with ConnectIQ datafield. The fields disappear and are repleaced with a default field (timer).
    It seems to be a firmware bug an it affects other field, too (don't know if all or only fields with user settings).

    There is a thread for this error in VA-HR thread:
    https://forums.garmin.com/showthread.php?350625-connect-iq-data-field-won-t-permenantly-save-to-an-activity-on-Vivoactive-HR

    I don't know the current state. If it still don't work please wait for a new firmware version for the vivoactive HR.
  • Version 1.2: Supports HR-zones from user profile

    Hello,

    a new version is online.
    It supports reading HR zones from user profile.
    After updatign the datafield, it will read the user profily by default.
    You can still define your zones in app settings and force the app to use them (instead of user profile).
    Have fun with it :D
  • Will it still work with Epix which have old only 1.2.1 CIQ support?
  • Will it still work with Epix which have old only 1.2.1 CIQ support?


    Hello Mike,

    yes, it should work also on devices where the access to user profile is not possible. Then the app settings are used instead (the already existing zones definition for this field).
    It woule be nice if you coult test it. Please report if errors occour (e.g. the IQ-Icon). I have no real device to test this issue.

    Perhaps the Epix has already this API-function implemented and using profile is possible. It's possible that not all new SDK-functionality is supported and the Epix still has the "1.2.1"-label. But with a bit of luck this one is implemented.
    To test it you can change the zones the app settings (e.g. set lower border for zone 1 down to 50), start the activity new (the zone settings are only read with starting a new activity) and check if your profile-zones are used or the app settings. If app settings are used, the first zone is drawn much bigger.

    Greetings
    Ronny
  • The issue reported in #63 is fixed now on vivoactive HR with Firmware 2.40.

    I really like this data field. Have only one suggestion: I always want to see the HR and the %HR from Max at the same time. Would be great if you could provide this option, e.g. "140 (73%)" (currently there is an option to show the zone behind the HR, which I do not need, since the arrow below already points to the current zone). By-the-way: This arrow hits the text in a 3segment layout on vivoactive HR. Here probably the text could be moved up a little.

    Regards, Lars
  • The issue reported in #63 is fixed now on vivoactive HR with Firmware 2.40.

    I really like this data field. Have only one suggestion: I always want to see the HR and the %HR from Max at the same time. Would be great if you could provide this option, e.g. "140 (73%)" (currently there is an option to show the zone behind the HR, which I do not need, since the arrow below already points to the current zone). By-the-way: This arrow hits the text in a 3segment layout on vivoactive HR. Here probably the text could be moved up a little.

    Regards, Lars


    Hallo Lars,

    should I write german or english? ;)
    So better in english that all others can understand...
    I'll check if one more settings parameter is working. Currently the memory-usage of the datafield is getting up to the limit of some devices. If it is working I could insert this option for showing percantage additionally to the HR value.

    The 3-row-fields in vivoactive are the smallest of all devices. But the fields in vivoactive don't have the same size. The center field is higher than the others. There it would fit little bit better.
    The text is printed centered independent of special device-configurations or field-dimensions. I don't want to increase the code for device specific layout because of the existing memory limits. So using the center field would be best compromise. I hope it's ok for you.

    Greetings
    Ronny