You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,11 @@ I decided to create this package after spending a few hours searching for a simp
19
19
20
20
#### Relevance to Strava
21
21
- Pre-GPDR, you could bulk export all your Strava activities as GPX files.
22
-
- Post-GDPR, you can export an archive of your account. Whilst this includes much more data, activity GPS files are now downloaded in their original file format (eg. GPX or FIT format, some gzipped, some not) and named like 2500155647.gpx, 2500155647.gpx.gz, 2500155647.fit, and 2500155647.fit.gz.
22
+
- Post-GDPR, you can export an archive of your account. Whilst this includes much more data, activity GPS files are now downloaded in their original file format (eg. GPX or FIT format, some gzipped, some not) and named like 2500155647.gpx, 2500155647.gpx.gz, 2500155647.fit, and 2500155647.fit.gz.
23
23
-[How to bulk export you Strava Data](https://support.strava.com/hc/en-us/articles/216918437-Exporting-your-Data-and-Bulk-Export#Bulk)
24
24
25
25
# Overview
26
-
The fit2gpx module provides two converter classes:
26
+
The fit2gpx module provides two converter classes:
27
27
- Converter: used to convert a single or multiple FIT files to pandas dataframes or GPX files
28
28
- StravaConverter: used to fix all the Strava Bulk Export problems in three steps:
- df_points: information per track point: longitude, latitude, altitude, timestamp, heart rate, cadence, speed, power, temperature
46
46
- Note the 'enhanced_speed' and 'enhanced_altitude' are also extracted. Where overlap exists with their default counterparts, values are identical. However, the default or enhanced speed/altitude fields may be empty depending on the device used to record ([detailed information](https://pkg.go.dev/github.com/tormoder/fit#RecordMsg)).
47
47
48
-
48
+
49
49
# Use Case 2: FIT to GPX
50
50
Import module and create converter object
51
51
```python
@@ -70,8 +70,8 @@ from fit2gpx import StravaConverter
[pandas](https://github.com/pandas-dev/pandas) is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive.
94
94
#### gpxpy
95
-
[gpxpy](https://github.com/tkrajina/gpxpy) is a simple Python library for parsing and manipulating GPX files. It can parse and generate GPX 1.0 and 1.1 files. The generated file will always be a valid XML document, but it may not be (strictly speaking) a valid GPX document.
95
+
[gpxpy](https://github.com/tkrajina/gpxpy) is a simple Python library for parsing and manipulating GPX files. It can parse and generate GPX 1.0 and 1.1 files. The generated file will always be a valid XML document, but it may not be (strictly speaking) a valid GPX document.
96
96
#### fitdecode
97
97
[fitdecode](https://github.com/polyvertex/fitdecode) is a rewrite of the [fitparse](https://github.com/dtcooper/python-fitparse) module allowing to parse ANT/GARMIN FIT files.
98
+
99
+
# Command line interface
100
+
101
+
You can install this package using pip:
102
+
103
+
```shell
104
+
pip install --user --upgrade .
105
+
```
106
+
107
+
And then you can run the `fit2gpx` command to convert a FIT file to GPX:
108
+
109
+
```shell
110
+
fit2gpx 3323369944.fit 3323369944.gpx
111
+
```
112
+
113
+
You can also read the FIT file from standard input and/or write the GPX file to
0 commit comments