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"…
sorry I mis-phrased that question, What I need to change is the activity type
sorry I mis-phrased that question, What I need to change is the activity type
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 to "Running" but it can be adapted for other activity types, too. You need a PC or a Mac (or Linux).
Get Python 3 (Windows/Mac/Linux): https://www.python.org/
Download the gc-running.py script: Go to [LINK REMOVED] and click Download.
(See edit below for the latest version of the script)
Double-click the script (or launch from terminal/command prompt)
The script will prompt you for your username, password, and date range for activities.
Currently it only supports changing your activity type to running. Let me know if you need something else.
---
EDIT: (latest comment) (2021-03-31)
I've posted a new version of the script (now called gc-activity-type.py): https://pastebin.com/ZZW7qnFX
New features:
1) Filter by existing activity type, activity type ID or activity parent type ID (use the --help option to see available options)
2) Select new activity type, activity type ID and activity parent type ID using command line options (otherwise you will be prompted)
3) Preview changes using --dry-run option. Matched activities are listed during a dry run, along with their activity type (e.g. "running"), activity type ID (e.g. 1), and activity parent type ID (e.g. 18) So if you want to find out the type name, type id and parent ID for inline skating, you can create a new inline skating activity manually, and use the "--dry-run" option to list the information that you'll need to change other activities to inline skating.
4) Fix SSL error that some users were experiencing
5) Fix payment required error
e.g. To run the script from the command line and see available options:
python3 gc-activity-type.py --help
(dry run and matching/filtering activities by type are only available as command line options.)
running is silly.......I have 6 bicycles! LOL.... Thanks but I don't want to change ALL of the files, just about 1200 of them...I can live with "all activities" for the historical files. I just imported 1200 files and .....
But thanks
Touch0Gray the script is designed to accept a date range, so you can change whatever activities you please, including all 1200 of your historical files.
Here's a version of the script that changes your activities to cycling. I just tested it with one activity and it works fine.
[link removed] See latest link to version here: forums.garmin.com/.../899953
Thanks, that makes more sense, the date range is from 2006 to 2015.
Touch0Gray That's fine. Just download and run the script as per the instructions above -- it will prompt you for the date range. Enter "2006-01-01" for the start date and "2015-12-31" for the end date.
Let me know if there's any issues.
Hi can I use this script to change all "running" activities to "inline skating" activities2?
Great! Helped me a lot. Thanks!
Great tool! Helped me a lot. Thanks!