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
  • Version 1.4.0

    New version: 1.4.0
    - Updated SDK-Version to 2.2.5 for compatibility of new devices (e.g. fenix 5)
    - Optimized state recognization. Started/paused state is checked using timer (older devices) or a timerState-attribute (newer deviced with SDK 2.1 or higher). Paused activity should be recognized and the paused time shoule not be recorded in the chart.
  • Heart rate Zones Chart on a Oregon 750

    Hi everyone here in this forum,

    I have since this week's the heart rate zone chart data field set up on my Oregon 750.
    And I love the fact that I now have a view which haert reath zone I most train.

    I saw when i change the battery of the oregon the data field starts counting from zero.
    While activity is still ongoing, even after changing the battery.
    Only found the activity stops when you shut down the device, and you must restart the activity after switching it on.
    Is it possible to change this so that the data field is not cleared until you save the activity and reset the trip data?

    Regards,

    Nico van Zwieten
  • AW: Heart rate Zones Chart on a Oregon 750

    Hello Nico,

    thanks for your comment.

    My short answer: No, not at the moment.


    Long answer with some technical details:

    You are using the functionality "resume later" in Garmin activities. This functionality allows you to pause an activity and reload it later (also after restart of your device).
    I don't know how it works inside but I think, Garmin stores the activity data in a fit file. After resuming the activity the fit file is loaded and continued.
    Garmin stores data every second and so they can just continue writing the file.
    The datafield only uses the current value given by the activity (current HR, timestamp) and summarizes the time for each zone. After stopping the activity and restarting, the datafield gets initialized by the activity (reset). Thats why it becins to count from zero.
    The only way to change this ist to store the last zone data into the fit file and reload it with the restart. But reloading valued from fit seems not possible.

    So the datafield only keeps the data if the activity is paused, not stopped completely (stop or resume later).

    Greetings
    Ronny
  • Hello,

    I've happily used your HR zones data field on my Edge 820 for a few months now, but since today I only get an IQ-logo with an exclamation mark. I tried to remove and re-install it, power off/on, update from 6.20 to 6.30 firmware etc, but nothing seem to work. Any clues on how to make it work again?
    Thanks in advance!


    Hello,

    I can't figure out what's is going wrong on your Edge. In the time you asked, no update for the datafield was released. So at this point nothing changed.

    You could try the new version (1.4) from April 3th. There a new SDK version is used. Perhaps this makes it compatible with new devices.
    If the error still occurs, please change the settings for the field (using fix zone values instead user profile) or check the profile if the zones are defined correct.

    Greetings
    Ronny
  • AW: Heart rate Zones Chart on a Oregon 750

    Hi everyone here in this forum,

    I have since this week's the heart rate zone chart data field set up on my Oregon 750.
    And I love the fact that I now have a view which haert reath zone I most train.

    I saw when i change the battery of the oregon the data field starts counting from zero.
    While activity is still ongoing, even after changing the battery.
    Only found the activity stops when you shut down the device, and you must restart the activity after switching it on.
    Is it possible to change this so that the data field is not cleared until you save the activity and reset the trip data?

    Regards,

    Nico van Zwieten


    Hello Nico,

    Thanks for your comment.

    My short answer: No, not at the moment.


    Long answer with some technical details:
    You are using the functionality "resume later" in the Garmin activities. This way you can stop the activity and the activity data is stored in an fit file. After resuming the activity, the fit file is continued.
    Garmin stores data every second and the file is just continued at the end.
    The datafield uses the current value (HR, timestamp) and summarizes the time in each zone. This data is kept in memory. If the activity is clodes (stopped or stopped for resume) the data gets lost. After restarting the activity, the datafield is initialized (it has no info about resuming or old data). So it counts from zero.
    The only solution would be storing data (perhaps in fit file) and reloading it with the restart. But reading from fit file is not possible.

    So the datafield only keeps it data while pausing activity, not after stopping or stopping for resume.

    Greetings
    Ronny
  • Love this app. Use it on my Forerunner230 but can't get it to display with a black background, only white.
  • Love this app. Use it on my Forerunner230 but can't get it to display with a black background, only white.


    Hello,
    the datafield uses the color which is defined in the activity-settings (e.g.running). If you set the background for the activity to black, the datafield also uses this background color.
    Greetings
    Ronny


  • Ronny,

    my Fenix 5s got the newest Firmware 2 days ago and since than the data field is not running anymore. On my watch it Shows 0 and in the app i cannot adjust anything I only get a Grey Screen. Is this normal?

    thx
  • Hi Rony;
    do you plan to make your app usable for Edge 1030?
    Same for your app Power zones?
    Would love to use both on my new device. They were my standard screens on my Edge 1000.
  • Hi Rony;
    do you plan to make your app usable for Edge 1030?
    Same for your app Power zones?
    Would love to use both on my new device. They were my standard screens on my Edge 1000.


    Hi, I was on holiday and I will check it next days...