Skip to content

Power schedule: show when the box comes on again, warn when off, 1-minute margin - #105

Merged
UniqueDroid merged 5 commits into
mainfrom
fix/power-ui
Oct 31, 2026
Merged

UniqueDroid merged 5 commits into
mainfrom
fix/power-ui

Conversation

@UniqueDroid

Copy link
Copy Markdown
Owner

Testing the power schedule on Jan's DNS-320L showed that it is too easy to get it wrong without noticing:

  • the switch Zeitplan einschalten was easy to miss – times were entered, nothing happened;
  • "switch on at 10:15", saved/switched off at 10:13: the 3-minute margin moved the alarm silently to the next week.

Changes:

  • shareos-power: margin 60 s instead of 180 s (alarm in whole minutes, MCU cuts power 3 s after shutdown); status.next_on uses the same margin, so it is exactly what arm programs.
  • Schedule page: next switch-on/-off with full date (incl. year); warning banner when times are entered but the schedule is off.
  • Saving: toast "Zeitplan gespeichert – die Box schaltet sich am Sa., 07.11.2026, 10:15 ein." / "kein Einschalten geplant" / "(ausgeschaltet)".
  • Power-off dialog: "Nach Zeitplan schaltet sie sich am … wieder ein." when a switch-on is planned.
  • i18n (10 languages), tests/test-power.sh (9 passed; 2 minutes ahead armed, 30 s ahead → next one), checked in the mock UI with Chromium.

The actual reason the switch-off did not happen is #104 (crond read another directory).


Generated by Claude Code

…schedule is off, one-minute margin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmfmQxsE59Ms99VrbCi1J1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmfmQxsE59Ms99VrbCi1J1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmfmQxsE59Ms99VrbCi1J1
@UniqueDroid
UniqueDroid merged commit 59a198f into main Oct 31, 2026
2 checks passed
@UniqueDroid
UniqueDroid deleted the fix/power-ui branch October 31, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants