Access lap data

Former Member
Former Member
Hi,

i'm building my own DataField to display more than 4 values per screen.
Everything works fine so far.

But I would like to access some lap values like lap power, lap time, lap distance, ...
Is it possible to get this values or do I have to calculate them by myself?

Furthermore is it possible to read key/button events when creating a DataField?
If yes, how?

PS:
Is it normal that only 1 self created DataField can be installed on my device?
I'm using FR920XT.

Thanks in advance and best regards
Berni
  • Data fields don't have access to key events or the activity recording module, so you'd need to manage this yourself. Unfortunately, I don't see anything in the API that could be used to determine that a lap event has occurred. I'm pretty sure that an enhancement request has been filed to get access to lap data, but I can't seem to find it.

    It might be nice to have per-lap data plugged into Activity.Info, but I think it would be useful for data fields to have a callback that is invoked by the system when a lap event occurs (either by lap button press or auto lap).

    As for the number of data fields, I'm pretty sure I've been able to install multiple data fields on my 920 without trouble. You'll only be able to select two data fields per activity type, but you should be able to have multiple installed.

    Travis
  • Former Member
    Former Member over 10 years ago
    I already requested this a while back. It's still not available but hopefully it's in the queue to be implemented.
  • Former Member
    Former Member over 10 years ago
    Ok, thanks, for your replies,
    hopefully the lap event information will be available soon...

    Could I just ask you another question? I have been looking for it in the forum but could not find a satisfying answer:

    Where can I get further fonts (.fnt files and the corresponding .png files)??
    Tried to search for some with google without any success.
    Or is it possible to use .ttf files?

    Thanks in advance
  • Former Member
    Former Member over 10 years ago
    You can convert .ttf fonts with the BMFont Tool.
    There is a section about fonts in the Resource Compiler docs.

    -Torstein
  • Former Member
    Former Member over 10 years ago
    Ok, thanks for the hint, I'm going to try that :)
  • On this same question.. I was thinking of making my own stopwatch counter. 3 fields I want.
    1) lap time
    2) lap number
    3) elapsed time

    Seems like from the above, the Lap time is not exposed via an API but we can handle it ourselves. What about the lap number? I presume that this is exposed base on the lap-keypress? (Noticed that the crossfit counters can do that)

    Thanks
  • Absolutely no lap data is in the Activity.Info structure. You have to do all of the work yourself.

    You would need to make a full blown app, and you have to track the time that the activity started or most recent button press to be able to get the lap time, and you need to count button presses to get the lap count. All of this needs to be handled by your input delegate when a key is pressed.

    I wrote an app a few weeks ago that appears to do what you want. You can find it here. You can configure which fields appear on the screen, and it already has support for all of these fields..

    • Timer
    • Lap Time
    • Heart Rate
    • Average Heart Rate
    • Calories
    • Time of Day
    • Distance
    • Pace
    • Avg. Pace
    • Speed
    • Avg. Speed
    • Cadence
    • Avg. Cadence
    • Elevation
    • Ascent
    • Descent
    • Laps
    • Temperature


    If you just want to write you're own application, then don't let me stop you. I just don't want you to spend a bunch of time if all you care about is having something like I've already developed.

    Travis
  • Haha... I clicked the link, and yup, it's the activity recorder, in which the watch I own is not supported. :-)
    I did try to download it as the other 2 crossfit timers.

    I'm a forgetful person, I want the lap, cos I want to know how many I have done (like weigh lifting 5x5) and then at each lap-key-press, I would be able to know the the amount of rest time before I go again, and then an overall time.

    Perhaps u can add in F3 into the supported platform??? :-) (just add a line and I'll see how it looks)

    I've been developing for my own F3 and when I tried to do it for the others watches, seems like really much work to be done.