Skip to content

Add experimental Zwift weight sync - #69

Merged
sturimcode merged 2 commits into
mainfrom
codex/zwift-weight-sync
Sep 7, 2026
Merged

Add experimental Zwift weight sync#69
sturimcode merged 2 commits into
mainfrom
codex/zwift-weight-sync

Conversation

@sturimcode

@sturimcode sturimcode commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Zwift previously reported successful updates without saving the new weight. This adds an optional experimental target that reads the current profile, saves through the website profile route, and verifies the saved weight before recording delivery. An already-matching weight is a verified no-op.

--setup-zwift supports existing installs and a fresh Zwift-only setup, retains credentials in the existing vault, and checks profile access before enabling sync. Tokens renew automatically; status, doctor, reauthentication, and disconnection include Zwift. --target limits a run to one configured destination.

Only the newest valid, freshly fetched reading for the selected Eufy profile reaches Zwift or Strava. Backfill cannot replace a newer recorded weight, and saved Garmin recovery data stays separate, including when its ID matches a fresh reading. Zwift failures leave other targets running. Credential-changing commands share the sync lock. Recovery notifications direct users to the failing target instead of always reopening Garmin login.

Validation: 486 tests passed on macOS, Windows, and Linux with Python 3.12, 3.13, and 3.14. Ruff and distribution builds passed. A real-account controlled weight change and restoration passed fresh and refreshed-session reads. The production client then verified cached-session reuse, token refresh, and a first Zwift-only sync without another weight write. Actual token expiry and long-term behavior across accounts remain unproven; the target stays experimental. Version: 1.13.0.

@sturimcode
sturimcode merged commit 7f4bc47 into main Sep 7, 2026
11 checks passed
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