Peter: I'm already accounting for DST/Summer Time change days in my
code.  See IsDSTChangePending() in Alarms.pm.  In the "spring ahead"
case the plugin already programs the wakeup for an hour earlier than
the alarm set time.  When the system wakes up, the OS resets the system
clock and the SC alarm then sounds at the expected time.  I set the
wakeup time an hour late in the "fall back" case.  So I believe this
aspect is already covered.

I think what I really need to do here is make the scwakeup.sh script a
little more clever as rickwookie suggests.  This is the script that
does the actual programming of the RTC and it's called by the plugin
with the wakeup time expressed as a UTC epoch time.

"hwclock --debug --directisa" will report if the hardware clock is set
to UTC or not.  If not, then hwclock time == localtime, yes?  If so,
then:

# date +%z 

..gives the offset between localtime and UTC.  So then presumably I
should have the script modify the epoch wakeup time by that offset and
then program the RTC accordingly.

The real limitation here is going to be getting all this done using my
piss-poor shell scripting skills.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=62339

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

Reply via email to