Skip to content

arathunku/ext_fit

Repository files navigation

ExtFit

Actions Status Hex.pm Documentation License

.fit file decoder. See ExtFit.Decode module for more details and usage.

It's still in alpha-release and there's a slim chance that the format of returned structs will change but if possible, will be avoided.

Currently used FIT profile can be seen in ExtFit.Profile.Types file.

Installation

The package can be installed by adding ext_fit to your list of dependencies in mix.exs:

def deps do
  [
    {:ext_fit, "~> 0.1.0"}
  ]
end

Usage

{:ok, records} =
  "my-file.fit"
  |> File.read!()
  |> ExtFit.Decode.decode()

# print first record
hd(record)

The docs can be found at https://hexdocs.pm/ext_fit.

FIT structs are very large, you might want to take a look at examples first!

2024-03-29-LiveBookRunningFITDemo.mp4

(may not be visible on hexdocs, see GitHub README)

Contributing

Before contributing to this project, please read the CONTRIBUTING.md.

License

Copyright © 2024 Michal Forys

This project is licensed under the MIT license.