pe-st / garmin-connect-export

Download a copy of your Garmin Connect data, including stats and GPX tracks.
MIT License
376 stars 77 forks source link

Only able to download 1 activity #70

Closed Only1nr7 closed 2 years ago

Only1nr7 commented 2 years ago

I used version 3.0.3 until it stopped working. Now using version 3.3.0 but I can only download 1 activity instead of all (over 2000 activities). What goes wrong, I'm quite new to Python and I'm trying to understand but can't understand. The result that I get is:

Connecting to Garmin Connect... Done. Requesting Login ticket... Done. Ticket=ST-04883869-IcK67OckuWlLoiqyNrqE-cas Authenticating... Done. Getting display name... Done. displayName=############ Fetching user stats... Done. Querying list of activities 1..1... Done. Downloading: Garmin Connect activity (1/1) [#########] Zutphen Wandelen 2022-01-02T12:04:50+01:00, 00:30:49, 2.462km Data file already exists; skipping... Done!

Do I have to change some lines to pass this problem?

Only1nr7 commented 2 years ago

I have found it, updated the number in line 503 to download multiple files.

lowtower commented 2 years ago

1 is the default value for the number of activities. You can "override" it with the parameter -c or --count (e.g. -c 2000)

pe-st commented 2 years ago

Hello @Only1nr7, as @lowtower correctly wrote you should use the -c option to download multiple activities.

The first example in the README (https://github.com/pe-st/garmin-connect-export#examples) is the one to download all activities:

python gcexport.py --count all