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 <Power Script>" 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
Results 1 to 7 of 7
-
2021-02-19, 13:06 #1
- Join Date
- Feb 2021
- Posts
- 2
Power Script for Windows version of Squeezelite
-
2021-02-21, 05:20 #2
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 donations always appreciated.
-
2021-02-23, 01:32 #3
- Join Date
- Feb 2021
- Posts
- 2
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!
-
2021-02-24, 05:52 #4
- Join Date
- Jun 2007
- Location
- Paris, France
- Posts
- 88
-
2021-02-25, 05:02 #5Ralphy
1-Touch, 5-Classics, 3-Booms, 2-UE Radio
Squeezebox client builds donations always appreciated.
-
2021-02-25, 14:30 #6
- Join Date
- Jun 2007
- Location
- Paris, France
- Posts
- 88
-
2021-02-26, 04:54 #7
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 in the squeezelite sources.Ralphy
1-Touch, 5-Classics, 3-Booms, 2-UE Radio
Squeezebox client builds donations always appreciated.