Setting Alarm duration?

Asked by datakid on 2013-09-15

I have an alarm set to remind me to change a setting every morning in my shared office.

Sometimes I am not near my desk when the alarm goes off.

My workmates and I were wondering if it was possible to put a time limit on the duration of the alarms?

eg, "set alarm to 8am, play sound, for 1 minute only"

Question information

Language:
English Edit question
Status:
Solved
For:
Alarm Clock Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes H. Jensen
Solved:
2013-09-16
Last query:
2013-09-16
Last reply:
2013-09-15
Best Johannes H. Jensen (joh) said : #1

Yes, it's possible but unfortunately only at build-time. By default, the time limit is 20 minutes for all alarms. To change it to 1 minute (60 seconds) you need to edit the file src/alarm.h and change line #161 from:

#define ALARM_SOUND_TIMEOUT (60 * 20)

to

#define ALARM_SOUND_TIMEOUT (60)

Then re-build alarm-clock. See http://alarm-clock.pseudoberries.com/#install for instructions.

datakid (datakid) said : #2

Thanks for the quick reply!

L.

On 16 September 2013 08:36, Johannes H. Jensen
<email address hidden> wrote:
> Your question #235759 on Alarm Clock changed:
> https://answers.launchpad.net/alarm-clock/+question/235759
>
> Status: Open => Answered
>
> Johannes H. Jensen proposed the following answer:
> Yes, it's possible but unfortunately only at build-time. By default, the
> time limit is 20 minutes for all alarms. To change it to 1 minute (60
> seconds) you need to edit the file src/alarm.h and change line #161
> from:
>
> #define ALARM_SOUND_TIMEOUT (60 * 20)
>
> to
>
> #define ALARM_SOUND_TIMEOUT (60)
>
> Then re-build alarm-clock. See http://alarm-
> clock.pseudoberries.com/#install for instructions.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/alarm-clock/+question/235759/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/alarm-clock/+question/235759
>
> You received this question notification because you asked the question.

--
Maya Otos (@maya_otos) tweeted at 9:27 PM on Tue, Jul 30, 2013:
When you used to be punk, and now you are still punk but not as punk,
are you post-punk or decaying punk or ex-punk or just not punk anymore

datakid (datakid) said : #3

Thanks Johannes H. Jensen, that solved my question.