Skip to content

Commit 4fc9cd8

Browse files
committed
Add strava_product subfield to identify FIT files generated by Strava apps
1 parent 2459451 commit 4fc9cd8

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

fitparse/profile.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,14 @@
13801380
7: 'swiss_ball_dumbbell_flye',
13811381
},
13821382
),
1383+
'strava_product': FieldType(
1384+
name='strava_product',
1385+
base_type=BASE_TYPES[0x84], # uint16
1386+
values={
1387+
101: 'Strava iPhone App', # recent versions of Strava iPhone app
1388+
102: 'Strava Android App', # recent versions of Strava Android app
1389+
}
1390+
),
13831391
'garmin_product': FieldType(
13841392
name='garmin_product',
13851393
base_type=BASE_TYPES[0x84], # uint16
@@ -4009,6 +4017,19 @@
40094017
value='dynastream_oem',
40104018
raw_value=13,
40114019
),
4020+
)
4021+
),
4022+
SubField(
4023+
name='strava_product',
4024+
def_num=2,
4025+
type=FIELD_TYPES['strava_product'],
4026+
ref_fields=(
4027+
ReferenceField(
4028+
name='manufacturer',
4029+
def_num=1,
4030+
value='strava',
4031+
raw_value=265,
4032+
),
40124033
),
40134034
),
40144035
),
@@ -7077,6 +7098,19 @@
70777098
),
70787099
),
70797100
),
7101+
SubField(
7102+
name='strava_product',
7103+
def_num=4,
7104+
type=FIELD_TYPES['strava_product'],
7105+
ref_fields=(
7106+
ReferenceField(
7107+
name='manufacturer',
7108+
def_num=2,
7109+
value='strava',
7110+
raw_value=265,
7111+
),
7112+
),
7113+
),
70807114
),
70817115
),
70827116
5: Field(
@@ -8580,6 +8614,19 @@
85808614
),
85818615
),
85828616
),
8617+
SubField(
8618+
name='strava_product',
8619+
def_num=1,
8620+
type=FIELD_TYPES['strava_product'],
8621+
ref_fields=(
8622+
ReferenceField(
8623+
name='manufacturer',
8624+
def_num=0,
8625+
value='strava',
8626+
raw_value=265,
8627+
),
8628+
),
8629+
),
85838630
),
85848631
),
85858632
},
@@ -11446,6 +11493,19 @@
1144611493
),
1144711494
),
1144811495
),
11496+
SubField(
11497+
name='strava_product',
11498+
def_num=1,
11499+
type=FIELD_TYPES['strava_product'],
11500+
ref_fields=(
11501+
ReferenceField(
11502+
name='manufacturer',
11503+
def_num=0,
11504+
value='strava',
11505+
raw_value=265,
11506+
),
11507+
),
11508+
),
1144911509
),
1145011510
),
1145111511
2: Field( # Corresponds to file_id of scheduled workout / course.
76.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)