fit-parser icon indicating copy to clipboard operation
fit-parser copied to clipboard

Feature request

Open Abasz opened this issue 5 years ago • 4 comments

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

Abasz avatar Sep 03 '19 22:09 Abasz

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 avatar Jul 27 '20 18:07 jimmykane

@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/

udos avatar Dec 14 '20 22:12 udos

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.

Abasz avatar Dec 15 '20 08:12 Abasz

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 :|

udos avatar Dec 15 '20 08:12 udos