Initial commit

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn
2026-02-10 11:47:49 +01:00
commit f496eebe2a
17 changed files with 1835 additions and 0 deletions

22
config.example.yaml Normal file
View File

@@ -0,0 +1,22 @@
# Zwift Activity Monitor Configuration
# Copy this file to config.yaml and fill in your credentials
# Authentication (prefer environment variables for security)
username: "" # Or set ZWIFT_USERNAME
password: "" # Or set ZWIFT_PASSWORD
# Storage paths
output_dir: /data/activities # Directory for FIT files
state_file: /data/zwift-state.json # State persistence file
token_cache: /data/.zwift-token.json # OAuth token cache
# Monitoring configuration
poll_interval: 5m # How often to check for new activities (e.g., 5m, 10m, 1h)
# API configuration
rate_limit: 5 # Maximum requests per second to Zwift API
max_retries: 3 # Number of retries for failed API calls
# Logging configuration
log_level: info # Logging level: debug, info, warn, error
log_file: "" # Optional: path to log file (empty = stdout only)