A simple utility to parse .FIT files to a readable JSON format.
This utility has been tested with a Garmin Forerunner 735XT device only.
./fit2json -h
Convert a .FIT file to a more usable .json file.
-h, --help Prints this help message
-p, --[no-]prettify Whether the json should be lean, with only the most important data. Default: false
-i, --input The input .FIT file
-o, --output The output .json file
./bin/main.exe -p -i ABC.FIT -o ABC.FIT.json
- Download and install the Dart SDK: https://dart.dev/get-dart
- Verify that the SDK was installed correctly
➜ dart --version Dart VM version: 2.9.0-8.2.beta (beta) (Tue May 12 09:05:56 2020 +0200) on "linux_x64" ➜ pub --version Pub 2.9.0-8.2.beta
This is only necessary if a model class was updated.
pub run build_runner build
dart2native bin/main.dart -o bin/fit2json
dart2native bin/main.dart