mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 16:46:17 +00:00
- Implement HTTP client with XML support for SoundTouch Web API - Add UPnP device discovery with SSDP protocol - Create type-safe Go models for API responses - Build CLI tool with device discovery and info commands - Add comprehensive configuration management via .env and env vars - Include extensive documentation (API endpoints, patterns, development guide) - Translate all German documentation to English - Set up modern Go project structure with testing framework - Add Makefile for cross-platform builds and development workflow Features: ✅ Device discovery (UPnP + manual configuration) ✅ Device information retrieval ✅ XML request/response handling ✅ CLI interface with flexible device targeting ✅ Cross-platform compatibility ✅ Comprehensive test coverage with mock data ✅ Production-ready configuration management
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Bose SoundTouch Configuration
|
|
# Copy this file to .env and customize for your setup
|
|
|
|
# Discovery Settings
|
|
DISCOVERY_TIMEOUT=5s
|
|
UPNP_ENABLED=true
|
|
|
|
# HTTP Client Settings
|
|
HTTP_TIMEOUT=10s
|
|
USER_AGENT="Bose-SoundTouch-Go-Client/1.0"
|
|
|
|
# Cache Settings
|
|
CACHE_ENABLED=true
|
|
CACHE_TTL=30s
|
|
|
|
# Preferred Devices Configuration
|
|
# Format: name@host:port;name@host:port;...
|
|
# - name is optional (will default to "SoundTouch-{host}")
|
|
# - port is optional (will default to 8090)
|
|
# - Multiple devices are separated by semicolons
|
|
|
|
# Examples:
|
|
# Single device with default port:
|
|
# PREFERRED_DEVICES="192.168.1.100"
|
|
|
|
# Single device with custom name:
|
|
# PREFERRED_DEVICES="Living Room@192.168.1.100"
|
|
|
|
# Single device with custom port:
|
|
# PREFERRED_DEVICES="192.168.1.100:8091"
|
|
|
|
# Multiple devices with mixed configurations:
|
|
PREFERRED_DEVICES="Living Room@192.168.1.100:8090;Kitchen@192.168.1.101;192.168.1.102:8091"
|
|
|
|
# Real example based on your devices:
|
|
# PREFERRED_DEVICES="Sound Machinechen@192.168.1.35;My SoundTouch Device@192.168.1.100"
|
|
|
|
# Alternative format examples:
|
|
# PREFERRED_DEVICES="192.168.1.35;192.168.1.100"
|
|
# PREFERRED_DEVICES="SoundTouch 10@192.168.1.35;SoundTouch 20@192.168.1.100"
|