Skip to content

Instantly share code, notes, and snippets.

@StevenMaude
Last active January 29, 2023 17:29
Show Gist options
  • Save StevenMaude/b4ee336750a3fdbaaf67 to your computer and use it in GitHub Desktop.
Save StevenMaude/b4ee336750a3fdbaaf67 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