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).
  • Former Member
    Former Member over 7 years ago
    and please update "gradient" with multiply by 100!

    This should be fixed in v0.70, please let me know if this bug persists after update.

    My formula does not require any more memory than the current midpoint algorithm. The midpoint algorithm needs to store two numbers:
    Lap minimum
    Lap maximum

    My mean algorithm needs to store two numbers:
    Running Total
    Number of Samples

    That's exactly how I did it: no more memory but just a simple change in calculation.

    This would only happen if the sum total got larger than about 2 billion.

    Well, development for wearables is always a way of compromises, in my case of "lap average" values are heart rate and power.
    Let's suppose power is 600w and lap duration is 5 hours (which is not realistic, but will help to explore the bounds), this way we have 600 * 5 * 3600 = 10 800 000, this value occupies only 24 bits of 32 bit Number type, so I think it's very safe to use this approach.

  • I'm still not able to configure average lap power with the latest app version (0.70 public beta).

    "Current bike power" does provide a check box "lap", that's what I tried today. But it behaves as the name implies: it just gives the current bike power. Ticking the lap check box does not seem have any efffect.

    I did not try "Average bike power" as it does NOT provide a check box "lap".

    How should I configure average lap power?
  • Hi to all out there who are using DIY-app on an EDGE 1000:
    Do you have problems to export large definition-strings via Garmin Express?

    I really love this app and created a datafield with 38 elements, which lead to a def-string length of about 830 byte. This works fine!
    But I would love to expand my work to over 40 elements, and the def-string does not exceed 1000 bytes, but I'm not able to transfer this string via Garmin Express.
    And although it's possible to transfer the string via GC-Mobile to my Edge, the datafield fails to load with that bigger def-string.
    I don't know the reason for that.

    Did any one else experience this problem with an Edge 1000 device?



  • I have a datafield with more than 40 elements on the E1000, however only 16 are data values. The rest are either labels or lines/arcs.
    I couldn't import via GE when the designer app had a 256 byte definition string as GE wouldn't accept the string.
    I haven't had a problem either importing the 256-byte or 1024-byte layout with GCM Android.

    With a definition string <1024 bytes I'm guessing that it only requires the use of one line of the definition string in the settings within GCM. If so how are you clearing the 2nd line from the default definition string configuration?
    I usually put a space in that field rather than leave it empty, which seems to satisfy the settings & the datafield settings seem to be applied correctly when saved
  • To make things more clear:
    when I speak of def-string export via GarminExpress, I mean the string devided into 4 parts (lines) by the designer-tool.
    In my case, the string must not be longer than app. 830 bytes in general - means 3 full lines (255 bytes) and one short line.

    Unfortunately I have no Android-device for testing.
    If I use GarminConnect-Mobile on my iPhone to transfer the whole string at once (line 1 only, copied with "local"-option - lines 2,3 and 4 fully deleted), the program states "changes succsessfully saved" but it's not possible to load the datafield (see picture).community.garmin.com/.../1250082.jpg
  • Feel free to download the follwing zip file which contains 2 definition strings:

    http://members.kabsi.at/Wirth/Bilder/CHARTS-2.zip

    -the one I use actually (is possible with my Garmin Express to export)
    -the other I would like to use (but is not possible with my Garmin Express to export)
    I would be interested if you can reproduce the same behavior.


  • Since I'm not able to edit my post anymore ("working..." stays on top 'for ever') - here is the third post:

    If anybody is able to run the app with the second (longer) def-string, I would appreciate to get this settings-file from the EDGE dirctory Garmin\apps\SETTING to test it on my device. Please write me a PM!

    PS: this new forum face is very very annoying...
  • Former Member
    Former Member over 7 years ago
    I'd like to notify everyone who uses DIY B, that I'll be forced to remove it because there was some kind of Garmin market database bug which messed up the application ID and I'm unable to update it any more. I've uploaded two new clones (DIY Clone B and DIY Clone C) yesterday and it seems like they are already approved, therefore I recommend to switch to new ones as I'll remove problematic application from market in a couple of days.

    2 mcinner1:
    Unfortunately, I don't know what can I do to help as I do not have neither IPhone nor Edge and in simulator there are no problems in settings transfer with both definitions. The only thing I can provide is the settings file from simulator (DIYDATAFIELD.zip), but after unpack you'll have to rename this file to match market ID.
  • Feel free to download the follwing zip file which contains 2 definition strings:

    http://members.kabsi.at/Wirth/Bilder/CHARTS-2.zip

    -the one I use actually (is possible with my Garmin Express to export)
    -the other I would like to use (but is not possible with my Garmin Express to export)
    I would be interested if you can reproduce the same behavior.




    Hi I imported the contents of your Charts2-Source-final.txt file into v0.70 of the designer app. Then produced the 4-line definition string (Garmin Connect Mobile option) and transferred the definition strings to my Edge 1000 by pasting them into the corresponding app settings definition fields using the Garmin Connect Android App.
    Once saved the edge correctly displays your datafield and there is no IQ error. I can't post my settings file as I did everything through a mobile browser and haven't got a computer to hand in order to connect the edge.
    There's nothing wrong with your definition so either there is an issue with the iphone GCM app or maybe there was a mistake in the way you copied the definition strings to the settings.
  • Since I'm not able to edit my post anymore ("working..." stays on top 'for ever') - here is the third post:

    If anybody is able to run the app with the second (longer) def-string, I would appreciate to get this settings-file from the EDGE dirctory Garmin\apps\SETTING to test it on my device. Please write me a PM!

    PS: this new forum face is very very annoying...


    This new forum is really pissing me off too. I wrote a lengthy reply only for it to be posted and it's completely vanished. I'm not writing it out again....

    Basically I imported the finally version of your data field configuration into the designer app & copied the 4 definition strings to my edge 1000 using the Android GCM app. Your datafield is displayed correctly so I'm not sure where the issue is. Maybe a fault with the iphone app or the way the settings are being pasted in the the definition strings in the app settings