mvordeme;619549 Wrote: > This could be fixed by iterating the boxes twice, powering them all down > on the first pass, and only then pushing them to mysqueezebox. The code, as it currently stands performs two iterations. 1st, it powers off all locally attached players one by one. On the 2nd iteration, it pushes each player (again, one by one) onto the alternate server using $curclient->execute(['connect', $szAltServerIP]); Immediately after making the 'connect' request, the code then sets a timer for 15 + n seconds in the future. When the timer fires, the code sends a JSON request to the alt server requesting a [ $client_id, ['power', '0'] ]. As the code iterates through the player list, n is increased by 4 seconds for each player.
If you have the 'Alternate server delay time' in the SrvrPowerCtrl settings set too low, it's possible that the local server gets put to sleep before the timers fire. I don't sync my players, so this isn't something that I've tested. I could try developing code that would unsync on push and resync on fetch. I don't really have any idea how tricky this might be. mvordeme;619549 Wrote: > No. I have already switched it off. Every time a synchronized player is > pushed back to mysqueezebox, the synchronization settings are carried > over. After that has happened, it is difficult to get rid of the > synchronization again, and yes, it includes unsynchronizing them > locally and on mysqueezebox, but in my experience, you need to pick the > same box you initiated the synchronization from. It is all rather > messy. > > *P.S.:* On second thoughts, should I consider this a bug and report it?Do you > mean a bug with SrvrPowerCtrl or with Squeezebox Server? If I could make it so that things went: unsync, power-off, push remote-power-off, sleep, wake, fetch, resync ..would you think that that would solve the problem? -- 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
