Hi, is there a way I can build an alarm clock on Glide? That sets off after a particular time every day?
Did you explore the “stopwatch” component?
You may be interested by
Hi, no, I did check out the stopwatch component. But I am unable to build a countdown timer with it. Any leads?
Tried this, but my timer doesn’t count down, nor does it take the duration into account.
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.
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.
Okay…is there a way I can build a countdown timer at all on Glide then?
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.
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.
Yes, I did get a solution in that thread. Thanks for your time and guidance, I’ll try it out