I have PiMusicBox running on a RPi Zero. Sound is output via a USB soundcard to an amplifier module and from there to flushmount speakers. The speakers buzz and crackle when there is nothing playing, especially when theres a cell phone call or the like nearby so I put the amp modual on a wifi relay and can now turn on and off the speakers with
I’d like to have the webclient turn on the speakers just before it starts playing and turn them off after n minutes of no playing.
Turning on seems simpler, just a matter of sticking the GET request into the player, but I have no idea how to implement that.
Turning off after n minutes of no playing I imagine is more complex.
I’m an amature coder and not very proficient in python, js, or html but I can follow intructions.
I’m running a fairly old version of musicbox, running in python2.7
The path to my instalation is /usr/local/lib/python2.7/dist-packages/mopidy_musicbox_webclient
Can anyone help me implement this?