Giter VIP home page Giter VIP logo

ext_fit's Introduction

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.

ext_fit's People

Contributors

arathunku avatar dependabot[bot] avatar dkuku avatar

Stargazers

Pieter Claerhout avatar Colin Seymour avatar Ollie Rutherfurd avatar Ben Cardoen avatar Sebastian Henao avatar Luke Ledet avatar Miriam Paola Reyes Garcia avatar Gregory Ostermayr avatar

Watchers

 avatar  avatar

Forkers

dkuku arvindcj

ext_fit's Issues

[Proposal] generate types directly from csv files

I saw that the rust library generates the code from the csv directly. I see you have a script for that currently.
You can do this with a macro - this way when there is a new csv file with mappings you only need to replace it in the repo and mark it with @external_resource.
This is quite popular pattern elixir unicode, ex_cldr, gettext

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.