Merge pull request #1754 from myxor/patch-2

Activity Reminder: Minor improvements
master
Gordon Williams 2022-04-26 12:24:39 +01:00 committed by GitHub
commit d9bbf00a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

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