cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
389 stars 111 forks source link

Treadmill Workouts All Labeled as Run in Strava #1130

Closed PugMamma closed 1 year ago

PugMamma commented 1 year ago

Since January 6th all my treadmill workouts are being labeled as a "run" in Strava. I did 3 walks on January 5th and were all labeled correctly as a Walk. Small issue since I can correct the workout type in Strava manually, but unsure what caused the change overnight.

Walks Labeled Correctly in Strava: debug-Thu_Jan_5_10_49_22_2023.log

Tread Bootcamp and Walk Labeled as Run in Strava: debug-Fri_Jan_6_12_22_15_2023.log debug-Fri_Jan_6_13_30_25_2023.log

cagnulein commented 1 year ago

@PugMamma thanks! Checked and it's due to new peloton api. Now they are mark these activies as

"fitness_discipline": "circuit", "fitness_discipline_display_name": "Tread Bootcamp",

so how can I treat this? In the fit file I can put as a Multisport activity if you want. Otherwise i will have to add a new setting for "bootcamp strava activity".

What do you think?

PugMamma commented 1 year ago

@PugMamma thanks! Checked and it's due to new peloton api. Now they are mark these activies as

"fitness_discipline": "circuit", "fitness_discipline_display_name": "Tread Bootcamp",

so how can I treat this? In the fit file I can put as a Multisport activity if you want. Otherwise i will have to add a new setting for "bootcamp strava activity".

What do you think?

Not sure what will be easier, but prior to the Peloton update Treadmill Bootcamps were labeled as 'workout' in Strava. This worked out well since there are running and walking bootcamps. What are walks labeled as in the January 6th debug log?

cagnulein commented 1 year ago

@PugMamma the one from the 5th is

"fitness_discipline":"walking"

hah so from the 5th was not walking on strava, but workout instead?

cagnulein commented 1 year ago

also do you have the fit files @PugMamma ?

PugMamma commented 1 year ago

@PugMamma the one from the 5th is

"fitness_discipline":"walking"

hah so from the 5th was not walking on strava, but workout instead?

From the 6th and 7th, Walks were labeled as Runs.

cagnulein commented 1 year ago

ok but in the 5th was marked with Walk or with workout? also do you have the fit files?

PugMamma commented 1 year ago

also do you have the fit files @PugMamma ? The file from Jan 4 was a Tread Bootcamp that went imported in Strava is labeled as a workout. The file from Jan 5 was a walk that was labeled as a walk in Strava. The files from Jan 6 & 7 are 2 walks and a Tread Bootcamp which were all labeled as run in Strava. Fit Files.zip

cagnulein commented 1 year ago

ok checked the fit files, i was wrong. The fit files are perfect, showing generic workout for bootcamp and walking for walking one on 7th jan. so it's a bug of strava. can you open a ticket to them? let me know!

PugMamma commented 1 year ago

ok checked the fit files, i was wrong. The fit files are perfect, showing generic workout for bootcamp and walking for walking one on 7th jan. so it's a bug of strava. can you open a ticket to them? let me know! I got a response from Strava support. Strava said the sport is labeled as generic. "Since the file didn't include any information on the sport type it will default to your account's "Default Sport" which is Running." I sent them the below FIT files as well. Strava Fit Files.zip

cagnulein commented 1 year ago

yes the generic one was the bootcamp, isn't it?

PugMamma commented 1 year ago

yes the generic one was the bootcamp, isn't it?

Correct. I asked him what the more recent walk file said for sport type, but his reply didn't answer it. Since I can't view the FIT file on my laptop I couldn't verify on my own. I'm unsure what the sport type for bootcamps was prior to January 5th since those FIT files would be labeled as 'workout' previously vs 'running'.

cagnulein commented 1 year ago

one thing i can tell you for sure: i didn't change anything, so they have changed something for sure. Anyway I'm open to changes if I can help you somehow. Maybe changing the bootcamp workout type?

PugMamma commented 1 year ago

one thing i can tell you for sure: i didn't change anything, so they have changed something for sure. Anyway I'm open to changes if I can help you somehow. Maybe changing the bootcamp workout type?

Does the walk FIT file has the sport type as generic as well? It's not that big of a deal to change it manually in Strava.

cagnulein commented 1 year ago

the 6th one is walking the 7th one is generic

PugMamma commented 1 year ago

the 6th one is walking the 7th one is generic

I'll contact Strava again. I think sending both FIT files for a bootcamp and a Walk was too confusing for them.

cagnulein commented 1 year ago

ehehe ok let me know

PugMamma commented 1 year ago

ehehe ok let me know

Capture

cagnulein commented 1 year ago

is this answer about which file? @PugMamma

PugMamma commented 1 year ago

is this answer about which file? @PugMamma

That was from a walk file. I can attach it if you want

cagnulein commented 1 year ago

yes to double check it and in case also if you have the debug log from the same session

PugMamma commented 1 year ago

yes to double check it and in case also if you have the debug log from the same session

FIT and Debug Log.zip

cagnulein commented 1 year ago
Screenshot 2023-01-19 at 06 56 12

the fit file is a walking one but I understood now what they mean!

They changed the behaviour: they're not getting the sport from the fit file directly but they are using the meta information that i'm sending with the fit file. Since day 1 on qz, if you were using a treadmill i was send this bit like running, bike like riding and so on. So i have to modify also this now. Good to know! I will do this today!

note for me, use: stravaPelotonWorkoutType

cagnulein commented 1 year ago

for reference, I guess they are talking about this

activity_type: | string optional, case insensitive.Possible values : "AlpineSki", "BackcountrySki", "Canoeing", "Crossfit", "EBikeRide", "Elliptical", "Golf", "GravelRide", "Handcycle", "Hike", "IceSkate", "InlineSkate", "Kayaking", "Kitesurf", "NordicSki", "Ride", "RockClimbing", "RollerSki", "Rowing", "Run", "Sail", "Skateboard", "Snowboard", "Snowshoe", "Soccer", "StairStepper", "StandUpPaddling", "Surfing", "Swim", "Velomobile", "VirtualRide", "VirtualRun", "Walk", "WeightTraining", "Wheelchair", "Windsurf", "Workout", "Yoga" Deprecated: prefer using sport_type, will be ignored if sport_type is included. Overrides type detected from file, if left unspecified type detected from file will be used. -- | --

https://developers.strava.com/docs/uploads/

cagnulein commented 1 year ago

done @PugMamma it will be in the 2.12.50 version

PugMamma commented 1 year ago

done @PugMamma it will be in the 2.12.50 version

Thank you, I got the newest update today and it worked. Tread bootcamps are labeled as Workouts and walks are Walks! Screenshot_20230121_141943_Strava Screenshot_20230121_131108_Strava

cagnulein commented 1 year ago

yeah @PugMamma great!