Sync Eufy smart scale body composition data to Garmin Connect
Project description
eufy-garmin-sync
Syncs body composition data from a Eufy smart scale to Garmin Connect. Weight, body fat %, muscle mass, bone mass, hydration, BMR, visceral fat, and metabolic age all come through.
macOS only. Requires Python 3.9+ and a terminal. Setup is guided - you just answer a few prompts.
The problem
Eufy scales sync to Apple Health, Fitbit, and Google Fit - but not Garmin. If you use Garmin for training, your body comp data is stuck in a separate app. This fixes that.
Why not just use python-garminconnect?
Every Python library that talked to Garmin broke in March 2026. Garmin put Cloudflare in front of their SSO, which blocks any login that doesn't come from a real browser. garth is deprecated, python-garminconnect can't authenticate anymore, and there's no official API.
This project gets around it with Playwright. On first run, a real Chromium window opens and you log in normally. OAuth2 tokens get saved locally and refresh on their own for about a year. After that first login, no browser needed - body comp data goes up as FIT files through Garmin's upload endpoint.
Install
You need Python 3.9+, a Eufy scale with cloud sync, and a Garmin Connect account.
Option A - pipx (recommended):
First, install pipx if you don't have it:
brew install pipx
Or if you don't use Homebrew: pip3 install pipx
Then install and run:
pipx install eufy-garmin-sync
eufy-sync
Option B - clone and run:
git clone https://github.com/sturimcode/eufy-garmin-sync.git
cd eufy-garmin-sync
./setup.sh
Both options walk you through setup on first run - enter your credentials, log into Garmin in the browser that opens, and your data syncs automatically.
Usage
eufy-sync # sync new measurements
eufy-sync --status # check last sync + token health
eufy-sync --dry-run # preview without uploading
eufy-sync --reauth # re-login to Garmin if tokens expire
eufy-sync --update-password # change stored passwords
eufy-sync --backfill-days 30 # sync last 30 days
eufy-sync --install-agent # set up automatic sync
eufy-sync --uninstall-agent # remove automatic sync
Automatic sync (macOS)
On first run, you'll be asked if you want to sync automatically every 4 hours. If you say yes, a macOS Launch Agent is installed that runs in the background - weigh yourself, open your laptop later, and it syncs on its own.
Logs go to /tmp/eufy-garmin-sync.log. You get a macOS notification if something fails.
To disable: eufy-sync --uninstall-agent
How it works
Eufy Cloud API --> eufy_client.py --> transform.py --> garmin_client.py --> Garmin Connect
(fetch history) (auth + pull) (filter, dedup) (FIT file + upload)
|
state.db
(sync watermark)
- Authenticate to Eufy cloud API, pull measurement history
- Check local SQLite DB for what's already been synced
- Check Garmin for existing entries on the same date (handles multi-machine dedup)
- Generate a FIT binary file for each new measurement
- Upload to Garmin Connect, record in DB
Security
Your credentials and tokens are stored in ~/.garmin-sync/ with 600 permissions (only your user can read). They are only sent to Eufy and Garmin's own servers over HTTPS. They are never logged, uploaded, or transmitted anywhere else. You can verify this yourself - the codebase is small and the only outbound calls are in eufy_client.py and garmin_auth.py.
If your machine is compromised, these tokens could be used to access your Garmin account - but that's true of any saved login.
Known quirks
Weight precision: The Eufy cloud API returns weight at ~0.05 kg resolution, which can differ slightly from what the Eufy app displays (the app may read from Bluetooth/local storage with higher precision). In testing, most days match within 0.1 lbs, but occasional readings can be off by up to ~0.5 lbs. If Garmin displays in lbs, the kg-to-lbs conversion adds a bit more rounding on top.
Tests
pytest tests/ -v
Disclaimer
Uses unofficial APIs for both Eufy and Garmin. Could break if either company changes things. Use at your own risk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eufy_garmin_sync-1.1.3.tar.gz.
File metadata
- Download URL: eufy_garmin_sync-1.1.3.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c441a4e94f79d0892d4b0908e0eb87ec622cfeea42a155f97fd42f64c665c90
|
|
| MD5 |
3c300d71665405cb9b48de56a44847d7
|
|
| BLAKE2b-256 |
9c678bf43bcc5431df601666b312b2f85db0686bcd3d7d0f31809e3518fdd015
|
Provenance
The following attestation bundles were made for eufy_garmin_sync-1.1.3.tar.gz:
Publisher:
publish.yml on sturimcode/eufy-garmin-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eufy_garmin_sync-1.1.3.tar.gz -
Subject digest:
8c441a4e94f79d0892d4b0908e0eb87ec622cfeea42a155f97fd42f64c665c90 - Sigstore transparency entry: 1203652306
- Sigstore integration time:
-
Permalink:
sturimcode/eufy-garmin-sync@6c34a435ed2cf136fd9c1835abf03bbd09d06204 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sturimcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c34a435ed2cf136fd9c1835abf03bbd09d06204 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eufy_garmin_sync-1.1.3-py3-none-any.whl.
File metadata
- Download URL: eufy_garmin_sync-1.1.3-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22cd1227c8fff255e1bf3b770e3481276d82e5c2761cb95fe0bbb746e7e6307
|
|
| MD5 |
1f005a240052e01fe042ccb45dcb87b2
|
|
| BLAKE2b-256 |
0e742a9560e5544544beb5b2609241dfc783302cb65195ad1cb23928dcbecd37
|
Provenance
The following attestation bundles were made for eufy_garmin_sync-1.1.3-py3-none-any.whl:
Publisher:
publish.yml on sturimcode/eufy-garmin-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eufy_garmin_sync-1.1.3-py3-none-any.whl -
Subject digest:
c22cd1227c8fff255e1bf3b770e3481276d82e5c2761cb95fe0bbb746e7e6307 - Sigstore transparency entry: 1203652308
- Sigstore integration time:
-
Permalink:
sturimcode/eufy-garmin-sync@6c34a435ed2cf136fd9c1835abf03bbd09d06204 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sturimcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c34a435ed2cf136fd9c1835abf03bbd09d06204 -
Trigger Event:
release
-
Statement type: