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).
  • I just returned from a mountainbike-tour with my Edge 1000.
    Here are some impressions about DIY v7:

    GRADIENT:
    works flawlessly but one has to set the sample-value to (about) 15. With values below the displayed figure becomes too unstable.
    15 - I think - is a good compromise between stability and delayed display and should be the default value for gradient.
    One thing I noticed:
    When speed comes to 0 the gradient-calculation doesn't stop and shows unrealistic values (at least the first seconds after stopping).
    Maybe gradient-calculation can be stopped too if speed goes zero, or < 1 km/h (near zero) for all those, who measure speed by GPS, and simply display 0.

    LAP NUMBER:
    works fine for the first activity after a reboot of my Edge.
    If an activity ends with - let's say - LapNumber = 3 and the activity is stored, the Lap Number does'nt reset to 1.
    If there is no reboot of the device, next activity will start with Lap Number = 3.


  • I'm struggling with that new forum!!!
    I cannot post all I would like to say in one post! Incredible...

    So - here is the last point to the previous post:

    TIMER.TIME with LAP option checked
    works fine for the first activity after a reboot of my Edge.
    After the activity is stored, the Lap.timer.time is resetted to 0 - but not the internal variable.
    If a new activity starts without having rebooted the device, the counter starts with a negativ count-down from the value of the last activity.
    (Only if lab-counter is bigger than 1)

    That's not a big problem for me and my Edge, because usually I turn off my device after having stored and saved my activity.
    But maybe for clocks it is different - I think they never are turned off...?
  • I played with your fit file data and it seems that to match native lap average bike power I need to increase number of samples in our formula even if sample has zero value (previously I excluded such samples completely).


    Hi easuvorov,

    I tested v0.71. "custom bike power" with enabled lap checkbox now works as expected. I did several laps, for each lap the average power matched the Garmin's average power data field by +/-1W. As you said, that's due to rounding and is totally acceptable.

    Thanks a lot for your effort!

    If it does then I'll update designer application so that "Lap Value" option on "Average Power" will give this result.


    That would be fine as it far better reflects what is being calculated now.

    Thanks again - and keep on the good work!

    axti
  • Great app, thanks for that! playing for so long with organizing the data fields, I was amazed when I found your app. I tested a configuration today in my edge and everything runned really well. I have only two questions:

    1) Can I limit a time field to 00:00 changing from mm:ss to hh:mm after 1 hr? This would be especially useful for laptime as it rarely goes up to that.

    2) Is it possible to change colors based on sunset and sunrise, so I can have two settings as in the default garmin?
  • 1) Can I limit a time field to 00:00 changing from mm:ss to hh:mm after 1 hr? This would be especially useful for laptime as it rarely goes up to that.


    Using data field "Timer Time" with lap checkbox enabled is shown as mm:ss on my Edge 520 device. Note that during page building on the website the format is shown as hh:mm:ss (probably to indicate the maximum width of that field....makes sense to me).

    So far I didn't had laps with >1h, so I cannot tell what really happens after 59:59...


  • Former Member
    Former Member over 7 years ago
    1) Can I limit a time field to 00:00 changing from mm:ss to hh:mm after 1 hr? This would be especially useful for laptime as it rarely goes up to that.
    2) Is it possible to change colors based on sunset and sunrise, so I can have two settings as in the default garmin?

    All data fields in designer app have default presentation which reflects maximum possible value (at least as far as I can imagine) so that you can see how much space this data field may occupy on screen after a while and plan other element placement accordingly. Currently there's a "%[1-3].[0-2]f" mask used for numeric values including paces which are also times but I suppose that pace will never exceed 1 hr/km in normal cases (although I must admit that I encountered such case when I took a run in woods on a cloudy day and lost GPS signal).

    Question is how to distinguish cases when you want only hh:mm for times. I may consider that if you set format mask %2.2f (meaning two digits for both first and second parts) and time is less than 1 hour then you want to display time as mm:ss and if time exceeds 1 hour then it will be shown as hh:mm. It will be the simplest solution and wont require much changes.
  • I may consider that if you set format mask %2.2f (meaning two digits for both first and second parts) and time is less than 1 hour then you want to display time as mm:ss and if time exceeds 1 hour then it will be shown as hh:mm. It will be the simplest solution and wont require much changes.


    I like this approach as you're not particularly interested in seconds once you have done more than an hour.

  • Hi easuvorov,

    I tested v0.71. "custom bike power" with enabled lap checkbox now works as expected. I did several laps, for each lap the average power matched the Garmin's average power data field by +/-1W. As you said, that's due to rounding and is totally acceptable.

    Thanks a lot for your effort!


    Today I noticed two issues...:

    1) Average power of first lap (the one at activity start) is not correct, the value increments too slowly. The longer the lap the better it matches the correct value.
    2) During any lap: if I stop (speed=0, timer stops, but activity is still active), the average power value drops (slowly). That shouldn't happen, the value should stay at its current value. That's also the behaviour of Garmin's average lap power. If I continue the ride, average power calculation should also continue.

    I think it's simply a matter of evaluating the timer (the one which depends on whether you are moving or not; not "elapsed time" which increments as long as the activity isn't stopped): if the timer increments (i.e. your are moving, speed>0), then average power calculation is enabled, if the timer stops (no movement, speed=0), the calculation is disabled.

    Does this make sense to you?

    Thanks.



  • All data fields in designer app have default presentation which reflects maximum possible value (at least as far as I can imagine) so that you can see how much space this data field may occupy on screen after a while and plan other element placement accordingly. Currently there's a "%[1-3].[0-2]f" mask used for numeric values including paces which are also times but I suppose that pace will never exceed 1 hr/km in normal cases (although I must admit that I encountered such case when I took a run in woods on a cloudy day and lost GPS signal).

    Question is how to distinguish cases when you want only hh:mm for times. I may consider that if you set format mask %2.2f (meaning two digits for both first and second parts) and time is less than 1 hour then you want to display time as mm:ss and if time exceeds 1 hour then it will be shown as hh:mm. It will be the simplest solution and wont require much changes.


    Hi, easuvorov, thank you for your prompt reply; this mask however worked only for elapsed time, when I tried to use it for time timer with the lap box marked, I just got the "%2.2f" text.

    Axti, I could actually put the label over the hh: in the time field and for most of the time it would be fine for me, still I prefer to give a little bit more room for both as sometimes I don`t actually use the lap function and it goes along with total time.
  • Hi,
    Thanks a lot for your great job. It takes time to configure but this is really so much more powerful compared to all the other apps on the store !
    I have a few suggestions for having more data when I do trail running :
    - having min elevation and max elevation. I think this should be simple (and not using too much memory). Because total ascent is often not reliable (on FR235) so when I run up and down the min and max are more meaningful to me.
    - possibility to set sample number for graphs. As far as I understand, the data on a graph show a duration based on the number of pixels (1px = 1s). So changing the sample number would allow a graph to show data over a longer duration, for example to see the elevation profile over the last few hours.
    - following (or instead of) this, I was thinking of an option to have the full graph over the activity by resizing the graph. The simplest way to do this might be to dynamically multiply by 2 the number of samples when the elapsed time is too big for the graph size.