gharris999;353485 Wrote: 
> epoch1970:
> 
> Actually, I think there is an much easier way to switch a player back
> from squeezenetwork -- via the cli:
> 
> disconnect $macaddr www.squeezenetwork.com
> 
> But what you propose seems like a very useful feature.  I'm going to
> try to implement this in the next version.

Of course. This is what I am using. "disconnect" slams the player back
at SC (and then the SBR goes into a tailspin :) and interrupts any
activity was going on on SN at that time. It even interrupts a ringing
alarm, which is very counter-productive given my original intention.
That's why I was suggesting looking into Netcontrol to avoid
interrupting a stream or an alarm (player is in mode "play" during an
alarm). Waiting to switch back when too close of a pending alarm is ok
I guess, but I to my surprise I didn't find the alarm duration
preference in the CLI response about alarms. I lazily choose to wait an
arbitrary 5 minutes pas alarm time, that's not too good.

BTW, the getalarms.pl routine I posted some days ago fails to work
properly on weeks where DST time changes :( 
I don't know how to repair that, DST rules are awkward (here in France
on the 26 @ 3AM it was 2AM again.)  Perhaps Date::Calc can handle that;
that code is good for the trash I'm afraid.


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

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to