HMs DIY #1-6

Store Link

Because I want to keep this datafield and the app free for use I would be very grateful about a small donation to PayPal

A detailed description of how to use it can be found here: 

HMs_DIY_GUIDANCE.pdf
HMs_DIY_ANLEITUNG.pdf

Thanks very much to mcinner1 for putting so much time into this documentation!

Designer download

You can contribute on my github page.
You can upload your layout so others can use it as well.
Also any changes to the fonts.txt can be updated there as well.

Garmin_HMsDIY

=======================================================================
RELEASE NOTES
=======================================================================
-----------------------------------------------------------------------
3.6.2
* switched to new SDK 7.2.1
* added devices: Approach S7 42mm, Descent Mk3 43mm /Mk3i 43mm, Descent Mk3i 51mm, Edge 1050, epix Pro Gen2 42mm, epix Pro Gen2 47mm / quatix 7 pro, epix Pro Gen2 51mm / D2 mach 1 pro / tactix 7
Fenix 7 Pro, Fenix 7 Pro Solar, Fenix 7S Pro, Fenix 7X Pro, Fenix 7xPro Solar, Forerunner 165, Forerunner 165M, Venu 3, Venu 3S, Vivoactive 5
-----------------------------------------------------------------------
3.5.1
* switched to new SDK 4.2.4
* added devices: FR265, FR265S, FR965, GPSMAP 67/67i, Marq (Gen 2), Marq (Gen 2) Aviator, EDGE 540, EDGE 840, Instinct 2x Solar
* added two new font types GLANCE, GLANCENR (only available if device supports it!)

for full releasenotes see: releasenotes.txt
=======================================================================

 

  • Can you use "Nr of values" together with "Last lap" fields to get pace/HR for current lap-1, current lap-2, current lap-3, etc?

  • Sorry, but that would require a rework of the data structure. I think it is not possible at the moment.

    regards

    Erich

  • Hi, im trying to use the value "Training Effect" , but it only shows me 0.0, i have an Edge 1000. am i doing something wrong? thank you in advance

  • Hi

    How long was your activity ? What values where shown when you view the activity in Garmin Connect ?

    The value is directly from the SDK, so I just display it.

    Maybe this thread helps:

    https://forums.garmin.com/sports-fitness/cycling/f/edge-1030/165422/edge-1000-training-effect-cycling-vo2max

    regards

    Erich

  • my ride was 1:50 , i cant see any training effect value in garmin connect (where should it be?). ty

  • Did you read the thread I posted ?

  • I feel a bit stupid, but I'm hoping someone could help me out with the font settings a bit more. I just got a Vivoactive 4 and understand that the fonts haven't been adjusted to display correctly in the application yet. I want to go through that process, but I'm not really sure what that process should be. I read the beginning of the fonts.txt file, but I just don't get what I'm supposed to be looking for when I change various offsets and center values. I assume there's some level of trial and error. Can anyone help me out?

  • Hi

    No problem. I will give you a better description tomorrow as its quite late here in Austria ;-)

    Regards 

    Erich 

  • Hi

    * First search for all the fonts available in your watch. That would be line 1217 to 1234 in the fonts.txt file.

    * There you can see the mapped font name for each font: XTINY is mapped to FNT_VIVOACTIVE4_ROBOTO_XTINY_BOLD for example.

    * Now search for FNT_VIVOACTIVE4_ROBOTO_XTINY_BOLD in the file in the above table. It is in line 215:

    FNT_VIVOACTIVE4_ROBOTO_XTINY_BOLD;IDR_FNT_BEBASNEUE_REG; 10; 0; 0; 0; 0

    All different values in this line are seperated by a semicolon:

    FNT_VIVOACTIVE4_ROBOTO_XTINY_BOLD --> name of the mapped font

    IDR_FNT_BEBASNEUE_REG --> font that is used to draw (all available fonts are listed in the top of fonts.txt file)

    - 10 --> font size (change this number to adjust the font size. If it is shown too small in the designer, increase the value.)

    - 0 --> horizontal offset when text uses left alignment. (Every alignment has a different offset, so if you have a text element which is left aligned in the designer it uses this horizontal offset to correct the x position)

    - 0 --> horizontal offset when text uses center alignment

    - 0 --> horizontal offset when text uses right alignment

    - 0 --> the last value is the vertical offset. When the text is drawn too high, increase this value.

    All offset values can also be negative.

    The quickest way to adjust the fonts is to use the file 935/font_test1.xml and 935/font_test2.xml from examples.zip.

    You have to load the file into the designer, switch device to Vivoactive 4 and press "Scale to device" button. The coordinates of the elements are now adjusted to the screen resolution of the vivoactive 4.

    Then "Copy to clipboard" and paste the layout into the datafield settings default layout string.

    Now you can compare the designer directly with your watch.

    The following steps you will have to repeat several times to get the fonts right (you start with the xtiny font:)

    * Compare the line of the 3 'XX' in the designer with the watch for each font (for xtiny it is the topmost line in the layout)

    * Edit the fonts.txt file (here it is line 215 for the xtiny font of the vivo4) -> adjust the size and the offsets (after a quick look it seems that the y offset has definitly to be set and also the font size. Left and right x offset also a little bit)

    * After editing the fonts.txt file and saving you have to close and reopen the designer, because it only loads the fonts file on startup.

    * Open the designer and compare the preview with your watch.

    * Start again with first step above

    You will have to do this for the first 9 fonts (xtiny to nr_thai_hot). The other 9 fonts use the same mapping as the first 9.

    I hope I described it a little better.

    regards

    Erich

  • Thank you so much! Seems extremely thorough so I think this will do the trick. I'll share the settings after I work it out.