Philip Meyer;383712 Wrote: > >I'm interested in the SN switching. Can it switch a player to SN > before shutdown, and then suck it back to local SC when the next alarm > is due? > > If my server suspends through some other action (eg. I manually suspend > it), it's not been instructed to wake up when the next alarm is due, so > I have to remember to suspend using SvrPowerControl. > > Hence I've continued to use WOSB with it configured to wake up at a set > time each morning. > When my server is suspended and I want to play something at night, I > manually switch to SN. > > I'm wondering how you get the resume from suspend to pull an > SN-connected player back to the local SC. Is this something I can do > from your SCPowerTool command, or via CLI? I could enter that in my > "WOSB program to run upon resume" configuration. > > Phil If "Restore SN connected players" and "Take other action on wakeup" are both enabled, then SrvrPowerCtrl ought to automatically drag back the SN players whenever the server resumes from standby or hibernation, with no intervention or initiation needed from you. If it's failing to do so, try increasing the "seconds to wait before" value.
All this happens from the plugin, not from SCPowerTool (which knows nothing about how to communicate via the CLI). There is no SrvrPowerCtrl CLI extension to initiate this in the current version. You could accomplish this through SC's CLI, however. In terms of how I "get the resume from suspend to pull an SN-connected player back to the local SC", see lines 516 and up in Watchdog.pm...the OnWakeupWatchdog function and lines 351 through 437 in Util.pm...the GetSNPlayers function and the PullFromSqueezeNetwork functions. Of course, to succeed, these functions depend on SC already having made a valid connection to SN...thus the "seconds to wait before" pause before attempting this. For OnWakeupWatchdog to succeed, it depends on SC to service it's timer request in a "timely" fashion after the machine comes out of standby. So far, that's seemed to work very reliably for me. -- gharris999 ------------------------------------------------------------------------ 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 [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
