Im building a Raspberry Pi into an old Tandberg SS12 case to create an audio player out of it. The radio originally has a backlit blue glass in front which I would like to recreate. I have added a led-strip which Im able to turn on and off using GPIO. However, if no music have been played for a while (i.e a minute) I would like to turn the led strip off. And if music is started playing I would like to turn it back on.
I did something similar a few years back on volumio checking for some files in
/proc. But now I would like to add this functionality in a container in BalenaOS.
So, is there any way from one container to detect if audio is currently beeing played?