Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a prequalifier title to workout description #9

Open
wingnut144 opened this issue Feb 17, 2022 · 3 comments
Open

Add a prequalifier title to workout description #9

wingnut144 opened this issue Feb 17, 2022 · 3 comments

Comments

@wingnut144
Copy link

Is there a way that workouts from NordicTrack/iFit could be labeled as something like:

iFit: Afternoon ride

Sort of like Wahoo does, it lists the ride as Wahoo SYSTM:

And I'm guessing there isn't a way to get the name of the ride to add to add to Strava, instead of just 'afternoon ride' ??

@flackdl
Copy link
Owner

flackdl commented Feb 17, 2022

It's been a while since I've looked at this, but I think it's possible around this line of code:

https://github.com/flackdl/ifit-garmin-sync/blob/main/src/sync/processor.py#L85

It's currently just grabbing the xml from iFit and using the notes value for the title that gets sent to Garmin.

I don't have time to test this but if you want to prefix "iFit" with the workouts, you could do something like:

title = 'iFit: {}'.format(notes[0]) if notes else 'Unknown Upload: {}'.format(datetime.now().isoformat())

Which would turn a ride called Papawai Point Interval Ride, Maui, Hawaii into iFit: Papawai Point Interval Ride, Maui, Hawaii.

@wingnut144
Copy link
Author

But then it wouldn't show in Strava with that same title, would it?

@flackdl
Copy link
Owner

flackdl commented Feb 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants