weight-logger
is a simple application which enables you to sync readings from your Withings scale to a Notion page.
- Withings Account
- Notion Account
- IFTTT Account
- Server running
docker
anddocker-compose
- Clone this repository on your server and enter it
git clone git@github.com:4dams/weight-logger.git && \
cd weight-logger
- Create a new Notion Integration (notion.so/my-integrations) and copy its Internal Integration Token:
I've changed mine, don't worry π
- Create a
docker-compose.yml
file, for example:
# docker-compose.yml
version: "3.7"
services:
logger:
build:
context: .
container_name: logger
ports:
- 3000:3000
environment:
# This is the "Internal Integration Token" from before
- NOTION_API_KEY=secret_Gix...
- Start the application
docker-compose up -d
- Create a new IFTTT Applet (ifttt.com/create)
- Choose Withings > When I have a new weight as your trigger.
- Choose Webhooks > Make a web request as your service
- Configure the service as follows:
As for the Body, copy and paste the following:
{
"date": "{{DateAndTime}}",
"unit": "{{Unit}}",
"weight": {{Weight}},
"fatMass": {{FatMass}},
"fatMassPercent": {{FatMassPercent}},
"leanMass": {{LeanMass}}
}
- Click Save and step on your scale! π
Feel free to open an issue or shoot me an email over at hello@adams.sh
, should you have any questions or need help setting up the app!
Do whatever you want, just leave credit. :)