Skip to content

Commit

Permalink
README.md: fix some issues in the readme that prevent proper auth
Browse files Browse the repository at this point in the history
  • Loading branch information
stynoo committed Dec 20, 2024
1 parent b9343ec commit 1d174b1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ A tool for synchronisation of the Withings API to:
./config/ # config directory
./config/withings-sync/ # config directory for withings-sync
./config/withings-sync/.withings_user.json # .withings_user.json file to store access tokens
./config/withings-sync/.garmin_session/ # .garmin_session directory to store oauth tokens
```

2. contents of an example `.env` file:
Expand All @@ -103,7 +102,6 @@ A tool for synchronisation of the Withings API to:
volumes:
- /etc/localtime:/etc/localtime:ro
- ${STACK_PATH:?err}/config/withings-sync/.withings_user.json:/home/withings-sync/.withings_user.json
- ${STACK_PATH:?err}/config/withings-sync/.garmin_session:/home/withings-sync/.garmin_session
restart: unless-stopped
```
Expand Down Expand Up @@ -187,7 +185,6 @@ A tool for synchronisation of the Withings API to:
./config/withings-sync/ # config directory for withings-sync
./config/withings-sync/entrypoint.sh # entrypoint.sh file containing your
./config/withings-sync/.withings_user.json # .withings_user.json file to store access tokens
./config/withings-sync/.garmin_session/ # .garmin_session directory to store oauth tokens
```

2. contents of an example `.env` file:
Expand Down Expand Up @@ -220,7 +217,6 @@ A tool for synchronisation of the Withings API to:
volumes:
- /etc/localtime:/etc/localtime:ro
- ${STACK_PATH:?err}/config/withings-sync/.withings_user.json:/home/withings-sync/.withings_user.json
- ${STACK_PATH:?err}/config/withings-sync/.garmin_session:/home/withings-sync/.garmin_session
- ${STACK_PATH:?err}/config/withings-sync/entrypoint.sh:/home/withings-sync/entrypoint.sh
entrypoint: "sh /home/withings-sync/entrypoint.sh"
restart: unless-stopped
Expand Down Expand Up @@ -303,15 +299,15 @@ First start to ensure the script can start successfully:
Obtaining Withings authorisation:

```bash
$ docker run -v .withings_user.json:/home/withings-sync/.withings_user.json -v .garmin_session:/home/withings-sync/.garmin_session --interactive --tty --name withings-sync ghcr.io/jaroslawhartman/withings-sync:latest --garmin-username=<username> --garmin-password=<password>
$ docker run -v .withings_user.json:/home/withings-sync/.withings_user.json --interactive --tty --name withings-sync ghcr.io/jaroslawhartman/withings-sync:latest --garmin-username=<username> --garmin-password=<password>

Can't read config file config/withings_user.json
User interaction needed to get Authentification Code from Withings!
Open the following URL in your web browser and copy back the token. You will have *30 seconds* before the token expires. HURRY UP!
(This is one-time activity)
https://account.withings.com/oauth2_user/authorize2?response_type=code&client_id=183e03e1f363110b3551f96765c98c10e8f1aa647a37067a1cb64bbbaf491626&state=OK&scope=user.metrics&redirect_uri=https://wieloryb.uk.to/withings/withings.html&
https://account.withings.com/oauth2_user/authorize2?response_type=code&client_id=183e03e1f363110b3551f96765c98c10e8f1aa647a37067a1cb64bbbaf491626&state=OK&scope=user.metrics&redirect_uri=https://jaroslawhartman.github.io/withings-sync/contrib/withings.html&
Token : <token>
Withings: Get Access Token
Expand Down

0 comments on commit 1d174b1

Please sign in to comment.