Connect iq seconds

Former Member
Former Member
hello, sorry i'm only new to connect IQ

i have made a watch face and the seconds don't update, how do i make the seconds so the continuously update, or at least update when the user looks at there watch?
  • With a watchface, onUpdate() is only called every minute most times, but after a gesture, will be called every second for 10 seconds. This 10 seconds is when you can show seconds.
    You can tell which state you are in based on onEnterSlee() (updates will be every minute), and onExitSleep() (updates will be every second). In the sim you can trigger the change with t "Settings>low power mode".

    So, the basics are, doing something like this:
    function onExitSleep() {
    inLowPower=false;
    Ui.requestUpdate();
    }

    function onEnterSleep() {
    inLowPower=true;
    Ui.requestUpdate();
    }

    then in onUpdate(), only display the seconds if inLowPower is false.

    For 1hz seconds (aka "seconds all the time"), there's onPartialUpdate(), which will be called every second, but only on newer watches (starting with the fenix5), and only as long as the average call to it over a minutes takes 30ms or less ("the power budget"). With it, you only update small areas of the screen, using a clip region (only update the seconds for example). Here's a thread all about 1hz watchfaces:
    https://forums.garmin.com/forum/developers/connect-iq/158133-?376929=
  • Former Member
    Former Member
    yep fixed it thank you...