If you want to see all of the raw data that Garmin hands to this script, just print out the contents of the json_results variable. Also, because this is not an official feature of Garmin Connect, Garmin may very well make changes that break this utility (and they certainly have since I created this project). I have only tested it out on my account and it works fine, but different account settings or different data types could potentially cause problems.
This tool is not guaranteed to get all of your data, or even download it correctly. Also, as stated above, you should have some basic command line experience.
Most Mac and Linux users should already have it.
Of course, you must have Python installed to run this. gcexport.py if you set the file as executable (i.e., chmod u+x gcexport.py). Instead, omit them to be prompted (and note that nothing will be displayed when you type your password).Īlternatively, you may run it with.
Using the -username and -password flags are not recommended because your password will be stored in your command line history. Python gcexport.py -d ~/MyActivities -c 3 -f original -u -username bobbyjoe -password bestpasswordever1 will download your three most recent activities in the FIT file format (or whatever they were uploaded as) into the ~/MyActivities directory (unless they already exist). Python gcexport.py -count all will download all of your data to a dated directory.
u, -unzip if downloading ZIP files (format: 'original'), unzip The directory to export to (default: './YYYY-MM. Usage: gcexport.py ]Įxport format can be 'gpx', 'tcx', or 'original' That said, here are the usage details from the -help flag: You will need a little experience running things from the command line to use this script. Just run the script again and it will pick up where it left off. If you have many activities, you may find that this script crashes with an "Operation timed out" message. Since GPX is the only format Garmin should have for every activity, it is the default and preferred download format. For activities where a GPX file was uploaded, Garmin may not have a TCX file available for download, so an empty file will be created. If the original format is used, Garmin may not provide a file at all and an empty file will be created. If the GPX format is used, activity title and description data are saved. If there is no GPS track data (e.g., due to an indoor treadmill workout), a data file is still saved. GPX files (or whatever format you specify) containing track data, activity title, and activity descriptions are saved as well, using the Activity ID. Activity records and details will go into a CSV file called activities.csv. All downloaded data will go into a directory called YYYY-MM-DD_garmin_connect_export/ in the current working directory. This script will backup your personal Garmin Connect data. Please note that older Garmin device will still be able to use the old Garmin plugin however, new devices will not be able to use the old plugin.Īt this time the Garmin Vivofit is currently not supported within “Garmin Connect”.Download a copy of your Garmin Connect data, including stats and GPX tracks. Once “Garmin Connect” is synced with your MapMyFitness account workouts should load immediately but if not you may need to refresh the page.
If the issue arises where you do not see your workouts within the MapMyFitness app you are using please check to make sure that your workout has been properly saved to your Garmin/Garmin Express account. Allow this so we can keep making progress!ģ.If you have not synched your mobile device with Garmin before it will automatically sync the last 30 days worth of activity. The “Import From Garmin” button will still be functional enabling you to manually import your data from Garmin in the event that the “Connect” option fails.Ģ.This will take you to the “Garmin Connect” page and will ask you if you authorize MapMyFitness to use your Garmin information. 1.From the “Device Connect” page ( ), select the new “Connect” button.