Repository navigation
Power schedule: show when the box comes on again, warn when off, 1-minute margin - #105
Merged
Merged
Conversation
…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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing the power schedule on Jan's DNS-320L showed that it is too easy to get it wrong without noticing:
Changes:
shareos-power: margin 60 s instead of 180 s (alarm in whole minutes, MCU cuts power 3 s after shutdown);status.next_onuses the same margin, so it is exactly whatarmprograms.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