/weight-logger

🍎 A simple application which enables you to sync readings from your Withings scale to a Notion page.

Primary LanguageTypeScript

weight-logger

weight-logger is a simple application which enables you to sync readings from your Withings scale to a Notion page.

Preview

Installation

Requirements

Getting Started

  1. Clone this repository on your server and enter it
git clone git@github.com:4dams/weight-logger.git && \
cd weight-logger
  1. Create a new Notion Integration (notion.so/my-integrations) and copy its Internal Integration Token:

I've changed mine, don't worry 😉

  1. 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...
  1. Start the application
docker-compose up -d
  1. 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}}
}
  1. Click Save and step on your scale! 🎉

Help and Issues

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!

License

Do whatever you want, just leave credit. :)