rickwookie;416586 Wrote:
> One question regarding the settings - why do I need to have at least 15
> seconds wait after SqueezeCenter startup before the players are pulled
> back from SqueezeNetwork. Surely SqueezeCenter can't do the action (or
> get the plugin to do the action) until it is up and running and ready
> to have players attached.
SqueezeCenter, if asked, will happily try to do all kinds of things
before it's ready to actually do them. The wait is in there for
SqueezeCenter (not SrvrPowerCtrl) to "find" SqueezeNetwork and complete
some queries. Go into SC Settings->Advanced->Logging and set
(network.squeezenetwork) to DEBUG and restart SqueezeCenter.
On my system, I get log entries like:
Code:
--------------------
[09-04-19 11:47:33.1922] main::init (270) Starting SqueezeCenter (v7.3.3,
rTRUNK, UNKNOWN)
[09-04-19 11:47:38.7129] Slim::Networking::SqueezeNetwork::init (80)
SqueezeNetwork Init
[09-04-19 11:47:51.7136] Slim::Networking::SqueezeNetwork::_login_done (446)
Logged into SN OK
[09-04-19 11:47:51.7140] Slim::Networking::SqueezeNetwork::_init_done (127)
Got SqueezeNetwork server time: 1240163269, diff: -2
[09-04-19 11:47:51.7791] Slim::Networking::SqueezeNetwork::Stats::init (33)
SqueezeNetwork stats init
[09-04-19 11:47:53.7314]
Slim::Networking::SqueezeNetwork::PrefSync::_init_done (54) Got list of SN
prefs to sync: 36 prefs
[09-04-19 11:47:53.7471]
Slim::Networking::SqueezeNetwork::Players::_players_done (93) Got list of SN
players: []
--------------------
So for my system, it took 20 seconds from SC startup until SC had
gotten the list of players from SN. It never seems to go any quicker
than that, at least for me. If your server is waking up from suspend,
the amount of time it takes for your network interface to come back up
only adds to that time. With my ISP, the minimum safe time to wait
until trying to pull players back from SN is 45 seconds.
It would be nice if this could be automated, but there doesn't seem to
be any way for SrvrPowerCtrl to know if SqueezeCenter is "ready" to
interact with SqueezeNetwork. Ideally, there would be 'squeezenetwork'
events in SC to which SrvrPowerCtrl could subscribe and get status
notifications. But there aren't, AFAIK. So all that I really have to
work with here is a stupid (though user configurable) wait time.
If you really, really want to try experimenting with values less than
15, manually edit the srvrpowerctrl.prefs file and change the
nRetrievePlayersFromSNWait: 15 value to something smaller.
--
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/mailman/listinfo/plugins