arathunku / ext_fit

Decode FIT files with Elixir!

Home Page:https://hex.pm/packages/ext_fit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Decode FIT files with Elixir!

https://hex.pm/packages/ext_fit

License:MIT License


Languages

Language:Elixir 99.8%Language:Shell 0.2%