-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c00835d
commit 6fbe9c9
Showing
3 changed files
with
156 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Environment Variables | ||
|
||
|
||
MyWhoop uses environment variables to configure the application. The environment variables are used to configure the Whoop API client and other integrations such as notifications. | ||
|
||
### Order Of Precendence | ||
|
||
The order of precendence is as follows. | ||
|
||
1. CLI flags. | ||
2. Environment Variables | ||
3. Configuration File | ||
|
||
|
||
## MyWhoop Variables | ||
|
||
The following environment variables are used to configure MyWhoop. The two required variables are `WHOOP_CLIENT_ID` and `WHOOP_CLIENT_SECRET`. | ||
|
||
|
||
| Variable | Description | Required | | ||
|---|----|---| | ||
| `WHOOP_CLIENT_ID` | The client ID for your Whoop application. | Yes | | ||
| `WHOOP_CLIENT_SECRET` | The client secret for your Whoop application. | Yes | | ||
| `WHOOP_CREDENTIALS_FILE` | The file path to the Whoop credentials file that contains a valid Whoop authentication token. Default value is `token.json`. | No | | ||
|
||
|
||
### Notification Variables | ||
|
||
Depending on the notification service you use, you may need to provide additional environment variables. | ||
|
||
| Variable | Description | Required | | ||
|---|----|---| | ||
| `NOTIFICATION_NTFY_AUTH_TOKEN`| The token for the [Ntfy](https://docs.ntfy.sh/) service. Required if the ntfy subscription requires a token. | No | | ||
| `NOTIFICATION_NTFY_PASSWORD` | The password for the ntfy subscription if username/password authentication is used. Required if the ntfy subscription requires a username and password. | No | | ||
|