Simon_rb wrote: 
> Hi, that's exactly what I'd like to do. When I shutdown externally using
> domoticz it doesn't seem to transfer the players over to the alternate
> server. Just wondered the easiest way to run your "shutdown to alternate
> server" via a script. My apologise for not making it clear. I can send
> commands to the players to turn them off, and I think that's using CLI..
> Just didn't know how to activate your shutdown to alternative server
> function.

There is no "shutdown_to" SrvrPowerCtrl CLI command, per se.  You'll
need to 1st configure the alternate server to shut down to on
SrvrPowerCtrl's setup page.  This can be mysqueezebox.com or another
machine running LMS or a tinySC running on a SBTouch.  Just select the
alternate server you want to use from the drop-down list.  To start
with, enable all the checkboxes in the Alternate Server section: Switch
ALL players; Unsync players; Request power-off; Push on external.  Also,
in the On-wakeup Actions section, check all the checkboxes there too:
Restore Alternate Server connected players; Restore forcefully.

Save those settings.

Now, on your other machine that will execute your CLI script, create a
script something like:

srvrpowerctrl_shudown.sh:

Code:
--------------------
    
  #!/bin/sh
  
  # SrvrPowerCtrl cli script
  
  # Fix this up to the real ip of your LMS server
  LMS_IP=192.168.1.123
  
  
  # Pick one of these actions..
  ACTION='shutdown'
  #ACTION='suspend'
  
  printf "srvrpowerctrl ${ACTION}\nexit\n" | nc -w1 $LMS_IP 9090
  
  
--------------------


If you have configured things correctly, when the LMS server shutsdown
or suspends, SrvrPowerCtrl should push all the attached players over to
the alternate server.


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

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

Reply via email to