2022-10-19, 16:53
Hi everyone !
I use a Raspberry Pi4 with a justboom DAC Hat and Leia, works great.
I have a tube amp that I switch on and off with a relay and a GPIO of the Pi.
I have two ways to do that : the first with an extral unlatched swtich connected to a GPIO and the second with my phone. Both exectutes some python scripts, no problem.
Now a want the use the audioprofiles addon to do it automatically. I can switch off with the idle event, that's ok.
But to turn it on, I want to execute the task only when audio files are played back, not with movies for example.
What's the best way to do that ?
Regards.
I use a Raspberry Pi4 with a justboom DAC Hat and Leia, works great.
I have a tube amp that I switch on and off with a relay and a GPIO of the Pi.
I have two ways to do that : the first with an extral unlatched swtich connected to a GPIO and the second with my phone. Both exectutes some python scripts, no problem.
Now a want the use the audioprofiles addon to do it automatically. I can switch off with the idle event, that's ok.
But to turn it on, I want to execute the task only when audio files are played back, not with movies for example.
What's the best way to do that ?
Regards.