Skip to content

Add Endurain sync backend#30

Open
DanyPM wants to merge 1 commit into
oliexdev:masterfrom
DanyPM:feat/endurain-sync
Open

Add Endurain sync backend#30
DanyPM wants to merge 1 commit into
oliexdev:masterfrom
DanyPM:feat/endurain-sync

Conversation

@DanyPM

@DanyPM DanyPM commented Jul 7, 2026

Copy link
Copy Markdown

Push body weight + composition to a self-hosted Endurain server via POST /api/v1/health/weight (upsert-by-date).

Auth: OAuth2 username/password login -> JWT access + rotating refresh token, stored in EncryptedSharedPreferences (no password kept), with proactive refresh in connect() and reactive refresh-on-401. MFA supported; SSO/PKCE deferred. Implemented clean-room from Endurain's REST API (not derived from Gadgetbridge's AGPL client).

Field mapping reads openScale's generic, unit-aware values: masses (muscle_mass/bone_mass) sent in kg, fat/water in %, plus visceral_fat. bmi is left for the server to auto-calc; source is omitted (server enum rejects non-garmin). Export only.

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