Round-trip FIT -> json -> FIT conversion.

Here is a small pure-Python .fit interpreter that converts a FIT
file[1] into a json-format text file.


This is useful for examining files in the FIT format, which is an
opaque format not easily processed with textual tools.

There is a fit-to-csv utility included in the FIT SDK, but CSV is a
terrible format, and the utility doesn't do clean round-tripping of
undefined fields and profiles.


To convert a FIT file to json, use the "-j" option:

  ./ -j < > Settings.json

The json file may be edited with any editor.

To convert back to FIT, use the "-f" option.

  ./ -f < Settings.json >


The FIT decoder and encoder do not support arrays or subfields.
Everything is represented in the most basic form; enums are
represented in their integer form and no scaling or offseting or units
are applied.

String lengths are not maintained through the round trip; string field
lengths are calculated to hold the strings they contain.

No special handling of null values is taken.  Missing values are not
encoded at all.


| filename          | description                                     |
|       | Main script                                     |
|            | FIT decoder                                     |
|     | FIT encoder                                     |
| profile.pickle    | FIT profile definitions                         |
|   | Script to read profile.pickle                   |
| | Script to convert Profile.xls to profile.pickle |
|      | Example FIT file (settings from an Edge 510)    |
| Settings.json     | Example decoded file                            |
| COPYING           | 2-clause BSD                                    |
| README.txt        | This file                                       |


 NameLast modifiedSize

 Parent Directory   -
 Settings.json 2015-06-04 00:11 55K
 README.txt 2015-06-04 00:52 2.1K
 fit_json-0.1.tar.gz 2015-06-04 01:14 33K