Change: Added persistent path to store OAuth tokens.

This commit is contained in:
2025-12-24 15:48:06 +01:00
parent 068f5e2d6f
commit ab324ed97b
3 changed files with 22 additions and 4 deletions

View File

@@ -16,7 +16,18 @@ This directory contains the configuration for a set of services that fetches dat
```bash
docker-compose run --rm garmin-fetch-data
```
Enter your 2FA code when prompted. The tokens will be saved to the `garminconnect_tokens` volume.
Enter your 2FA code when prompted. The tokens will be saved to the `./garminconnect_tokens` folder.
> **Server Console (Komodo/Portainer):**
> If you can SSH into your server but don't know where Komodo stores the stack files:
> 1. Create a permanent directory for tokens: `mkdir -p /opt/garmin/tokens`
> 2. Run the generator manually, mounting this directory:
> ```bash
> docker run --rm -it -v /opt/garmin/tokens:/home/appuser/.garminconnect thisisarpanghosh/garmin-fetch-data:latest
> ```
> 3. Enter your 2FA code.
> 4. In Komodo/Portainer, configure your stack's "Environment Variables" to set the `GARMINCONNECT_TOKENS` variable to the path of the tokens folder.
4. Run `docker-compose up -d` to start the application.
## Setup & Access