Hello everyone!
I would like to ask for your help with the following:
Long story short:
Is there a way to access information over WebSocket about whether an Android, iOS, or web client has connected to the Volumio server?
Long version:
I’m new to the Volumio community. Over the past month, I put together an audio player using a Raspberry Pi 3B and a Khadas Tone Board. The setup includes a toroidal transformer and two stabilized power supplies in the enclosure. The Tone Board’s power supply only turns on when the Pi starts and 5V appears on the USB output. I use the Amplifier Switch plugin to power on the amplifier, and the Rotary Encoder II plugin manages an EC11 rotary encoder. The Amplifier Switch controls an SSR via GPIO, which is installed inside the amplifier. Everything works well, and I’m grateful to the developers!
However, I also have an SMSL DL200 DAC, which has noticeably better sound quality. I’d like to switch to using this DAC instead of the Tone Board, but I don’t want to turn the DAC on and off manually. I need automated switching, similar to what I have with the amplifier. Unfortunately, the Amplifier Switch solution isn’t viable here because, understandably, Volumio throws an error when playback is attempted but the DAC isn’t yet accessible.
I tried researching what information can be accessed via WebSocket. In my opinion, a good DAC activation trigger could be when an Android/iOS/web client connects to the Volumio server. So far, however, I haven’t been able to retrieve this information over WebSocket. Does anyone have a solution or suggestion for this? Volumio runs 24/7, and music playback is controlled from phones or tablets, with only the rotary encoder and push button on the player itself.
Thank you in advance for any responses!
br
csuti