Set default clock alarm time and gate alarm time field by visibility

This commit is contained in:
Jage9
2026-02-27 02:11:08 -05:00
parent 78be266fcf
commit d74937b2dc
4 changed files with 10 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ This is behavior-focused documentation for item types and their defaults.
- `use24Hour=false`
- `topOfHourAnnounce=true`
- `alarmEnabled=false`
- `alarmTime=""`
- `alarmTime="12:00 AM"`
- Global:
- `useSound=none`
- `emitSound=sounds/clock.ogg`
@@ -121,6 +121,7 @@ This is behavior-focused documentation for item types and their defaults.
- `topOfHourAnnounce`: boolean or on/off style input
- `alarmEnabled`: boolean or on/off style input
- `alarmTime`: `HH:MM` when `use24Hour=true`, otherwise `H:MM AM/PM`
- Visible only when `alarmEnabled=true` (`visibleWhen: {"alarmEnabled": true}`)
### Audio
- Spoken clock assets live under `client/public/sounds/clock/el640/`.