forked from FOSS/BangleApps
Merge branch 'master' of github.com:espruino/BangleApps
commit
769c4c2793
|
@ -8,3 +8,4 @@
|
|||
0.08: Use default Bangle formatter for booleans
|
||||
0.09: New app screen (instead of showing settings or the alert) and some optimisations
|
||||
0.10: Add software back button via setUI
|
||||
0.11: Add setting to unlock screen
|
||||
|
|
|
@ -26,6 +26,12 @@
|
|||
if (!(storage.readJSON('setting.json', 1) || {}).quiet) {
|
||||
Bangle.buzz(400);
|
||||
}
|
||||
|
||||
if ((storage.readJSON('activityreminder.s.json', 1) || {}).unlock) {
|
||||
Bangle.setLocked(false);
|
||||
Bangle.setLCDPower(1);
|
||||
}
|
||||
|
||||
setTimeout(load, 20000);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Activity Reminder",
|
||||
"shortName":"Activity Reminder",
|
||||
"description": "A reminder to take short walks for the ones with a sedentary lifestyle",
|
||||
"version":"0.10",
|
||||
"version":"0.11",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
"tags": "tool,activity",
|
||||
|
|
|
@ -75,7 +75,14 @@
|
|||
settings.tempThreshold = v;
|
||||
activityreminder.writeSettings(settings);
|
||||
}
|
||||
},
|
||||
'Unlock on alarm': {
|
||||
value: !!settings.unlock,
|
||||
onchange: v => {
|
||||
settings.unlock = v;
|
||||
activityreminder.writeSettings(settings);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
return mainMenu;
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
Limit logging on Bangle.js 1 to one day due to low memory
|
||||
Add plot logged data to settings
|
||||
0.15: Convert Yes/No On/Off in settings to checkboxes
|
||||
0.16: Fix Keep alarm enabled inverted settings
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "sleepphasealarm",
|
||||
"name": "SleepPhaseAlarm",
|
||||
"shortName": "SleepPhaseAlarm",
|
||||
"version": "0.15",
|
||||
"version": "0.16",
|
||||
"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.",
|
||||
"icon": "app.png",
|
||||
"tags": "tool,alarm",
|
||||
|
|
|
@ -90,9 +90,9 @@
|
|||
E.showMenu({
|
||||
"" : { "title" : "SleepPhaseAlarm" },
|
||||
'Keep alarm enabled': {
|
||||
value: !!config.settings.disableAlarm,
|
||||
value: !config.settings.disableAlarm,
|
||||
onchange: v => {
|
||||
config.settings.disableAlarm = v;
|
||||
config.settings.disableAlarm = !v;
|
||||
writeSettings();
|
||||
}
|
||||
}, "< Back" : () => back(),
|
||||
|
|
Loading…
Reference in New Issue