I've currently got a few Pis set up and powered on all the time. I turn them on and if in LMS as desired depending on where I want music.
I'm trying to find a way to add a button to the GPIO so I can turn the player's state on and off in LMS when I enter a room. All my searches seem to throw up information on physically turning the devices on and off, which I don't really want to do and I'm not entirely sure what the correct terminology is for what LMS calls 'shutdown', since device and Squeezelite don't actually shutdown.
I know I can use 'pcp power on' and 'pcp power off' over SSH so I guess I can fire these from a script, but I can't work out how to find a player's current state in LMS to know whether it needs turning on or off when pressed.
Has anyone tried this and can give me any pointers?
I'm trying to find a way to add a button to the GPIO so I can turn the player's state on and off in LMS when I enter a room. All my searches seem to throw up information on physically turning the devices on and off, which I don't really want to do and I'm not entirely sure what the correct terminology is for what LMS calls 'shutdown', since device and Squeezelite don't actually shutdown.
I know I can use 'pcp power on' and 'pcp power off' over SSH so I guess I can fire these from a script, but I can't work out how to find a player's current state in LMS to know whether it needs turning on or off when pressed.
Has anyone tried this and can give me any pointers?