python-fitparse
python-fitparse copied to clipboard
track record file positions to allow for record editing
This PR adds the file positions of each record to the parsing code.
Motivation: I have a garmin 66i that occasionally produces bad records ( corrupt time and/or very inaccurate gps coordinates). With this record data added to fitparse, I was able to write a second script (based on fitdump) that as it reads a .fit file will write a new .fit file removing the bad records, keeping all other records and updating the checksums and other header data. That "fixfit.py" script is in my fork. It's not very polished so not included here.
Submitting this PR, in case there is any interest in this type of capability. longer term it would be great to see a python based .fit editor