Is there a way to show the yearly mileage of specific gear? I would like to see how many yearly miles I´ve ridden on my roadbike and my TT-bike separately.
Is there a way to show the yearly mileage of specific gear? I would like to see how many yearly miles I´ve ridden on my roadbike and my TT-bike separately.
Only total distance is displayed on the Gear's page.
Yearly can be counted by script, replace !!!GEAR_ID!!! (copy ID from the Edit link) and 2023 as needed.
Result is in meters.
F12 → Console
jQuery.ajax({ headers: {'DI-Backend':'connectapi.garmin.com', 'Authorization':'Bearer ' + JSON.parse(localStorage.token).access_token}, url: 'https://connect.garmin.com/activitylist-service/activities/!!!GEAR_ID!!!/gear?limit=1000', success: all => console.log(all .filter(a=>a.startTimeLocal.includes(2023)) .reduce((a,b)=>a+b.distance, 0) ) })
Or simply copy all gear's entries and sum in Excel.