Total Time Climbing during ride

Is it possible to list the time spent climbing during a ride. Potentially with a threshold setting i.e. time spent climbing on slopes > 1%

Have you done any coding before?

This will be possible using the custom fields. If it chucks it down all weekend I might find time to help.

Elevate has this, I’ll see if I can ascertain what thresholds they use.

In fact if on an activity you go custom


search
image

there is already one created and shared by a community member

It won’t take much to change the stream to time and and pick your threshold

1 Like

That’s great thanks. I haven’t done much coding before but have time on my hands to find a way to muddle through. I guess I can clone the one you highlighted and tweak it?

I think i did it just by changing the distance stream to time and changing the hardcoded percentage from 10 to 1 or different values. All seemed to work but I didn’t save it as i wasn’t clear whether it would have been a personal field or i would overwrite the dist above 10% that had already been done.

As soon as you use one of those shared Custom things, you get your own personal copy. You can edit as wished.

1 Like

Fantastic thanks!

Thanks Ben. Given how easy it was to edit the script you suggested to get the time climbing I was thinking about how to improve on that and started to think about time descending versus time flat versus time climbing but it looks like it’s already been done in elevate. Is that linked to intervals.icu in anyway? The big bonus of intervals.icu is the ‘one stop shop’ for everything

Elevate is completely separate but you can use the repos for inspo

for you, the relevant bits are that the climbing threshold they use is 1.5deg

public static readonly GRADE_CLIMBING_LIMIT: number = 1.5;
public static readonly GRADE_DOWNHILL_LIMIT: number = -1 * ActivityComputer.GRADE_CLIMBING_LIMIT;

and that the profile is determined if the % of time flat is over 60% or not

private static readonly GRADE_FLAT_PROFILE_THRESHOLD: number = 60;
...
const slopeProfile =
  (slopeTime.flat / totalTime) * 100 >= ActivityComputer.GRADE_FLAT_PROFILE_THRESHOLD
    ? SlopeProfile.FLAT
    : SlopeProfile.HILLY;
1 Like