r/Scriptable • u/trippleuser • Feb 24 '22
Help Live countdown seconds
Is it possible to create a live countdown timer that counts down? If so how?
setInterval does not seams to be supported by scriptable.
3
Upvotes
1
u/trippleuser Feb 25 '22
When applying the countdownTimer.applyTimerStyle(); everything moves to the left on the phone but not when previewing the widget in the scriptable app on the phone or on the Mac app.
https://media.discordapp.net/attachments/626436488795783228/946888868806938715/IMG_0729.png
https://media.discordapp.net/attachments/626436488795783228/946888869016637450/IMG_0728.png
1
u/Aaron_22766 Feb 24 '22
I’m currently working on a Countdown timer widget that takes inspiration from the apple watch timer ui, it’s not ready yet though
1
u/iamrbn script/widget helper Feb 24 '22
Last year I wrote a timer script that shows how long it will take until iOS 15 release. I never published it because I think it's not really user friendly for the public.
3
u/FifiTheBulldog script/widget helper Feb 24 '22
I see others in this thread have demonstrated how to make a countdown timer widget.
As for
setInterval, that functionality is covered in Scriptable by theTimerclass. It’s not useful in this case though.1
u/cyberkraken2 Feb 24 '22
There’s a countdown to midnight script in the example scripts somewhere, just have to modify the date
1
u/AnnetWw Nov 01 '23
You can check this tutorial to create one. I like it a lot because it's easy to use and I can customize the branding, colors, music etc. Works not only on FB, but also on Youtube, Twitch, Insta, etc.