Skip to content

Add Garmin device training fit file Session - #4169

Merged
cagnulein merged 1 commit into
masterfrom
claude/garmin-training-fit-logging-2zecQ
Jul 22, 2026
Merged

Add Garmin device training fit file Session#4169
cagnulein merged 1 commit into
masterfrom
claude/garmin-training-fit-logging-2zecQ

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

No description provided.

@cagnulein

Copy link
Copy Markdown
Owner Author

not needed

@cagnulein cagnulein closed this Jan 20, 2026
…stats

Fixes Garmin Connect Endurance Score incorrectly decreasing after QZ
sessions. Root cause: Garmin Connect couldn't classify the load because
the FIT file lacked user physiology context and calculated metrics.

Changes:
- Add zones_target message (FTP, max HR, threshold HR, calc types) so
  Garmin Connect knows the user's HR zones and power zones
- Add SetDefaultMaxHeartRate, SetRestingHeartRate, SetHeight to userMesg
- Calculate aerobic + anaerobic Training Effect from HR zone distribution
  and power vs FTP; write to session as total_training_effect /
  total_anaerobic_training_effect
- Write avg/max HR, avg/max power, Normalized Power, total work,
  avg/max cadence, max speed to session message
- Extend cadence and power stats collection from JUMPROPE-only to all
  device types; compute NP via 30-second rolling 4th-power mean
- Refactor TRIMP block to reuse shared user_max_hr / user_resting_hr
  variables (no functional change to TRIMP calculation)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cagnulein cagnulein reopened this Jul 20, 2026
@cagnulein
cagnulein force-pushed the claude/garmin-training-fit-logging-2zecQ branch from 3f5eddf to 993b357 Compare July 20, 2026 15:05
@cagnulein

Copy link
Copy Markdown
Owner Author

Required for the endurance score

Mail "QZ app - Endurance Score in Garmin Connect"

@cagnulein
cagnulein merged commit f544d8b into master Jul 22, 2026
19 of 22 checks passed
@cagnulein
cagnulein deleted the claude/garmin-training-fit-logging-2zecQ branch July 22, 2026 16:06
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

Successfully merging this pull request may close these issues.

1 participant