# Alarm clock on Glide

**URL:** <https://community.glideapps.com/t/alarm-clock-on-glide/25772>\
**Category:** Ask for Help\
**Created:** [April 19, 2021, 4:20pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772 "2021-04-19T16:20:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annapurani\_Vaidyanat](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/annapurani_vaidyanat/32/21231_2.png) [@Annapurani\_Vaidyanat](https://community.glideapps.com/u/Annapurani_Vaidyanat)\
**Post date:** [April 19, 2021, 4:20pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/1 "2021-04-19T16:20:45Z")

</div>

Hi, is there a way I can build an alarm clock on Glide? That sets off after a particular time every day?

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [April 19, 2021, 5:39pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/2 "2021-04-19T17:39:29Z")

</div>

Hi,  
Did you explore the “stopwatch” component?  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/d/2dcfc71dce73acbc08ab8b3ecc7883ba3091fbe5.png)

You may be interested by

> [@alarm\_clock Stopwatch!](https://community.glideapps.com/t/stopwatch/18810):
>
> In case you missed it, we added a new component last week – the stopwatch! We also made a handy app with it to help you track your workouts. Copy it here! [https://www.glideapps.com/templates/run-one-i6](https://www.glideapps.com/templates/run-one-i6) Learn more about the stopwatch component in our docs [https://docs.glideapps.com/all/reference/components/input/stopwatch](https://docs.glideapps.com/all/reference/components/input/stopwatch)

---

<div class="post-metadata">

**Author:** ![Annapurani\_Vaidyanat](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/annapurani_vaidyanat/32/21231_2.png) [@Annapurani\_Vaidyanat](https://community.glideapps.com/u/Annapurani_Vaidyanat)\
**Post date:** [April 20, 2021, 3:40am UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/3 "2021-04-20T03:40:35Z")

</div>

Hi, no, I did check out the stopwatch component. But I am unable to build a countdown timer with it. Any leads?

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [April 20, 2021, 7:08am UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/4 "2021-04-20T07:08:19Z")

</div>

> [@Countdown](https://community.glideapps.com/t/countdown/24940/2):
>
> A countdown timer? Onscreen? Easy now! I made one this evening slight_smile My use case: a person does a corona test and needs to wait 15 mins to be able to take a photo so onscreen I want the countdown to appear after they have put drops onto the test cassette… and then have a button to continue once the time remaining is 0. So one column - start time Another column - the 15 min wait Next - a math column - time photo taken (start) + the time to add on (I have mins, so need to convert) …

---

<div class="post-metadata">

**Author:** ![Annapurani\_Vaidyanat](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/annapurani_vaidyanat/32/21231_2.png) [@Annapurani\_Vaidyanat](https://community.glideapps.com/u/Annapurani_Vaidyanat)\
**Post date:** [April 24, 2021, 10:11am UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/5 "2021-04-24T10:11:00Z")

</div>

Tried this, but my timer doesn’t count down, nor does it take the duration into account.

I’m stuck!

Here’s what I have -

Start time - now()  
Duration - 0.15

I give these two values in the stopwatch elements, but the clock keeps going on even after 15 minutes.

Help please!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 24, 2021, 10:34am UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/6 "2021-04-24T10:34:01Z")

</div>

> [@Countdown timer not working](https://community.glideapps.com/t/countdown-timer-not-working/25984/2):
>
> That’s how the [Stopwatch](https://docs.glideapps.com/all/reference/components/input/stopwatch) component works. Once you start it, it keeps going until you stop or pause it.

I think you’re trying to put a square peg in a round hole, here.  
The stop watch counts up, not down. I don’t think it’s possible to use it like an alarm clock.  
In fact, I don’t think it’s possible to build alarm clock type functionality with Glide right now.  
Although Glide can trigger sounds, that can only be done with an action - so it requires that the user tap a button or some other component. There is currently no way in Glide to trigger actions based on time.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 24, 2021, 12:36pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/7 "2021-04-24T12:36:31Z")

</div>

Also the start time and duration are meant to be set by the stopwatch buttons. Not by you. They are there to track when and which buttons you pressed so it can function properly. The start time tracks when the start button was pressed. The duration tracks how much time elapsed when you pressed pause. If you press play after a pause, then glide does some internal math to add the current duration between now and the start time, added to the existing duration. It’s all to make the stopwatch function normally and allow you to switch screens while allowing the stopwatch to still function. If you press the stop button, it clears out both fields so it’s ready to start fresh and fill with a new start time when you press play/start. The whole point of those two fields is so the javascript knows what to display on the stopwatch using some math.

---

<div class="post-metadata">

**Author:** ![Annapurani\_Vaidyanat](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/annapurani_vaidyanat/32/21231_2.png) [@Annapurani\_Vaidyanat](https://community.glideapps.com/u/Annapurani_Vaidyanat)\
**Post date:** [April 24, 2021, 12:49pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/8 "2021-04-24T12:49:04Z")

</div>

Okay…is there a way I can build a countdown timer at all on Glide then?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 24, 2021, 12:56pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/9 "2021-04-24T12:56:07Z")

</div>

If it doesn’t need to be exactly precise and you are ok with it updating every 5 to 10 seconds, then yes you can. All you need is a some math to get get the duration between now and a future date/time. Then convert it to whichever format you want since date math gives you a duration in days.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 24, 2021, 1:01pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/10 "2021-04-24T13:01:40Z")

</div>

Just noticed you asked the same question in another thread. Rather than making things more confusing and having multiple threads on the same question, I’ll refer to the other thread and let’s continue there. Looks like you already got an answer there.

> [@Countdown timer not working](https://community.glideapps.com/t/countdown-timer-not-working/25984):
>
> Mytimer doesn’t count down, nor does it take the duration into account. I’m stuck! Here’s what I have - Start time - now() Duration - 0.15 I give these two values in the stopwatch elements, but the clock keeps going on even after 15 minutes. Help please!

---

<div class="post-metadata">

**Author:** ![Annapurani\_Vaidyanat](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/annapurani_vaidyanat/32/21231_2.png) [@Annapurani\_Vaidyanat](https://community.glideapps.com/u/Annapurani_Vaidyanat)\
**Post date:** [April 24, 2021, 1:03pm UTC](https://community.glideapps.com/t/alarm-clock-on-glide/25772/11 "2021-04-24T13:03:30Z")

</div>

Yes, I did get a solution in that thread. Thanks for your time and guidance, I’ll try it out
