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 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': {