-
Notifications
You must be signed in to change notification settings - Fork 6
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 formatted workout steps to Garmin activities #56
base: master
Are you sure you want to change the base?
Conversation
@@ -307,6 +312,88 @@ export class FitParser { | |||
logger.info("FitParser.parse", logHelper.user(user), logHelper.fitFileActivity(fitFileActivity), `Data: ${logFields.join(", ")}`) | |||
} | |||
|
|||
private intensity_prefixes = { | |||
"warmup": "🟢 Warmup: ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we probably want to do something with localization of the text here
switch (step.target_type) { | ||
case "speed": | ||
if (step.target_value) { | ||
line += ` @ ${this.formatSpeedAsPace(step.target_value)}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is specific to running. We probably want to format this for cycling activities in a way that makes sense for cycling workouts. Plus we should add support for power and heart rate target types as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR still needs some work but I wanted to get some preliminary thoughts about this idea to see if it makes sense and get some initial feedback on the code.
This adds formatted workout steps like the following:
This is something I currently do manually for all my workout activities and so it would love for this to be automated through Strautomator.