DIY Data Field

Former Member
Former Member
Application is still pending to be approved, topic is created to be used as a communication hub during and after public beta test.

Do/Design It Yourself Data Field.

Disclaimer:
Application has hundreds of use-cases due to fully user-configurable setup, therefore it is prone to bugs. This project is not sponsored and I'm the only developer working on it in my own free time. Although I'd gladly accept reasonable criticism and improvement suggestions, I do not guarantee that bugs will be fixed and new features added in a timely manner/at all. If this approach is not acceptable for you, then, please, do not leave bad reviews just because I didn't resolve your specific case. Thanks for understanding.

Preface:
There's a lot of things custom activity recorders can do, which native Garmin apps cannot, but sometimes there's no need to invent a bicycle if there's one already itching for a ride. Some capabilities like local watch personal records, structured workouts information and advanced running dynamics will most certainly never be exposed to ConnectIQ API layer, therefore it's sometimes more efficient to use native software, but no one prevents us to use it with a twist. The main idea of this data-field type application is to give user a tool to design his own data field layout in WYSIWYG manner. The web application makes that possible providing cross-platform compatibility at the same time the only requirement being the HTML5 compatible browser. This app is not considered to be an ultimate DF which "replaces them all" as there's always something new and intriguing, which developer may envision, but I hope that this data field will help new and existing users to explore the Garmin ConnectIQ capabilities providing some unique features, which I didn't encounter in existing apps.

First things first: there's a web application, which allows to design data field layout and produces configuration string as a result. This configuration string can only be delivered to data field using standard settings means i.e. you will need either Garmin Express installed on compatible PC or Garmin Connect Mobile on your mobile device. Web app uses HTML5 local storage, changes are saved after each user action, therefore it's safe to leave your work half done and proceed from the same point sometime later. I do not own hardware to test with Apple devices, therefore any problems in that department can be explored and fixed only by sending me detailed explanations and, of course, the configuration string itself. Current version with the default layout setup was tested for several weeks in simulator and for several of my personal runs proving to be rather stable to go live, but of course there's no guarantee that this app will function without hitches on your specific device. Currently, I do not have a reliable hosting for my personal web apps, therefore data field designer will reside on Google Apps Engine servers using free account bandwidth/limitations (as there are almost no server-side computations, I think this will suffice for a while) at least if/until it'll become popular enough for the users to complain about page availability. Current implementation with the default layout setup works on the edge of stability and there was also a price to pay during watch code optimization, which lead to efficient but very unreadable code. This means that for older devices there may be no improvements, only bug fixes. But for modern devices like Forerunner735XT and on we still have additional 10kb of available memory, which can be used for new logic like new data values and/or additional app parameters (e.g. waypoints). Sometimes network latency and/or Google servers accessibility seems to impact resources load time and wrong font may be displayed first time the web app is started, to fix this simply press F5 (refresh page) in browser.

Current settings are 4 lines for definition itself (these should be copy/pasted without changes directly from web app), Target Pace for pacemaker values (should be entered as string in <min>:<sec> format, e.g. "5:40" as in min/km) and Milestones, which are just fixed distances comma separated list, they are expressed in kilometers and may contain fractional values using dot delimiter (e.g. 0.5,1,1.5, etc). It'necessary to enter values in kilometers, but they will be converted before display depending on watch settings.

Default setup is considered to be a "component showcase" and consists of basic building blocks:
- Data values, which are simply text representation of corresponding activity information bits like time or speed, for data values it's possible to change screen coordinates, font, color, number of samples to smooth the value over specified amount of seconds and add optional outline for data to become more readable or dynamically colored on less contrast backgrounds; if text font is selected, then it's also possible to append data value with custom text, e.g. create label with value for another data block;
- Data graphs, these are just rolling data value charts, which represent one selected data value over a set period of time, minimum and maximum graph values are adjusted automatically, number of samples is calculated automatically based on width of graph area and graph bar, all of the other options are similar to data values;
- Graphics elements, these are basic graphical primitives, which allow to customize the layout, add visibility to some values etc; parameters for these elements are mostly self explanatory except for two specific elements of type Arc. These may not only serve as a static view elements, but also can be used to represent a dynamic data value in a manner of a progress bar. For this to happen you need to tick the "Variable" option and select base Data value (currently there's only a limited selection, but this may be a subject to change) accompanied by min and max initial values, these range values are indeed initial as when the underlying data value falls outside of this range, then range is adjusted automatically. For example in bundled layout this feature is used to display the progress to the next kilometer: Elapsed distance is selected as a base value, initial range is specified as 0 to 100 (in this case 100 means 1000m, as the distance values are displayed as 00.00), which means that this arc will grow from start angle to the maximum width angle as the elapsed distance increases during activity acting as a progress bar to the next kilometer. When elapsed distance will become greater than 1000 meters, then ranges will be readjusted using the same range difference as before, in this case minimum value will become 1000m while maximum one will increase to 2000m. Here's a little demo of what you can make using variable value arc (this config is created for semi-round devices, copy/paste this configuration string into import window of web app).
AGUAJA[HIWaVFAJNATXDEAODZQVELEUA[HIWaVFAODU]`DEAOEOQVEVE_A[HIWaVFAABG`[DEAOFDQWE`FHA[HIWaVFAABHGRDEAOF[QWFIFRA[HIWaVFAJNA\ODEAOGQQVFSF\A[HIWaVFAOE]CPCWAODZTMELF\A[HIWaVFAAAAAACWAPDWTMELF\ASADILDAPOE]CPFEABAVDVENQAPQAAAFDJCFACB

Selected element options can be adjusted using the properties panel to the right of the designer canvas. In addition to pixel-by-pixel adjustments, designer canvas allows to drag currently selected element. To drag data value it's not necessary to start drag at any specific point, but for graphs and graphical elements the drag point will be determined based on mouse pointer coordinates: e.g. to resize graph area or rectangle click and drag somewhere around the lower right corner, to adjust the radius of circles and direction arrow start drag outside of the outer radius, to change coordinates - click somewhere near the circle center. For the arcs it's currently possible to change start angle and arc width by activating drag-and-drop near the corresponding arc vertex. Touch support for mobile devices is implemented.

There are still some limitations like direction arrow points only to north or some data values available only on high-end devices like power are not yet implemented etc, but as I already mentioned above, this app is subject to improve especially for the newer devices, where there's a lot of memory available even for the data field type of app. The web app is also meant to be improved especially in a direction to provide the nearest possible WYSIWYG snapshot of what you'll actually see on device, but there are also some limitations like, for example, font, which is used as numeric font in the latest Fenix5/FR935 models is not and won't be publicly available (confirmed by Garmin officials explicitly) and I used nearest lookalike, therefore there still may be some couple of pixel differences here and there between device and web app. For these kinds of problems I can only test and fix using the user-provided layouts in specific device simulator as I'm a simple FR230 owner for real testing and I'm afraid this won't change in the nearest year unless generous users will help me to upgrade.

Web app may eventually become mobile application based on the user feedback (but not for the Apple devices, Android only).
  • Hi again.
    ... Is much better to have a number (i.e. zone '4.2') to see how things are gonin' on...


    Actually I would also find this useful - e.g. rather than Z1 or Z2, Z1.9 tells me I'm almost into Z2.
  • Former Member
    Former Member over 8 years ago
    There is no colorbase for current speed?

    Current application design requires any color base variable to have a related hard-coded color set in watch app, in my opinion speed color coding is always very personal thing, I may introduce some very simple color set or assign existing one to speed, then it'll be possible to create custom one with your preference values.

    As Edges have more space on display, there is a too low limit for elements to be synchronized (limit could be different for some devices?)

    I will consider this, but I'm still struggling with a vertical scroll bar in palette list, basically that was the original reason I limited elements count 8))

    Nobody using course navigation during activity

    I have bearing, distanceToDestination, distanceToNextPoint, elevationAtDestination, elevationAtNextPoint, nameOfDestination, nameOfNextPoint in an activity info. Distances and names are the simple ones, I'll add this a little bit later, bearing is declared as the direction to course finish, to implement this it'll be necessary to introduce direction arrow parameters, therefore I may add this some time later. I'd prefer to have direction to next way point, but next wp coordinates or direction are not exposed to connectIQ.

    Should be very useful for checking to have possibilty change the value of metrics

    This will require considerable redesign of web application since currently it doesn't support dynamic values except for the graphs.
  • Thx for answers. Great.

    Is there possibility to make a bar, which will show the progress of a milestone distance (or distanceToDestination or distanceToNextPoint)?
  • Hi again.
    I'v seen that the color sets are not correctly imported from a local string file... to be fixed...
  • Former Member
    Former Member over 8 years ago
    Is there possibility to make a bar, which will show the progress of a milestone distance (or distanceToDestination or distanceToNextPoint)?

    Currently next milestone distance(left) is already present in rectangle/arc variable list, but to show progress we need to know the max value, right? Currently the implementation is simple: you input min and max values and these values become "hard-coded" range values for the dynamic graphics elements. This means that to create progress bar to say next milestone you need to tell, that you want to use dynamic value instead of manually entered one, which is the next milestone distance in this case. I'll think whether I can implement dynamic range values without breaking the whole thing apart. As for the next waypoint distance left it is not possible, since we have only distance left while to show progress we'll also need the whole distance from the previous waypoint to the next one, and I have no data source to acquire this value.
  • Great app. Finally what I have been waiting for. Keep up the great work.
    I'm using a Edge 520 and it would be great to be able to have larger text both in numeric and text formats. Something big enough to fill the full width of the screen for a 3 digit number (Power) or 3 digits and decimal (Speed 29.8). Thanks.
  • ... This means that to create progress bar to say next milestone you need to tell, that you want to use dynamic value instead of manually entered one, which is the next milestone distance in this case. I'll think whether I can implement dynamic range values without breaking the whole thing apart. ....


    That would be sweet, thx. I?m very satisfied with your work on this, but can you have a look on battery consumption too? It looks like that if I use this datafield, battery is gone much more quicker than normal... But I will test it.

  • So I have this pretty advanced configuration work-in-progress for Trail Running with most interesting data plus BIG heart rate.
    I wonder if it's simply too much for my F3 but would like some input if some of you would like to try it.
    It seems the config/settings are not saved on the watch. (I use GE since GCM isn't working well on iOS.)
    I'll try to post a screen shot below.
    Crappy image functions on this forum... here's the link:
    https://www.dropbox.com/s/6zwdg215f0c132i/DIY-field9_jpg.jpg

    ALMBIASHCa\aAAQAAA[BYBNASHCOCZAAQAAAPA]BYASHIVCMAAQAAAVDMCWASHECY[AAQAABRBVA[ATADRUYCDOE]CPAKAB%ASADIHBA[OE]CPFIABASAGFTJAMOE]CPGCABATAIIX^CDOE]CPADABkAVAJLOOCDOE]CPAKABCALASAJU]CAYOE]CPCKABAUAAaAaCDOE]CPALABCAASAA]JGAPOE]CPFKABAUAA[OECDOE]CPADABTEASAA]KQBaOE]CPBKABATABa]ZCDOE]CPADABCATABa^BCDOE]CPACABUATABa^RCDOE]CPADABRAVAEBSRAGOE]CPGCAB%fGAVADVOMAHOE]CPGCAB%fGATAF][ICDOE]CPADABAATAF][UCDOE]CPADABVATAF][aCDOE]CPADABGASAJD_WAVOE]CPIKABAUAAaDHCDOE]CPACABTAASABTZ[ATOE]CPFEABAVACDYICDOE]CPACABALTASADCXEASOE]CPFEACASAHaNNADOE]CPGCABAUALS^RCDOE]CPACABETAVAD^B^CDOE]CPAKABGPSASAGHFMABOE]CPCCABAUHGIBQABJOHXVCBABBRAUHKaEQABJOHXVESABBRAUHDBZOABJOHXVGGABBRAUHaHXGABJOHXVA]ABDIAUHEAYPABJOHXVA]ABEGAUHIVCMABJOHXVDKABEGAUHCOFOABJOHXVGVABEGAUHHFIPABJOHXVCRABGTAUHEGQ_ABJOHXVCRABF[AUHHFJ`ABJOHXVF\ABFW
  • Former Member
    Former Member over 8 years ago
    So I have this pretty advanced configuration work-in-progress for Trail Running with most interesting data plus BIG heart rate.
    I wonder if it's simply too much for my F3 but would like some input if some of you would like to try it.

    I tried this definition "out of the box" and it crashes with "out of memory" in Fenix3 device simulator, when I started it in FR935 simulator (26kb of more memory vs 16kb on F3) this peaked at 17kb during activity, so this layout is definitely beyond the F3 capabilities. Unfortunately, there's no way to optimize code for old devices (and believe me, I several days trying to do only that), I can only cut some functions out from base code to free memory for data itself as compiled application with empty definition consumes 85% of old devices available memory leaving very little space for experiments. As I was planning to release several versions of the same data field to satisfy the needs of people who want to use different layouts for different activities, I may make some changes for 16kb devices code like leaving only common running or cycling values but for that I need to understand which values are "common". I'll try to experiment with your layout, but do not expect much as I cannot overcome hardware limitations no matter how hard I try.
  • I understand completely.
    I guess that's another motivation for an upgrade to 5X. :p
    I'm pretty happy with the configuration of this data field for now even the battery drain is a little bit high.
    The forum is bonkers so I'm having a hard time uploading a picture but I'll try to edit with a link to picture plus the config code later.