Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
I'm having 2nd thoughts about trying to implement this right away. I think I ought to wait until I'm back home with a stable network to work with. In the mean time, the new SrvrPowerCtrl custom commands ought to provide some support for this. -- gharris999 gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
gharris999;476732 Wrote: > I have some questions for you regarding parseFields() from KidsPlay. > Are you willing to entertain them here? Sure, or in email, either way. -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
peterw;476703 Wrote: > Great! > > For TinySC, I think what would work best for me is a combination of a > 1) plugin that would offer the "Wake Up" menu (so it would be available > on the TinySC Touch, the Controllers, and all our IP3K players and 2) a > UI-free Lua applet that subscribes to notifications from the plugin and > sends the WOL packets. Anyone with multiple SqueezePlay devices would > then have all their SP gear sending WOL packets, which should help wake > the server reliably even on networks with bridges and weird > segmentation. I really need to learn xmlbrowse menuing, as that seems > like the best way to present menus on all SB interfaces. Re xmlbrowse: I hear you. I've been procrastinating with learning that. I have some questions for you regarding parseFields() from KidsPlay. Are you willing to entertain them here? -- gharris999 gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
gharris999;476464 Wrote: > > If I add the 'alternate msb ip address' feature, then the yank-back > could happen in all instances. > > I think I'll go ahead and the user-settable alternate server setting > now. I'll have to change a fair amount of code, strings and the > settings page to support this, but it's entirely doable. Great! For TinySC, I think what would work best for me is a combination of a 1) plugin that would offer the "Wake Up" menu (so it would be available on the TinySC Touch, the Controllers, and all our IP3K players and 2) a UI-free Lua applet that subscribes to notifications from the plugin and sends the WOL packets. Anyone with multiple SqueezePlay devices would then have all their SP gear sending WOL packets, which should help wake the server reliably even on networks with bridges and weird segmentation. I really need to learn xmlbrowse menuing, as that seems like the best way to present menus on all SB interfaces. -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
peterw;476445 Wrote: > That all sounds great, thanks! > > > > I think I wouldn't need to do that in my scenario, though. TinySC > should always be running (and why not, considering SB Touch uses less > electricity than an SB Classic), happily serving clients when > SrvrPowerCtrl sends them to TinySC, and willingly relinquishing them > when FatSC starts up and SrvrPowerCtrl pulls them back to the main > server, right? The FatSC SrvrPowerCtrl install could handle both > pre-shutdown pushes and post-startup pulls, right? I think the only > extra logic I'd want on TinySC is something to handle waking up the > FatSC server at appropriate times. Maybe that's every time someone turns > a player "on", or maybe that requires a more deliberate action. It's that last aspect that I was thinking of. Presumably, you could install SrvrPowerCtrl on TinySC and disable almost all of it's features and menu items, leaving one custom menu item pointing at your 'wake-master' script. Just a (relatively) painless way to be able to execute that script from the Touch's menu. Really, what's required here is either a rewrite of KDF's execute script plugin for the Touch, or a severely cut-down version of SrvrPowerCtrl that dispenses with all the power-saving stuff, or a WOL Lua app for the Touch. Perhaps that last would be the best bet: no mucking around with ssh-ing into the Touch...just include an settings interface in the app to save descriptive labels and mac addresses. On FatSC, if the master is coming back from suspend or hibernation, SrvrPowerCtrl can automatically execute a custom script on wake-up which could yank your players back. However, it currently doesn't do this on an initial boot-up. If I add the 'alternate msb ip address' feature, then the yank-back could happen in all instances. I think I'll go ahead and the user-settable alternate server setting now. I'll have to change a fair amount of code, strings and the settings page to support this, but it's entirely doable. -- gharris999 gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
gharris999;476272 Wrote: > If wanting to push players at TinySC becomes a popular pursuit, perhaps > I can add an option in the settings to specify an alternate server. > > But for now, you'll be able to do exactly what you want using cli > commands in scripts called by SrvrPowerCtrl on user initiated or idle > events. SrvrPowerCtrl now includes a feature whereby a custom script > can be called on an 'external' shutdown event...i.e. if the server goes > down for any reason (power button, external script, etc) other than a > SrvrPowerCtrl action. So you could still count on your players getting > pushed to TinySC no matter what brings the master server down. That all sounds great, thanks! > Using SrvrPowerCtrl on TinySC will present a bit more of a challenge. I think I wouldn't need to do that in my scenario, though. TinySC should always be running (and why not, considering SB Touch uses less electricity than an SB Classic), happily serving clients when SrvrPowerCtrl sends them to TinySC, and willingly relinquishing them when FatSC starts up and SrvrPowerCtrl pulls them back to the main server, right? The FatSC SrvrPowerCtrl install could handle both pre-shutdown pushes and post-startup pulls, right? I think the only extra logic I'd want on TinySC is something to handle waking up the FatSC server at appropriate times. Maybe that's every time someone turns a player "on", or maybe that requires a more deliberate action. -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
OK, I see that others are talking about this now too (having Touch+TinySC serve as a SBS for other players.) Right now, the 'XXX to mysqueezebox.com' functions are all hard-coded to push players at whatever server Slim::Networking::SqueezeNetwork->get_server('sn') returns. If wanting to push players at TinySC becomes a popular pursuit, perhaps I can add an option in the settings to specify an alternate server. But for now, you'll be able to do exactly what you want using cli commands in scripts called by SrvrPowerCtrl on user initiated or idle events. SrvrPowerCtrl now includes a feature whereby a custom script can be called on an 'external' shutdown event...i.e. if the server goes down for any reason (power button, external script, etc) other than a SrvrPowerCtrl action. So you could still count on your players getting pushed to TinySC no matter what brings the master server down. -- gharris999 gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
peterw;476254 Wrote: > Can SrvrPowerCtrl be configured to switch players to an alternate local > server when the master server shuts down? I haven't used SrvrPowerCtrl > yet, mainly because my current DVR/Squeeze server doesn't support WOL. > But I also would not want to switch to SqueezeNetwork/MySqueezebox -- > mainly because I'm addicted to SuperDateTime on my SB Classics. > > I'm building a new server, and revisiting the possibility of using > SrvrPowerCtrl. I'd love it if I could run a second instance of SC/SBS on > a lower power machine (probably a SB Touch running SBS 7.5 on which I > would install a few must-have plugins like SuperDateTime and Auto Dim) > and have SrvrPowerCtrl push all the players to that SBS instance when > the main server shuts down. I'd then use the SrvrPowerCtrl custom menus > to give myself an option to wake up the "big" server and pull the > clients back to it. Yes, this is possible now. You can 'roll your own' shutdown script that includes cli commands to send whatever players you want onto whatever server you want. Fetching them back when the master server wakes up will involve a similar custom script with cli commands. This is very doable now. You just have to write the scripts. What OS do you intend to run on the new server? I should say, however, that I'm not entirely sure that the TinySC built into the touch will be able to serve as a SBS for other players. If you've heard otherwise, you are better informed than I am. -- gharris999 gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] SrvrPowerCtrl - switch to an alternate local server?
Can SrvrPowerCtrl be configured to switch players to an alternate local server when the master server shuts down? I haven't used SrvrPowerCtrl yet, mainly because my current DVR/Squeeze server doesn't support WOL. But I also would not want to switch to SqueezeNetwork/MySqueezebox -- mainly because I'm addicted to SuperDateTime on my SB Classics. I'm building a new server, and revisiting the possibility of using SrvrPowerCtrl. I'd love it if I could run a second instance of SC/SBS on a lower power machine (probably a SB Touch running SBS 7.5 on which I would install a few must-have plugins like SuperDateTime and Auto Dim) and have SrvrPowerCtrl push all the players to that SBS instance when the main server shuts down. I'd then use the SrvrPowerCtrl custom menus to give myself an option to wake up the "big" server and pull the clients back to it. -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=70206 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins