Hi Guys,
i am working on countdown timer with sound something like here:
https://fitatmidlife.com/timer/
i am using function application.ontime to run counter.
Problem is starting when i try to add more conditions than just time change.
I want to have:
1. Long time interval - input number of loops
2. Break Long Interval - how much break should last.
3. Short Interval - after long interval and breaks with specific number of loops
4. Break Short interval - after each short Interval Loop.
5. User can input 0 and skip all kinds of breaks and intervals without Long Interval.
Additionally:
1. if time = 00:00:05 run sound only for High and Low Intervals
2. If time = 00:00:04 run sound for High and Low Intervals
3. if time = 00:00:00 run sound for for High and Low Intervals and breaks.
The code is not very nice right now but this project is after usual work for personal use so i can not spend a lot of time on it.
Help is needed to find out with yours smart heads how to create code properly in the easiest way.
Screenshot_14.png
In this example The timer should countdown from:
1. 00:00:08 twice (2 number of loops) for Long Interval without breaks (Break Long Interval = 00:00:00)
2. 00:00:10 twice - Short Interval with one break = 00:00:03.
Bookmarks