Plotting Segment Laps from a FIT file

I finally created two custom activity charts, one bar chart and one table chart for segment laps in a FIT file.

Since I use a Wahoo Bolt for my rides, I was always surprised that I couldn’t display the completed Summit Segments afterwards. However, these are written to the FIT file as Segment Lap (just like Strava Live Segments, by the way), so it is still possible to evaluate them. With the integration of Plotly in intervals.icu, it is also possible to plot a table so that I can also display the segments clearly in tabular form. There was one small problem: The Plotly scripts cannot (currently) access the icu.fit object, which contains the segment laps. Therefore an additional custom field is necessary, which writes the Segment_Laps into a custom field. The Plotly script can then access this custom field.

I have published these scripts for all those who want to use it, too. I could imagine that Garmin ClimbPro segments are also saved as Segment_Laps. However, I cannot verify this due to the lack of a Garmin device, but I strongly assume so.

For all those who also want to use it:

  1. Add custom field icu_segmentlap_obj once
    image

  2. The field can then be hidden, it only needs to be present in the activities (untick under custom)
    image

  3. A new processing of already existing trips is necessary if old trips should also be evaluated.

  4. You can the segment Laps Plot and/or the segment Laps Table Diagram.

Of course, it will only plot, if there is anything in the segment_lap field. I sync directly with Wahoo to intervals, if you sync from Strava, it might be possible, that strava strips these fields out.

If data is available, you will either see a colored bar chart:

Or a clearly laid out table:

If you use Strava Live Segments, the name of the Strava segment is displayed instead of the number. You can then even filter for that segment, and find all activities containing that segment.
image
image

Feel free to use it :slight_smile:

2 Likes

This is great. Thanks a stack for sharing.