-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from philosowaffle/master
merge
- Loading branch information
Showing
100 changed files
with
2,604 additions
and
1,364 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
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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,34 @@ | ||
# API File Configuration | ||
|
||
!!! tip | ||
|
||
These settings only apply if you are running an Instance of the API. P2G provides some [recommended config files](https://github.com/philosowaffle/peloton-to-garmin/tree/master/docker/webui) to get you started. | ||
|
||
Some lower level configuration cannot be provided via the web user interface and can only be provided by config file. | ||
|
||
The Api looks for a file named `configuration.local.json` in the same directory where it is run. Below is an example of the structure of this config file. | ||
|
||
```json | ||
{ | ||
"Api": { /** (1)! **/ }, | ||
"Observability": { /** (2)! **/ } | ||
} | ||
``` | ||
|
||
1. Jump to [Api Config Documentation](#api-config) | ||
2. Go to [Observability Config Documentation](observability.md#observability-config) | ||
|
||
## Api Config | ||
|
||
!!! warning | ||
Most people should not need to change this setting. | ||
|
||
```json | ||
"Api": { | ||
"HostUrl": "http://*:8080" | ||
} | ||
``` | ||
|
||
| Field | Required | Default | UI Setting Location | Description | | ||
|:-----------|:---------|:--------|:--------------------|:------------| | ||
| HostUrl | no | `http://localhost:8080` | none | The host and port the WebUI should bind to and listen on. | |
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,30 @@ | ||
# App Settings | ||
|
||
The App Settings provide global settings for the P2G application. | ||
|
||
## Settings location | ||
|
||
| Run Method | Location | | ||
|------------|----------| | ||
| Web UI | UI > Settings > App Tab | | ||
| Windows Exe | UI > Settings > App Tab | | ||
| GitHubAction | Config Section in Workflow | | ||
| Headless (Docker or Console) | Config section in `configuration.local.json` | | ||
|
||
## File Configuration | ||
|
||
```json | ||
"App": { | ||
"EnablePolling": true, | ||
"PollingIntervalSeconds": 86400, | ||
"CheckForUpdates": true | ||
} | ||
``` | ||
|
||
## Settings Overview | ||
|
||
| Field | Required | Default | Description | | ||
|:-----------|:---------|:--------|:------------| | ||
| EnablePolling | no | `true` | `true` if you wish P2G to run continuously and poll Peloton for new workouts. | | ||
| PollingIntervalSeconds | no | 86400 | The polling interval in seconds determines how frequently P2G should check for new workouts. Be warned, that setting this to a frequency of hourly or less may get you flagged by Peloton as a bad actor and they may reset your password. The default is set to Daily. | | ||
| CheckForUpdates | no | `true` | `true` if P2G should check for updates and write a log message if a new release is available. If using the UI this message will display there as well. | |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
# Exercise Types | ||
|
||
```json | ||
Cycling | ||
Outdoor Cycling | ||
BikeBootcamp | ||
TreadmillRunning | ||
OutdoorRunning | ||
TreadmillWalking | ||
OutdoorWalking | ||
Cardio | ||
Circuit | ||
Strength | ||
Stretching | ||
Yoga | ||
Meditation | ||
``` |
Oops, something went wrong.