Trigger script on power on/off event of squeezelite

Max2Play Home 2016 (en) Forums Max2Play as Squeezebox (Player / Server) Trigger script on power on/off event of squeezelite

This topic contains 5 replies, has 3 voices, and was last updated by  Heiner Moderator 6 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • 12. November 2017 at 17:54 #32433

    Hi

    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 11 months, 1 week ago by  e00mei.
    14. November 2017 at 17:16 #32485

    Hi Martin,

    You might have used an older version of Squeezelite on Max2Play.

    Please try using our own compiled one which should be Squeezelite Max2Play v1.0.3 based on v1.8.7-999

    30. März 2018 at 19:58 #34914

    Hi,

    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?

    Greetings,
    Magnum

    4. April 2018 at 10:19 #34959

    Hi Magnum,

    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.

    4. April 2018 at 19:01 #34983

    Hi Heiner,

    which plugin do you mean. Here https://www.max2play.com/addons/ is no plugin named „voice control“.

    Greetings,
    Magnum

    5. April 2018 at 11:32 #34995

    Hi Magnum,

    Sorry I was unclear, it’s called Speech Control in our overview, here’s the link.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Register here