sleepphasealarm: respect Quiet Mode

pull/697/head
Richard de Boer 2021-03-23 19:56:34 +01:00
parent 04f02f4274
commit 0c36041e18
3 changed files with 3 additions and 1 deletions

View File

@ -2100,7 +2100,7 @@
"name": "SleepPhaseAlarm",
"shortName":"SleepPhaseAlarm",
"icon": "app.png",
"version":"0.01",
"version":"0.02",
"description": "Uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments (ESS, see https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en). This app will read the next alarm from the alarm application and will wake you up to 30 minutes early at the best guessed time when you are almost already awake.",
"tags": "alarm",
"storage": [

View File

@ -1 +1,2 @@
0.01: New App!
0.02: Respect Quiet Mode

View File

@ -88,6 +88,7 @@ function drawApp() {
var buzzCount = 19;
function buzz() {
if ((require('Storage').readJSON('setting.json',1)||{}).quiet>1) return; // total silence
Bangle.setLCDPower(1);
Bangle.buzz().then(()=>{
if (buzzCount--) {