flackdl / ifit-garmin-sync

Export iFit workouts to Garmin Connect
GNU General Public License v3.0
47 stars 10 forks source link

strava-garmin-sync? #12

Open sanicki opened 1 year ago

sanicki commented 1 year ago

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

flackdl commented 1 year ago

It's interesting that ifit tcx files going from iFit->Strava->Garmin have that extra data but going from iFit->Garmin lacks it.

In any event, I built this for my wife years ago and she doesn't use it anymore so therefore I don't have much invested at this point. I doubt I'll be adding many features to this, other than keeping it running with patches.

On Fri, Jan 20, 2023 at 5:57 PM Scott Sanicki @.***> wrote:

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:

https://user-images.githubusercontent.com/6764844/213824999-e1f79ac3-f093-4667-b5ca-332bc9545806.jpg

[image: Screenshot 2023-01-20 163937] https://user-images.githubusercontent.com/6764844/213824345-25766587-7d98-43e6-bf05-5fe5ec3d92d2.jpg

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

[image: image] https://user-images.githubusercontent.com/6764844/213824636-2665cae2-c7f0-431d-b850-361562e2ff49.png

[image: image] https://user-images.githubusercontent.com/6764844/213824561-cd35b607-061f-4730-94ae-25eadb1fd9cd.png

— Reply to this email directly, view it on GitHub https://github.com/flackdl/ifit-garmin-sync/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRSQMQ2XGTDJY53A5AOYE3WTMQ5BANCNFSM6AAAAAAUCB5DZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sanicki commented 1 year ago

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

sanicki commented 1 year ago

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

iFit->Garmin:

ifit

iFit->Strava->Garmin:

strava

sanicki commented 1 year ago

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

flackdl commented 1 year ago

yeah, of course, keep the ideas coming.

On Sat, Jan 21, 2023 at 11:07 AM Scott Sanicki @.***> wrote:

Not sure if something like this https://gist.github.com/pascalopitz/d7f271dc69ab55d9c0587a93cd70e634 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:

IFIT iFit.com

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

— Reply to this email directly, view it on GitHub https://github.com/flackdl/ifit-garmin-sync/issues/12#issuecomment-1399290148, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRSQMWUL2UXAWMUYHD3SCTWTQJTLANCNFSM6AAAAAAUCB5DZE . You are receiving this because you commented.Message ID: @.***>