You are reading a single comment by @HughB and its replies. Click here to read the full conversation.
  • For clock_info's I am wondering what a minimal version of the show and hide functions should be ? Are they needed for clkinfofw. The firmware is not going to change and if it did there would have been a reboot. So could I just use:

           show : function() {},
           hide : function() {}
    

    Instead of:

            show : function() {
              this.interval = setTimeout(()=>{
                this.emit("redraw");
                this.interval = setInterval(()=>{
                  this.emit("redraw");
                }, 86400000);
              }, 86400000 - (Date.now() % 86400000));
            },
           hide : function() {
              clearInterval(this.interval);
              this.interval = undefined;
            }
    
    
About

Avatar for HughB @HughB started