Skip to content

Encoder and decoder for the FIT format - a file used by many activity tracking devices.

License

Notifications You must be signed in to change notification settings

BenBanerjeeRichards/FIT-File-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIT File Parser

A groovy library for handling FIT files (Work in Progress)

Features

  • 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

Installation

Download the latest FitParser.jar from releases and add it to your build path (Eclipse instructions | Intellij IDEA instructions | Netbeans Instructions).

Information

Usage

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.

About

Encoder and decoder for the FIT format - a file used by many activity tracking devices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published