flackdl/ifit-garmin-sync

strava-garmin-sync?

Opened this issue · 5 comments

Would it be possible to modify ifit-garmin-sync to export Strava activity TCX files and import them to Garmin?

Workouts exported directly from iFit by ifit-garmin-sync import to Garmin without details like Power, Pace, and Calories burned.

Workouts synced from iFit to Strava then exported from Strava and imported to Garmin include that information:

Screenshot 2023-01-20 163937

Note that the Strava TCX file must have the leading spaces removed before being able to be imported to Garmin:

image

image

Understood. Ok if I keep adding stuff in case someone becomes interested in forking?

Samples (rm .txt):
ifit_workout.tcx.txt
strava_activity_wo_spaces.tcx.txt

iFit->Garmin:

ifit

iFit->Strava->Garmin:

strava

Not sure if something like this might be what is needed in order to crawl the Strava TCX files.

The following iFit references appear in the Strava TCX, so it might be possible to filter Strava Activities to only sync iFit workouts to Garmin:
<Name>IFIT</Name>
<Name>iFit.com</Name>

This one-liner should remove the leading space from the the Strava TCX:
sed "s/^[ \t]*//" -i youfile