Some checks failed
Validate / validate (push) Failing after 1m6s
This is a complete WLED ambient lighting controller that captures screen border pixels and sends them to WLED devices for immersive ambient lighting effects. ## Server Features: - FastAPI-based REST API with 17+ endpoints - Real-time screen capture with multi-monitor support - Advanced LED calibration system with visual GUI - API key authentication with labeled tokens - Per-device brightness control (0-100%) - Configurable FPS (1-60), border width, and color correction - Persistent device storage (JSON-based) - Comprehensive Web UI with dark/light themes - Docker support with docker-compose - Windows monitor name detection via WMI (shows "LG ULTRAWIDE" etc.) ## Web UI Features: - Device management (add, configure, remove WLED devices) - Real-time status monitoring with FPS metrics - Settings modal for device configuration - Visual calibration GUI with edge testing - Brightness slider per device - Display selection with friendly monitor names - Token-based authentication with login/logout - Responsive button layout ## Calibration System: - Support for any LED strip layout (clockwise/counterclockwise) - 4 starting position options (corners) - Per-edge LED count configuration - Visual preview with starting position indicator - Test buttons to light up individual edges - Smart LED ordering based on start position and direction ## Home Assistant Integration: - Custom HACS integration - Switch entities for processing control - Sensor entities for status and FPS - Select entities for display selection - Config flow for easy setup - Auto-discovery of devices from server ## Technical Stack: - Python 3.11+ - FastAPI + uvicorn - mss (screen capture) - httpx (async WLED client) - Pydantic (validation) - WMI (Windows monitor detection) - Structlog (logging) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
43 lines
986 B
YAML
43 lines
986 B
YAML
server:
|
|
host: "0.0.0.0"
|
|
port: 8080
|
|
log_level: "INFO"
|
|
cors_origins:
|
|
- "*"
|
|
|
|
auth:
|
|
# API keys are REQUIRED - authentication is always enforced
|
|
# Format: label: "api-key"
|
|
api_keys:
|
|
# Generate secure keys: openssl rand -hex 32
|
|
# IMPORTANT: Add at least one key before starting the server
|
|
# home_assistant: "your-secure-api-key-1"
|
|
# web_dashboard: "your-secure-api-key-2"
|
|
# monitoring_script: "your-secure-api-key-3"
|
|
|
|
processing:
|
|
default_fps: 30
|
|
max_fps: 60
|
|
min_fps: 1
|
|
border_width: 10 # pixels to sample from screen edge
|
|
interpolation_mode: "average" # average, median, dominant
|
|
|
|
screen_capture:
|
|
buffer_size: 2 # Number of frames to buffer
|
|
|
|
wled:
|
|
timeout: 5 # seconds
|
|
retry_attempts: 3
|
|
retry_delay: 1 # seconds
|
|
protocol: "http" # http or https
|
|
max_brightness: 255
|
|
|
|
storage:
|
|
devices_file: "data/devices.json"
|
|
|
|
logging:
|
|
format: "json" # json or text
|
|
file: "logs/wled_controller.log"
|
|
max_size_mb: 100
|
|
backup_count: 5
|