Skip to content

Commit

Permalink
Add strava_product subfield to identify FIT files generated by Strava…
Browse files Browse the repository at this point in the history
… apps
  • Loading branch information
dlenski committed Apr 7, 2023
1 parent 2459451 commit 4fc9cd8
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions fitparse/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,14 @@
7: 'swiss_ball_dumbbell_flye',
},
),
'strava_product': FieldType(
name='strava_product',
base_type=BASE_TYPES[0x84], # uint16
values={
101: 'Strava iPhone App', # recent versions of Strava iPhone app
102: 'Strava Android App', # recent versions of Strava Android app
}
),
'garmin_product': FieldType(
name='garmin_product',
base_type=BASE_TYPES[0x84], # uint16
Expand Down Expand Up @@ -4009,6 +4017,19 @@
value='dynastream_oem',
raw_value=13,
),
)
),
SubField(
name='strava_product',
def_num=2,
type=FIELD_TYPES['strava_product'],
ref_fields=(
ReferenceField(
name='manufacturer',
def_num=1,
value='strava',
raw_value=265,
),
),
),
),
Expand Down Expand Up @@ -7077,6 +7098,19 @@
),
),
),
SubField(
name='strava_product',
def_num=4,
type=FIELD_TYPES['strava_product'],
ref_fields=(
ReferenceField(
name='manufacturer',
def_num=2,
value='strava',
raw_value=265,
),
),
),
),
),
5: Field(
Expand Down Expand Up @@ -8580,6 +8614,19 @@
),
),
),
SubField(
name='strava_product',
def_num=1,
type=FIELD_TYPES['strava_product'],
ref_fields=(
ReferenceField(
name='manufacturer',
def_num=0,
value='strava',
raw_value=265,
),
),
),
),
),
},
Expand Down Expand Up @@ -11446,6 +11493,19 @@
),
),
),
SubField(
name='strava_product',
def_num=1,
type=FIELD_TYPES['strava_product'],
ref_fields=(
ReferenceField(
name='manufacturer',
def_num=0,
value='strava',
raw_value=265,
),
),
),
),
),
2: Field( # Corresponds to file_id of scheduled workout / course.
Expand Down
Binary file not shown.

0 comments on commit 4fc9cd8

Please sign in to comment.