diff --git a/apps/widtwenties/widget.js b/apps/widtwenties/widget.js index 58bc622eb..745e50391 100644 --- a/apps/widtwenties/widget.js +++ b/apps/widtwenties/widget.js @@ -7,9 +7,13 @@ they don't interfere with currently-running apps */ const look = 20 * 1000; // 20 seconds buzz = _ => { - Bangle.buzz().then(_ => { - setTimeout(Bangle.buzz, look); - }); + const d = new Date(); + // run from 8 AM - 5 PM + if (d >= 8 && d <= 17) { + Bangle.buzz().then(_ => { + setTimeout(Bangle.buzz, look); + }); + } }; // add widget @@ -21,4 +25,4 @@ they don't interfere with currently-running apps */ setInterval(WIDGETS.twenties.buzz, move); // buzz to stand / sit })(); -// Bangle.drawWidgets(); // <-- for development only \ No newline at end of file +// Bangle.drawWidgets(); // <-- for development only