I just moved a LOT of gpx files to garmin connect (most pre-carmin connect) and the they are of course, un-uncategorized. I was wondering if there was a way to change a LOT of file categories at a time rather than one at a time?
I just moved a LOT of gpx files to garmin connect (most pre-carmin connect) and the they are of course, un-uncategorized. I was wondering if there was a way to change a LOT of file categories at a time rather than one at a time?
EDIT: TL;DR The latest script (2021-03-31) is here: https://pastebin.com/ZZW7qnFX
---
Original (outdated) comment:
Touch0Gray What activity type do you need? I've got a script to change all your activities…
worked with ptid = 17 which was what a correct run was logged with
only small note:
Not sure if "uncategorized" is correct. When I imported something like hiking or any other sports than running or biking, all has activity type "other" not "uncategorized"…
Activity Type = Running
AT ID = 1
APT = 18
Yep, that's correct.
It's not super user-friendly or intuitive, but if you use --dry-run and specify a date range that covers an existing activity of the type you're interested in, the script will print out the type name, type id and parent type id. (So you can find out the type info for any activity you want by manually creating a dummy activity and using that procedure.)
It looks like "uncategorized" is:
type: "uncategorized"
typeID: 12
parentTypeId: 17
(Another way to discover this information is to use Garmin Connect Web to change the type of an existing activity, while the network console is open) (Press F12 in Chrome or Firefox)
So you should be able to use the command line options for filtering on an existing activity type, with the above information.
It should be enough to add the following options to the command line:
--match-activity-type uncategorized