Interesting musings.  I would suggest you pose these questions to Ben,
Michael and Richard over on the  SqueezeOS Software Platform forum.  I
guess it boils down to this: can the server "push" info to a lua applet
on the SBC, or does the applet need to request the data?  

We do already know two things:  a lua applet running on the SBC has
read access to the SBC's rtc (clock screen saver applet) and it has
access to the SBC's system ether-wake command (wol actions triggered
when a browse is attempted with no server connection.)

I suppose one initial way this could be implemented is by modifying the
SBC's "Screen off" screen saver.  Whenever the ss becomes active, it
asks the server for the relative time to the next alarm.  The ss would
then start counting down and then send the wol at the expiration of the
interval, minus 5 minutes or whatever.  This would be, I think, a
relatively easy "proof of concept" first approach.

But really, IMHO, this ought to be a basic part of both SC and the SBC:
1). "next_alarm_time" and "time_to_next_alarm" as part of the basic CLI
on SC and 2). awareness of the next alarm time and ability to send a
timely wol on the SBC.  There really doesn't need to be any sort of UI
for this feature at all.  It should "just work."  You've done the
conceptual heavy lifting here.  Do you want to file enhancement
requests?

I'll try to get your alarm code incorporated into SrvrPowerCtrl as soon
as I can.  I'll add "next_alarm_time" and "time_to_next_alarm" CLI
interfaces to send the absolute next alarm time and the relative next
alarm time so that we can start playing with that.

I'll be stuck in Atlanta for the week, so it will most likely be two
weeks before I can knock something out.


-- 
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

Reply via email to