- Migrated from websockets to aiohttp for unified HTTP/WebSocket server - Added REST endpoints: /api/pattern, /api/parameters, /api/state, /api/tempo/reset - Implemented color palette API with 8-slot system and selected colors - First selected color (index 0) is used as primary RGB for patterns - All operations now available via simple HTTP requests (no WebSocket needed) - Added comprehensive documentation: FRONTEND_API.md, COLOR_PALETTE_API.md - Added test scripts: test_rest_api.sh, test_color_patterns.py - Updated test/test_control_server.py for new /ws WebSocket path - Configuration persistence via lighting_config.json - Pattern parameters (n1-n4, brightness, delay) controllable via API - WebSocket still available at /ws for legacy support
12 lines
280 B
Bash
12 lines
280 B
Bash
# Lighting Controller Configuration
|
|
CONTROL_SERVER_URI=ws://localhost:8765
|
|
CONTROL_SERVER_HOST=0.0.0.0
|
|
CONTROL_SERVER_PORT=8765
|
|
TRANSPORT=spi
|
|
AUDIO_INPUT_DEVICE=1
|
|
MIDI_TCP_HOST=127.0.0.1
|
|
MIDI_TCP_PORT=65432
|
|
SOUND_CONTROL_HOST=127.0.0.1
|
|
SOUND_CONTROL_PORT=65433
|
|
HTTP_API_PORT=8766
|