|
Steampunk clock/calendar part 16 - it's alarming... |
|
|
|
Saturday, 04 December 2010 |
|
{mmsimg mmsblog_00055_01.png dockIcon.png}
Currently working on the alarm system. The barebones of it are present,
I just need to pull them together. To store the alarms I am using hidden
preference fields. I only need to store five pieces of data so it is not
necessary to write the data to a file of any sort. The program will
check for the presence of any alarms on startup and then every second
while the clock runs.
{mmsimg mmsblog_00057_02.png flag05.png}
If the set time has past and an alarm has not
already been raised then the alarm will ring.
The widget currently records times and raises alarm flags on startup.
The only thing it doesn't do is ring an alarm. I'll test that tomorrow.
I have also increased the number of messages allowed on screen from 11 to 15
{mmsimg mmsblog_00057_01.png bellSet.png}
A new item needs to be added to the list of things to be done. I need to
measure the chimes and calculate when the full chime is to be played. I
completely forgot that the chime happens prior to the hour and that the
final bell toll indicates the hour itself >doh<
A bit of tidying up and I'll release it as version 0.15.
|