Skip to content

Instantly share code, notes, and snippets.

@Jakobuz
Forked from StevenMaude/convert_gpx.sh
Created November 17, 2022 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jakobuz/37db0f67d9d278531b2a8cc5d613b785 to your computer and use it in GitHub Desktop.
Save Jakobuz/37db0f67d9d278531b2a8cc5d613b785 to your computer and use it in GitHub Desktop.
Use gpsbabel to convert Garmin .FIT to .gpx — requires a fairly recent version of gpsbabel (minimum 1.4.3); see https://www.stevenmaude.co.uk/posts/using-garmin-forerunner-watches-with-linux for more details on using Garmin watches with Linux
#!/bin/sh
# Usage: convert_gpx.sh <FIT filename>
# Should works whether you include the .FIT extension or not.
filename=$(basename "$1" .FIT)
gpsbabel -i garmin_fit -f "$filename".FIT -o gpx -F "$filename".gpx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment