Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-26 Thread ralphy


rlsx wrote: 
> Thanks, but sigh... 
> How is it supposed to work on a Linux device? A shell script? How is it
> structured for ON-action, and OFF-action?

Yes it's a shell script.  That must have execute permissions and you
need to provide the full path to the script in the -S option.

There's an 'example script'
(https://github.com/ralph-irving/squeezelite/blob/master/tools/gpiopower.sh)
in the squeezelite sources.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-25 Thread rlsx


ralphy wrote: 
> Well, yes but no.  I noticed recently that the power script build option
> was enabled for squeezelite on MacOS by mistake and removed it.
> 
> It doesn't work on MacOS either as the hooks are not in output_pa.c

Thanks, but sigh... 
How is it supposed to work on a Linux device? A shell script? How is it
structured for ON-action, and OFF-action?



rlsx's Profile: http://forums.slimdevices.com/member.php?userid=12092
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-25 Thread ralphy


rlsx wrote: 
> Is the -S option enabled for MacOS? 
> Would the script be just an excutable shell script?
> 
> Many thanks for your extensive work on this, a well as on Jivelite, etc.

Well, yes but no.  I noticed recently that the power script build option
was enabled for squeezelite on MacOS by mistake and removed it.

It doesn't work on MacOS either as the hooks are not in output_pa.c



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-24 Thread rlsx


ralphy wrote: 
> Currently, there are no calls in output_pa.c to run the power script, so
> you can't just enabe the power script build option for windows.
> 
> I tried to add support for -S on windows in the past, however, the power
> script would only ever trigger three times and never again after that.

Is the -S option enabled for MacOS? 
Would the script be just an excutable shell script?

Many thanks for your extensive work on this, a well as on Jivelite, etc.



rlsx's Profile: http://forums.slimdevices.com/member.php?userid=12092
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-23 Thread tonymahoney


Appreciate the reply, I assumed it wasn't straightforward!

In case it's of any interest to anyone, I ended up starting squeezelite
with the basic logging option then using a powershell script to monitor
the log for 'output on' or 'output off' then turn my amp on/off
accordingly (and clear the log so it doesn't get too big). I've run the
powershell script as a service and seems to be working great so far!



tonymahoney's Profile: http://forums.slimdevices.com/member.php?userid=71420
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-21 Thread ralphy


Currently, there are no calls in output_pa.c to run the power script, so
you can't just enabe the power script build option for windows.

I tried to add support for -S on windows in the past, however, the power
script would only ever trigger three times and never again after that.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] Power Script for Windows version of Squeezelite

2021-02-19 Thread tonymahoney


Hi all,

Massively appreciate the hard work everyone puts in to keep this project
alive.

Unless I'm missing something, the windows version of Squeezelite doesn't
have the "-S " option, is this possible to implement in a
future update or is there an alternative way of running a script when
players turn on/off with the windows version?

Thanks, 
Tony



tonymahoney's Profile: http://forums.slimdevices.com/member.php?userid=71420
View this thread: http://forums.slimdevices.com/showthread.php?t=113988

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins