(11-09-2019, 10:34 AM)tristanc Wrote:(11-04-2019, 02:06 PM)Tim Curtis Wrote: One new feature added :-)
Code:- NEW: Option to wake the display when audio starts playing
Tim - how has this been implemented? Is it a watch script for the mpd status changing or something being added when play is clicked etc?
If it's a watch script I could move my amp control script from 'external' and bolt it on to the internal moode one. Rather than running two.
Tristan
Answering my own question I see it's a watch script monitoring the hw_params file. So this should work with AirPlay.
How about adding a GPIO input field and toggling the GPIO value along in a similar manner to the display? Call it "Amp control" or "Relay Control" with its own selector, just like the wake display option?
Although I see an issue with this - the "sleep 6" means your amp would switch off after ~6 seconds on hitting pause - which wouldn't be ideal and changing 6 to 120 would impact on the rest of moode. Hmm. Hopefully two processes reading the hw_params file won't impact anything.