mirror of https://github.com/espruino/BangleApps
sleepphasealarm: respect Quiet Mode
parent
04f02f4274
commit
0c36041e18
|
@ -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": [
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
0.01: New App!
|
||||
0.02: Respect Quiet Mode
|
||||
|
|
|
@ -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--) {
|
||||
|
|
Loading…
Reference in New Issue