jimmykane / fit-parser

Parse your FIT files easily, directly from JS (Garmin, Polar, Suunto)
Other
92 stars 33 forks source link

Why does multi-sport come up as run ? #19

Closed MichaelLiss closed 4 years ago

MichaelLiss commented 4 years ago

Hi,

I just did a "triathlon" and ran it through the parser,

Fit-file-parser results

The fit-file-parser thinks the sport name is a "Run" and activity type of 'auto_multi-sport':

 \"fileId_type\": \"activity\",
 \"sport_Name\": \"Run\",
 \"sport_Sport\": \"running\",
 \"sport_SubSport\": \"generic\",
 \"activity_Type\": \"auto_multi_sport\"

Garmin Results

Garmin thinks it is a multi-sport

multiSport

Other activity types for comparison

I did a swim, a bike and run for comparison

ONLY Swim (open water)

here is what I get for just a swim:

 \"fileId_type\": \"activity\",
 \"sport_Name\": \"Open Water\",
 \"sport_Sport\": \"swimming\",
 \"sport_SubSport\": \"open_water\",
 \"activity_Type\": \"manual\"

ONLY Bike

here is what I get for just a bike:

 \"fileId_type\": \"activity\",
 \"sport_Name\": \"Bike\",
 \"sport_Sport\": \"cycling\",
 \"sport_SubSport\": \"generic\",
 \"activity_Type\": \"manual\"

ONLY Run

here is what I get for just a run:

 \"fileId_type\": \"activity\",
 \"sport_Name\": \"Run\",
 \"sport_Sport\": \"running\",
 \"sport_SubSport\": \"generic\",
 \"activity_Type\": \"manual\"

Multi-sport fit file

Here is the FIT file for the multi-sport activity 4958669219.zip

MichaelLiss commented 4 years ago

Hi...

I am going to uninstall your module and use Garmin's parser and an AWS micro-service, as it doesn't seem you are going to work on this any time soon.

jimmykane commented 4 years ago

Hey no worries. You can always keep the watching on for releases. I will be working and closing these tickets but for now, during an pandemic and my son I am enjoying this time.

I am typically a workaholic in a way but unfortunately not this time.

The only reason I reply in such a personal matter here, is to indicate that typically I commit every day 🙏

On Fri, 29 May 2020, 19:53 MrLister, notifications@github.com wrote:

Hi...

I am going to uninstall your module and use Garmin's parser and an AWS micro-service, as it doesn't seem you are going to work on this any time soon.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jimmykane/fit-parser/issues/19#issuecomment-636103885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVX43WXNAUQ5H6VT5URGTRT7Y75ANCNFSM4NFOAIIA .

jimmykane commented 4 years ago

Hey should I proceed with this ?

jimmykane commented 4 years ago

The file you have provided has only one session. Did you export the whole activity or one session here?

MichaelLiss commented 4 years ago

It is a FIT file for a multi-sport activity

jimmykane commented 4 years ago

@MichaelLiss Looking better (sorry for the confusion) the decoded file has 5 sessions. Each session holds the sport name.

If an activity has more than 1 session it should be treated by the consuming library as a multisport or multisession etc.

Here is how the activity of that file looks like

Screenshot 2020-07-27 at 15 32 39
jimmykane commented 4 years ago

Also on the activity object there is type: "auto_multi_sport"

jimmykane commented 4 years ago

Should be now fixed. Look under sports