Is it possible to make max2play, squeeelite player trigger a script when it receives a power on or off event from the server?
I have tested the /Audioplayer/squeezelite/advanced options/Command Line Options/ with „-S /opt/squeezelite/power.sh“ but squeezelite fails to start then due to a problem to initiate WiringPi… From the source I cannot understand why this would happen.
I compiled a my own squeezelite-rpi and replaced the max2play version an dthen it worked.
Seems like a bug..
Br
Martin
This topic was modified 7 years, 1 month ago by e00mei.
the -S-option works fine with the version of squeezelite, which comes with max2play. But I would like to know which kind of event (on or off) it is. Is there any way to determine the current state of squeezelite? Maybe by asking the squeezebox server LMS?
Check out the voice control plugin. There’s a command to check the status of a player as well as some other CLI commands listed that might help you along.
I just wanted to add the information, that the powerstate is in $1 as 1 (on) or 0 (off).
Don’t know, if any other parameters are given.
I looked for this little piece of information a long time before finding it.
Might be obvious to many people, but I would have loved to find it here, because this thread shows up on top for the -S parameter
Thanks for chiming in and adding this info! We recently published the new, free plugin API-Examples that expands upon the info given in our discontinued Voice Control Plugin. It comes preinstalled from version 2.47 in the inactive plugins section under Settings/Reboot.