While we can have up to 65,535 different alarm
types, in our example we only have two: 'One shot' and
'Daily.' You might want others such as 'Weekly' that
would activate once per week, or perhaps 'On event' that
creates an alarm to activate at a specific duration after an
input (maybe you have a rain detector and you set an
alarm to go off in two hours to check a rain gauge, then
you get a tweet with the value). There are endless
possibilities, and as I've said before, you have the source
code to add whatever you like.
How to Set an Alarm
In order to set an alarm, first open the dropdown box
■ FIGURE 9. Select the alarm.
■ FIGURE 11.
Select the date.
and click on the desired alarm as shown in Figure 9.
Next, we open the alarm type dropdown box and
select either One shot or Daily as shown in Figure 10.
Now, we click on the calendar selector as shown in
Figure 11. By the way, this really shows the power of
using something like C# since all one has to do is drag
and drop this component, click, click, and you've go a
powerful graphical element at your disposal.
Finally, we select the time as shown in Figure 12 and
then click the 'Set Alarm' button. The alarm is now set.
Well, that was certainly easy, and, of course, you've
got all the source code at your disposal.
■ FIGURE 10. Select the alarm type.
■ FIGURE 12. Select the time.
February 2013 63