View Single Post
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#520
I call a shell script from alarmed to create an internet clock radio.

The first part of the script sets a "safety alarm" - it sets a one time only N900 alarm for 30 minutes from the present time, in case the internet radio station is not broadcasting, or the wireless connection has failed, or whatever.

The N900 alarm is set through alarmed's CLI:
Code:
#use alarmed CLI to set a safety alarm in 30 minutes
/opt/alarmed/alarmed.py -C --title='Clockradio Safety Alarm' -A --date='now +30 minutes'
That does set a one-time only N900 alarm, but unlike setting a one-time-only alarm through the N900's alarm screen, it leaves the entry in the alarmd event list, so that I occasionally must open alarmed & delete the old "safety alarm"s from each time the script was called.

Can anyone suggest a better command for creating a one-time-only alarm, one which will not leave an entry in the alarmd list after it is done?