Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request #8

Open
Abasz opened this issue Sep 3, 2019 · 4 comments
Open

Feature request #8

Abasz opened this issue Sep 3, 2019 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Abasz
Copy link

Abasz commented Sep 3, 2019

Hi, I was wondering whether you are planing to implement encode for fit files from the js object ? I Your parser is the best I could find (I tried a lot :)) but I would like to save the changes back to an actual fit file after editing.

thanks

@jimmykane
Copy link
Owner

Atm quite difficult but PR's are welcome.

That said for export to GPX you could check https://github.com/sports-alliance/sports-lib that leverages this lib :-D

@jimmykane jimmykane added enhancement New feature or request help wanted Extra attention is needed labels Jul 27, 2020
@udos
Copy link

udos commented Dec 14, 2020

@Abasz, you could handle writing back to the file via the File System Access API. this article gives a nice introduction: https://web.dev/file-system-access/

@Abasz
Copy link
Author

Abasz commented Dec 15, 2020

Thanks for the reply, the problem is not that I am not able to save a file on hard disk, but rather the encoding of a json to FIT format binary.

I have not tried this for a while, but if I remember correctly my issue was that if I decode the FIT file to JSON change something in the json there is no way to encode back to FIT binary.

I actually started using a python package for this purpose. It correctly decodes and then encodes it back.

@udos
Copy link

udos commented Dec 15, 2020

ok. my misunderstanding. sorry about this.
note: I'm not involved with this project, just saw the issue and thought I could be of help. I was not :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants