This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I search for activities with no gear assigned?

I'd like to find any runs that I neglected to assign shoes to and go back and assign shoes, so I can better track shoe mileage.

I don't see a search option to find runs with no gear.

  • The script is basically still ok, but new headers are required:

    jQuery.ajaxSetup({headers:{
     'DI-Backend':'connectapi.garmin.com',
     'Authorization':'Bearer '+JSON.parse(localStorage.token).access_token
    }})

    jQuery.getJSON(
     'https://connect.garmin.com/activitylist-service/activities/search/activities?limit=200',
     all => all.forEach( a =>
      jQuery.getJSON(
       'https://connect.garmin.com/gear-service/gear/filterGear?activityId=' + a.activityId,
       g => {
        if(g.length === 0)
        console.dir(a.activityId, a.activityName, a.startTimeLocal)
       }
      )
     )
    )

  • Perfect - that did it, works again, thank you very much!