Because my USB speakers turn off automatically, I created a cron job in “bluetooth-audio” container that plays a 22Khz wav file with aplayer every 10 minutes. But If i’m listening to music this interferes. So I would like to create a scripts that queries if sound is playing in Balena-sound and if so the cron job exits. But I do not how to query if sound is playing. Should I query something from alsa? Or should I grep on the snapcast-client log? And if I have to query snapcast client log how do I connect to the snapcast-client container from " bluetooth-audio" container?
Thanks in advance!