Commit Graph

4 Commits

Author SHA1 Message Date
Pi User
aa9f892454 Add CONTROL_SERVER_HOST to allow external connections
- Add CONTROL_SERVER_HOST environment variable (default: 0.0.0.0)
- Server now binds to all interfaces by default for external access
- Update .env and .env.example with new host configuration
- Allows UI clients to connect from other machines on the network
2025-10-03 20:24:20 +13:00
Pi User
e78a8727b2 Add .env support for transport and sound device configuration
- Add python-dotenv support to control_server.py and sound.py
- Load TRANSPORT from environment variable (default: spi)
- Load AUDIO_INPUT_DEVICE from environment variable (default: 7)
- Load all port configurations from environment variables
- Update .env.example with comprehensive configuration options
- Create .env file with sensible defaults for Pi
- Transport, sound device, and network settings now configurable via .env
2025-10-03 20:19:55 +13:00
Pi User
fbf4205c87 Update .env.example to use wlan0 IP as default
- Set CONTROL_SERVER_URI to ws://10.42.0.1:8765 (wlan0 IP)
- Better default for remote connections from desktop
- Add comments for localhost and custom IP options
2025-10-03 20:14:19 +13:00
Pi User
8f183b284c Add .env support for test scripts
- Update test_control_server.py to use python-dotenv
- Read CONTROL_SERVER_URI from environment variable
- Create .env.example with configuration examples
- Test scripts now respect .env configuration for WebSocket URI
2025-10-03 20:13:25 +13:00