diff --git a/apps/activityreminder/ChangeLog b/apps/activityreminder/ChangeLog index 6681ac41d..ef387d098 100644 --- a/apps/activityreminder/ChangeLog +++ b/apps/activityreminder/ChangeLog @@ -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 diff --git a/apps/activityreminder/README.md b/apps/activityreminder/README.md index 1e643fb54..e8be66f3c 100644 --- a/apps/activityreminder/README.md +++ b/apps/activityreminder/README.md @@ -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 diff --git a/apps/activityreminder/app.js b/apps/activityreminder/app.js index 310dc10b0..811399ca6 100644 --- a/apps/activityreminder/app.js +++ b/apps/activityreminder/app.js @@ -13,8 +13,11 @@ function drawAlert(){ } load(); }); - - Bangle.buzz(400); + + // Obey system quiet mode: + if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) { + Bangle.buzz(400); + } setTimeout(load, 20000); } diff --git a/apps/activityreminder/metadata.json b/apps/activityreminder/metadata.json index 7fd425ceb..89b0fbc0b 100644 --- a/apps/activityreminder/metadata.json +++ b/apps/activityreminder/metadata.json @@ -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", diff --git a/apps/activityreminder/settings.js b/apps/activityreminder/settings.js index 9b9a0ecd8..e4f44efc6 100644 --- a/apps/activityreminder/settings.js +++ b/apps/activityreminder/settings.js @@ -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);