diff --git a/apps.json b/apps.json index ceaa2b3b2..a4e083c62 100644 --- a/apps.json +++ b/apps.json @@ -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": [ diff --git a/apps/sleepphasealarm/ChangeLog b/apps/sleepphasealarm/ChangeLog index 5560f00bc..47448167e 100644 --- a/apps/sleepphasealarm/ChangeLog +++ b/apps/sleepphasealarm/ChangeLog @@ -1 +1,2 @@ 0.01: New App! +0.02: Respect Quiet Mode diff --git a/apps/sleepphasealarm/app.js b/apps/sleepphasealarm/app.js index 1f8bf92ae..0de0b9afc 100644 --- a/apps/sleepphasealarm/app.js +++ b/apps/sleepphasealarm/app.js @@ -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--) {