06-20-2022 09:00
06-20-2022 09:00
For example, I want to trigger a vibration when 5 minutes has passed/it's 12:55pm.
Currently I'm using:
clock.ontick = (evt) => {
if the time is up
vibrate;
}
I read in the manual that this only works if the display is ON. So
1. Does it mean when the display is OFF/turns black, the ontick function will stop checking the time?
2. If an app is running, will the display be always ON by default?
3. If not, is there a way to turn on AOD (always-on display) just for the app or only when the app is running?
3.1 How long does the battery last if AOD is turned on?
4. Is there another way to achieve what I'm aiming for, especially without needing AOD?
Thank you!
06-20-2022 09:03
06-20-2022 09:03
I'm using a Versa 2. I also looked a bit into the Web API and read something about setting alarm via Web API but it doesn't support Versa 2?
06-20-2022 11:12
06-20-2022 11:12
Hi @kikiSDelivery - what you probably need to use is setInterval because as you say if the display off the watch app/clock is dormant except for the setTimeout or setInterval.
So there is no need for AOD.
Note: if you want absolute precision you may want to wake the watch a bit before the the activity you want to run and check it against the clock and trigger it then.
You can use poke to wake the display and it will go off after the watch settings timeout.
Author | ch, passion for improvement.
06-22-2022 15:00
06-22-2022 15:00
This is brilliant! I'll give it a try. Thank you!