A groovy library for handling FIT files (Work in Progress)
- Parse FIT files
- Link to global profile, including resolution of dynamic fields
- Type conversion and special value handling (including timestamps)
- Data exports - text, json, CSV
- Process records - find abnormal data
- Writing data to FIT files
- Command line interface
Download the latest FitParser.jar
from releases and add it to your build path (Eclipse instructions | Intellij IDEA instructions | Netbeans Instructions).
- Project Wiki
- Documentation coming soon
IMPORTANT: This project is a work in progress. As a result, the API shown below is not stable and very liable to change
The following example iterates over each data message in the FIT file, and then prints out each field in the messages.
new FitParser().parse(new File("fit/fit.fit"))each {message ->
println message.getType()
message.fields.each { key, value ->
println "\t $key : $value"
}
}
For more examples, refer to the quickstart guide.