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
This commit is contained in:
Pi User
2025-10-03 20:19:55 +13:00
parent fbf4205c87
commit e78a8727b2
6 changed files with 68 additions and 11 deletions

View File

@@ -13,6 +13,7 @@ python-rtmidi = "*"
pyaudio = "*"
aubio = "*"
websocket-client = "*"
python-dotenv = "*"
[dev-packages]