mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
- Add StorePreset, StoreCurrentAsPreset, and RemovePreset methods to client - Create comprehensive preset management CLI with subcommands: * preset store-current --slot N (store currently playing content) * preset store --slot N --source X --location Y (store specific content) * preset remove --slot N (remove preset) * preset select --slot N (select/play preset) * preset list (list all presets) - Fix WebSocket event handling for preset updates: * Correct event type from 'presetUpdated' to 'presetsUpdated' * Update event structure to handle complete preset list * Improve WebSocket demo display for preset events - Add comprehensive test coverage for all new client methods - Fix mock server URL mismatch in tests (/now_playing vs /nowPlaying) - Add proper input validation and error handling - Support all content sources: SPOTIFY, TUNEIN, LOCAL_INTERNET_RADIO, etc. Successfully tested with real SoundTouch device: - Storing Spotify content as presets ✅ - Removing presets ✅ - Real-time WebSocket events ✅ - CLI usability and error handling ✅ Resolves #14 - Complete /storePreset implementation