python-fitparse icon indicating copy to clipboard operation
python-fitparse copied to clipboard

Parsing events?

Open rjjanuary opened this issue 5 years ago • 4 comments

Hello, I'm looking to possibly utilize this library to parse divelogs from the Garmin Descent. The files are standard ant files with some (currently) undocumented messages and events.

I do see that a number of the dive messages are currently supported, however there are a number of events that are included within the Descent files that I'm not seeing.
In particular, what I'm looking for are events 56 (Dive Alerts) and 57 (Gas Switches)

Does fitparse process events? If so, how do I access them?

rjjanuary avatar Jul 01 '19 01:07 rjjanuary

Looking further into it, I can see how the profiles are being generated from the SDK. Looks like the best method of action is modifying a profile by hand until the events are released in an SDK version.

rjjanuary avatar Jul 01 '19 02:07 rjjanuary

If anyone is wanting a copy of profile.py which includes the correct field_types data for events 56 and 57 let me know, I have a modified version available that seems to work well for all current events as of OS version 6.0

rjjanuary avatar Jul 02 '19 01:07 rjjanuary

Hey @rjjanuary, I too am trying to extract the extra events/fields that are populated by the Garmin Descent. I'm interested in your profile.py if you're willing to share. Thank you!

gwtall avatar Mar 03 '21 01:03 gwtall

I apologize for missing your message before @gwtall. I'll dig the code back up. I've not tested it with any more recent version of python-fitparse, but it will at least be a good starting point.

rjjanuary avatar Jun 28 '21 19:06 rjjanuary