Do not disturb

Hi,
On latest Fenix 3 firmware appeared new settings option: Do Not Disturb (and sleep dissapeared).
Is there any option to get watch status with such information?
  • There is no way to get the DND status.

    What is it you are trying to do, as there might be another way to get the info you need.
  • I am trying to show some icon that shows status. I had icon for sleep mode and tried do the same for do not disturb.
  • I am trying to show some icon that shows status. I had icon for sleep mode and tried do the same for do not disturb.


    With DND, these is no way to see that. But with the sleep icon, you're probably using "isSleepMode" for that. That would show when you had the "sleep" option, but seems now you can't manually put the device into manual sleep mode, you'll not see it.

    What I do, is have my own check for the user configured "sleepTime and "wakeTime" in User.Profile, and "or" that with isSleepMode.

    So, the "sleep" icon comes on if the watch is manually put in sleep mode, or it's during the configured sleep times.

    function mySleepMode()
    {
    //var profile = UserProfile.getProfile();
    //var sleep=profile.sleepTime.value();
    //var wake=profile.wakeTime.value();
    var sleepMode=false;
    if(sleep==wake) { return sleepMode; }
    var nowT=Sys.getClockTime();
    var now=nowT.hour*3600+nowT.min*60+nowT.sec;
    if(sleep>wake) {
    if(now>=sleep || now<=wake) {sleepMode=true; }
    } else {
    if(now<=wake && now>=sleep) {sleepMode=true; }
    }
    return sleepMode;
    }



    The 3 lines that are commented out are needed, but I did this to indicate you could set "sleep" and "wake" in initialize(), as you don't need to do it for every time this is called.

    I use everything in seconds since midnight to make the check easy.

    Then to shoe the icon, it's

    if(activityInfo.isSleepMode || mySleepMode()) {
    }
  • 1049

    Nice..:)
    I will do similar on my watch face. Thanks.
    Configured sleep times means also that watch will be silent during that hours?
    Hope in future sdk garmin will give us possibility to check DND (I read somewhere they are planning to come back with manual sleep mode).
  • With DND, do you have an option to automatically set it during Sleep Times? I know you can with some devices. So if you can set it, the icon will show during those times, as well as turn on DND.

    The sleep times don't indicate DND, unless DND is set to use them.
  • I don't see such option in Felix 3.
    Anyway, thank you for help and sample code:)
  • On the 230, there are two ways to get to DND. One is from the controls widget, where you can turn it on and off, and the second is in settings, where you can say if it uses sleep/wake times. Is there anything under settings for DND on your watch?
  • On the 230, there are two ways to get to DND. One is from the controls widget, where you can turn it on and off, and the second is in settings, where you can say if it uses sleep/wake times. Is there anything under settings for DND on your watch?



    No, I don't see anything related to DND in settings:(