From 4f812cd33cf0029b6234ae65330bb869f317f2d2 Mon Sep 17 00:00:00 2001 From: Marco H Date: Tue, 26 Apr 2022 11:48:14 +0200 Subject: [PATCH 1/2] Fix typos --- apps/activityreminder/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/activityreminder/README.md b/apps/activityreminder/README.md index 03466bbbf..1e643fb54 100644 --- a/apps/activityreminder/README.md +++ b/apps/activityreminder/README.md @@ -3,11 +3,11 @@ 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 -Differents settings can be personnalized: +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 innactivity: Maximum innactivity time to allow before the alert. From 15 min to 60 min +- 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 - Min steps: Minimal amount of steps to count as an activity From 3a9b8dab293287924c468cb2b8b44e10bd207d69 Mon Sep 17 00:00:00 2001 From: Marco H Date: Tue, 26 Apr 2022 11:51:49 +0200 Subject: [PATCH 2/2] Fix typo and add format for settings which have minutes as unit --- apps/activityreminder/settings.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/activityreminder/settings.js b/apps/activityreminder/settings.js index bdd105781..9b9a0ecd8 100644 --- a/apps/activityreminder/settings.js +++ b/apps/activityreminder/settings.js @@ -30,12 +30,15 @@ require("activityreminder").writeSettings(settings); } }, - 'Max innactivity': { + 'Max inactivity': { value: settings.maxInnactivityMin, min: 15, max: 120, onchange: v => { settings.maxInnactivityMin = v; require("activityreminder").writeSettings(settings); + }, + format: x => { + return x + " min"; } }, 'Dismiss delay': { @@ -44,6 +47,9 @@ onchange: v => { settings.dismissDelayMin = v; require("activityreminder").writeSettings(settings); + }, + format: x => { + return x + " min"; } }, 'Min steps': {