Convert SportTracks 3.1 (https://sporttracks.mobi/) .fitlog to Garmin's .tcx files using Spring Batch Framework.
What it does:
- Read all activities from .fitlog XML file.
- Convert Fitlog Activity to TCX Activity:
- Handle manual edits/corrections to GPS track data.
- Compute missing distances for Trackpoints.
- Write all TCX Activity into outout file.
- Log some output file characteristics for manual verification purposes:
- Log some TrainingCenterDatabase metrics:
- Activity Count
- Total Distance Meters
- Total Time Seconds
- Log some Activity summary:
- Activity Id
- Lap Distance Meters
- Trackpoint Distance Meters
- Total Lap Time Seconds
- Total Lap Calories
- Lap Count
- Trackpoint Count
- Trackpoint Heart Rate Average
- If logging.level=debug log some Trackpoint information:
- Start Time
- Distance Meters
- Latitude
- Longitude
- Log some TrainingCenterDatabase metrics:
- Validate output file schema conformance.
- Java 14 or higher (e. g. OpenJDK 14)
- Maven 3.5 or higher
- Exported .fitlog files (see SportTracks Documentation)
mvn spring-boot:run input.file=/path/to/foo.fitlog output.file=/path/to/foo.tcx
or
mvn clean package # creates an executable jar file
cd target
java -jar fitlog-to-tcs-converter.jar input.file=/path/to/foo.fitlog output.file=/path/to/foo.tcx
- Prefer BigDecimal over double in jaxb generated code.
- Enhance Test Coverage from 74% to at least 80% (functional code has more than 90% line coverage).