This script automatically searches for all .fit files in your ~/Downloads folder, reads them using the fitparse library, and exports the data to CSV files. Both record and lap data are exported to separate CSV files with unique column names.
- Searches for all
.fitfiles in the Downloads folder - Reads the files using
fitparse - Exports record and lap data to CSV files
- CSV files are named with a timestamp
- Provides clear error messages and status updates
- Python 3.7+
- The Python package
fitparse
Install the required package with:
pip install fitparse- Place one or more
.fitfiles in your~/Downloadsfolder. - Run the script:
python FitFilev2.py- The exported CSV files will appear in the same folder (
~/Downloads).
record_<filename>_<timestamp>.csv: Contains all record datalap_<filename>_<timestamp>.csv: Contains all lap data
- If no
.fitfiles are found, you will see a message. - If a file cannot be opened, the error will be shown.
- If there is no record or lap data, you will get a warning.
Joey Kerkhof
This script is intended for personal use and quick conversion of Garmin FIT files to CSV.