Docker Compose Configuration for Syncing Weight Data from Home Assistant to Garmin Connect.
This project facilitates seamless integration between Home Assistant and Garmin Connect, enabling the synchronization of weight data. If you own a scale that reports to Home Assistant, this setup ensures compatibility with Garmin Connect.
Inspired by the need to integrate my Mi Scale data with Garmin Connect, I developed this tool. Now, any scale that writes to Home Assistant can effortlessly share its data with Garmin.
version: "3.9"
services:
node-app:
container_name: HAWeightSensor2GarminConnect
image: ghcr.io/myrenic/haweightsensor2garminconnect:main
environment:
- HOME_ASSISTANT_API_URL=
- HOME_ASSISTANT_ACCESS_TOKEN=
- HOME_ASSISTANT_WEIGHT_SENSOR=
- HOME_ASSISTANT_IMPEDANCE_SENSOR=
- YAGCC_API_URL=http://local-ip:555/upload
- GARMIN_EMAIL=
- GARMIN_PASSWORD=
- USER_HEIGHT=190 # height in CM
- USER_SEX=male #or use female
- USER_AGE=24
- POLLING_INTERVAL=1800000 # interval in ms
- DEBUG_MODE=true
depends_on:
- yagcc-api
yagcc-api:
container_name: YAGCC
restart: unless-stopped
image: lswiderski/yet-another-garmin-connect-client-api
ports:
- 555:80
I drew inspiration from the following repository on how to send the POST request to YAGCC: WebBodyComposition by lswiderski (https://github.com/lswiderski/WebBodyComposition)
The cornerstone of this integration, this client takes on the heavy lifting, bridging the gap in the absence of a Garmin API: Yet Another Garmin Connect Client by lswiderski (https://github.com/lswiderski/yet-another-garmin-connect-client)