Re: Set alarms remotely

I also decided to add a link to the alarm page from the default chumby webpage.

remount / as rw
mount -o remount,rw /

Add Alarm link to default chumby web page
Change Link link in /www/index.html
From: <a href="cgi-bin/wifi">Wireless</a><br>
To: <a href="cgi-bin/wifi">Wireless</a>&nbsp;<a href="cgi-bin/custom/alarms.pl">Alarms</a><br>

remount / as ro
mount -o remount,ro /

Re: Set alarms remotely

Howdy there!
This looks like it could potentially solve my biggest issue with the Infocast 8" - no support for multiple alarms.

I've got the script installed on my Infocast 8" and all set up, but it seems to have an issue with the alarms XML file.
If I run start_control_panel to get the TRACE: messages from flashplayer, after creating a new alarm and enabling it- I get flooded by "undefined _alarmTime" errors.

If I open the alarms GUI on my device, enable then disable the alarm (only alarm that the Infocast supports), it seems to work fine.

Here's a comparison of my "/psp/alarms" file in various stages of alarm enabling and disabling:

Just added Alarm "dfg" from Alarm Web Interface:
(No notifications on device)
------------------------------------------------------
<alarms><alarm when="daily" action_param="" time="601" arg="Nightingale" name="" duration="30" backupDelay="5" auto_dismiss="0" snooze="5" action="none" type="beep" backup="1" param="" enabled="0" param_description="Beep" />
<alarm when="daily" action_param="on" time="0" arg="Beep" name="dfg" duration="1" backupDelay="5" auto_dismiss="0" snooze="9" action="nightmode" type="beep" backup="0" param="" enabled="0" param_description="Play &quot;Beep&quot;" />
</alarms>


Turned on Alarm "dfg" from Alarm Web Interface:
(No notification on device that alarm is active,
 and alarm never fires on device)
------------------------------------------------------
<alarms><alarm action_param="" when="daily" arg="Nightingale" time="601" name="" duration="30" backupDelay="5" auto_dismiss="0" snooze="5" action="none" type="beep" param="" backup="1" param_description="Beep" enabled="0" />
<alarm action_param="on" when="daily" arg="Beep" time="0" name="dfg" duration="1" backupDelay="5" auto_dismiss="0" snooze="9" action="nightmode" type="beep" param="" backup="0" param_description="Play &quot;Beep&quot;" enabled="1" />
</alarms>

Toggle (on/off) Infocast 8" 'Quick Alarm' via Device:
(Alarm2 works now!)
------------------------------------------------------
<alarms><alarm name="" backupDelay="5" backup="1" action_param="" action="none" auto_dismiss="0" param_description="Beep" param="" arg="Nightingale" type="beep" duration="30" snooze="5" enabled="0" time="601" when="daily" />
<alarm name="dfg" backupDelay="5" backup="0" action_param="on" action="nightmode" auto_dismiss="0" param_description="Play &quot;Beep&quot;" param="" arg="Beep" type="beep" duration="1" snooze="9" enabled="1" time="0" when="daily" />
</alarms>

Turned off Alarm "dfg" from Alarm Web Interface:
(Alarm2 is successfully disabled)
------------------------------------------------------
<alarms><alarm when="daily" action_param="" time="601" arg="Nightingale" name="" duration="30" backupDelay="5" auto_dismiss="0" snooze="5" action="none" type="beep" backup="1" param="" enabled="0" param_description="Beep" />
<alarm when="daily" action_param="on" time="0" arg="Beep" name="dfg" duration="1" backupDelay="5" auto_dismiss="0" snooze="9" action="nightmode" type="beep" backup="0" param="" enabled="0" param_description="Play &quot;Beep&quot;" />
</alarms>

Thank you very much for your hard work, and I appreciate any response or insight you might have into this issue.