Make awareness alarm configurable and vastly more useful

This commit is contained in:
2026-08-18 23:02:55 -04:00
parent 8e64b4b4b8
commit dc10841812
5 changed files with 164 additions and 77 deletions
+47 -12
View File
@@ -19,26 +19,61 @@ module.exports = [
"label": "Enabled"
},
{
"id": "pavlok_api_key",
"type": "input",
"messageKey": "PKJS_PAVLOK_API_KEY",
"label": "API Key"
"id": "pavlok_api_key",
"type": "input",
"messageKey": "PKJS_PAVLOK_API_KEY",
"label": "API Key"
},
{
"id": "pavlok_zap_intensity",
"type": "slider",
"messageKey": "PKJS_PAVLOK_ZAP_INTENSITY",
defaultValue: 30,
min: 5,
max: 100,
step: 5,
"defaultValue": 30,
"min": 5,
"max": 100,
"step": 5,
"label": "Zap Intensity"
},
{
"id": "pavlok_test_button",
"type": "button",
"messageKey": "PKJS_PAVLOK_TEST_BUTTON",
"defaultValue": "Test Beep"
"id": "pavlok_test_button",
"type": "button",
"messageKey": "PKJS_PAVLOK_TEST_BUTTON",
"defaultValue": "Test Beep"
}
]
},
{
"type": "section",
"items": [
{
"type": "heading",
"size": 3,
"defaultValue": "Awareness Alarm"
},
{
"id": "awareness_time_gap",
"type": "slider",
"messageKey": "PKJS_AWARENESS_TIME_GAP",
"defaultValue": 9,
"min": 1,
"max": 30,
"label": "Gap From Main Alarm (Minutes)"
},
{
"id": "awareness_time_limit",
"type": "slider",
"messageKey": "PKJS_AWARENESS_TIME_LIMIT",
"defaultValue": 30,
"min": 3,
"max": 120,
"label": "Time Limit (Seconds)"
},
{
"id": "awareness_nudge_enable",
"type": "toggle",
"messageKey": "PKJS_AWARENESS_NUDGE_ENABLE",
"defaultValue": true,
"label": "Awareness Nudge"
}
]
},