Repository navigation
Release 1.10.4: Day/Night offsets and Modbus text padding - #40
Merged
Merged
Conversation
Day/Night condition: - Optional sunrise_offset_minutes / sunset_offset_minutes (±720), with a live preview in the editor. - Without rule coordinates (or 0, 0), conditions and Sunrise/Sunset triggers now read the Location setting from settings.engine. - The day window may cross midnight (sunset offsets, or local sunset after 00:00 as in Reykjavik in June); polar night counts as night and midnight sun as day, where the condition used to fail for both. - tools/scheduler_test.c covers these and runs in CI. Modbus Write: "fill" pads text with NUL (default) or spaces with the text left, right or centered. The editor hides Encoding for non-text rows and explains that Length counts 2-byte registers. Rule editor: the rule list loads before slower capability lookups; lists that finish loading no longer discard unsaved edits, and re-rendering keeps schedule days, geofence polygons and an open new-event form. Rule cards get labels for Modbus Write and the GPS triggers.
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.
Release 1.10.4. Full notes in
RELEASE_NOTES.md.New
fillpads text with NUL (default) or spaces, text left / right / centered (Modbus extension #20). The editor shows Encoding only for text and explains that Length counts 2-byte registers (Modbus extension #20).Fixes
Upgrade notes: Night-Only rules without coordinates now follow the camera Location setting; polar night now passes a Night condition.
Tested
tools/scheduler_test.c(offset boundaries to the second, midnight crossing, Reykjavik, Tonga UTC+13, Tromsø polar night and midnight sun) and extended Modbus codec tests; both pass with clang and with gcc on Ubuntu.