dvmarinoff / Flux

Indoor Cycling App for Structured Training
https://flux-web.vercel.app
GNU Affero General Public License v3.0
505 stars 86 forks source link

Training Effect/Load won't be calculated (Garmin) #142

Closed PaddoSwam closed 1 year ago

PaddoSwam commented 1 year ago

I've just finished a small ride, worked great btw., but the downloaded fit file uploaded into Garmin Connect doesn't seem to calculate a Training Effect nor Load.

I haven't figured out what the issue might be but my first hint was to a vo2max/ftp setting that might be missing.

Will investigate this one myself too because open-source! 💪🤓

dvmarinoff commented 1 year ago

Thanks!

Will look into it.

dvmarinoff commented 1 year ago

I don't have it on my Zwift recorded rides either. I am starting to suspect it is a garmin device exclusive feature.

Plus this is what garmin connect says:

Screenshot 2023-01-25 at 20 08 16
PaddoSwam commented 1 year ago

My Zwift rides imported to Garmin Connect automagically (not sure if push by Strava/Zwift or pulled from Strava by Garmin) do have Training Effects en Load calculated as soon as my watch is synced (and has a few seconds to process)

PaddoSwam commented 1 year ago

Just rode on MyWhoosh and had to manually upload my fit file and that one did get a Load and Training Effect calculated, I'll compare the 2 files!

PaddoSwam commented 1 year ago

There is quite some differences, but I suspect the session data part and/or device part. Will take a closer look tomorrow/friday. 🤓

Flux_Half_Chili_Pepper.fit.txt MyWhoosh.fit.txt

PaddoSwam commented 1 year ago

I am starting to suspect it is a garmin device exclusive feature.

It is something that some Garmin devices calculate, Garmin Connect doesn't do the calculation, for me it's a Garmin Forerunner 745 and/or Garmin Edge 530 that calculate the efforts.

dvmarinoff commented 1 year ago

I see, will investigate more closely tomorrow.

Edit: Adding resource: https://www.dcrainmaker.com/2021/06/garmin-training-status-now-includes-zwift-trainerroad-the-sufferfest-and-tacx-app-workouts.html

PaddoSwam commented 1 year ago

I think I fixed it! Edit: first try was unsuccessful will check back tomorrow morning!

dvmarinoff commented 1 year ago

Ray’s article says

Few things to note from your MyWhoosh .fit file:

Screenshot 2023-01-27 at 11 17 14

I modified the .fit file code to match what MyWhoosh is doing and ran some experiments:

Results:

Screenshot 2023-01-27 at 11 05 03

So having Training Load updated everywhere is a partial success for now.

BTW do you own a 1030 navigation? And did MyWhoosh had you enter Garmin device type anywhere in settings?

PaddoSwam commented 1 year ago

Hey Dimitar, no I own a Edge 530 and Forerunner 745 both capable of calculating the training loads.

The Edge 1030 Plus was virtually added by MyWhoosh, and so I thought of changing the same thing you did and that seemed to work however my quick edit in Flux code failed so I'll retry right now :)

Edit: sorry I misread, the Training Load part worked with my manual edit, and not in my local Flux changes.

The Training Effect part seems to be only with activities recorded by either the Edge 530 or Forerunner 745 itself, it's missing from Zwift, MyWhoosh etc. activities so I don't think it's possible to trick the Garmin devices into calculating that, probably relies on way more detailed data in the records part.

dvmarinoff commented 1 year ago

Pushed my changes to the develop branch. They are also live on the dev deployment: flux-dev.vercel.app

PaddoSwam commented 1 year ago

Awesome the Training Load is calculated properly and so is recovery time, I think I found my new favorite trainer app!