mirror of https://github.com/espruino/BangleApps
Merge pull request #1778 from myxor/activity_quiet_mode
ActivityReminder: Obey system quiet mode & extend allowed dismiss delaypull/1790/head
commit
e07d7c0c2c
|
@ -1,3 +1,4 @@
|
|||
0.01: New App!
|
||||
0.02: Fix the settings bug and some tweaking
|
||||
0.03: Do not alarm while charging
|
||||
0.04: Obey system quiet mode
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
# Activity reminder
|
||||
|
||||
A reminder to take short walks for the ones with a sedentary lifestyle.
|
||||
The alert will popup only if you didn't take your short walk yet
|
||||
The alert will popup only if you didn't take your short walk yet.
|
||||
|
||||
Different settings can be personalized:
|
||||
- Enable : Enable/Disable the app
|
||||
- Start hour: Hour to start the reminder
|
||||
- End hour: Hour to end the reminder
|
||||
- Max inactivity: Maximum inactivity time to allow before the alert. From 15 to 60 min
|
||||
- Dismiss delay: Delay added before the next alert if the alert is dismissed. From 5 to 15 min
|
||||
- Dismiss delay: Delay added before the next alert if the alert is dismissed. From 5 to 60 min
|
||||
Notice: If Dissmiss delay > Max inactivity then it will be equal Max inactivity
|
||||
- Min steps: Minimal amount of steps to count as an activity
|
||||
|
||||
|
|
|
@ -14,7 +14,10 @@ function drawAlert(){
|
|||
load();
|
||||
});
|
||||
|
||||
Bangle.buzz(400);
|
||||
// Obey system quiet mode:
|
||||
if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) {
|
||||
Bangle.buzz(400);
|
||||
}
|
||||
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.03",
|
||||
"version":"0.04",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
"tags": "tool,activity",
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
},
|
||||
'Dismiss delay': {
|
||||
value: settings.dismissDelayMin,
|
||||
min: 5, max: 15,
|
||||
min: 5, max: 60,
|
||||
onchange: v => {
|
||||
settings.dismissDelayMin = v;
|
||||
require("activityreminder").writeSettings(settings);
|
||||
|
|
Loading…
Reference in New Issue