Repository navigation
release 0.3.0 - #12
Merged
Merged
Conversation
A query an inverter does not have is now reported as "not available" instead of "no answer", remembered per inverter and skipped from then on; the dashboard updates its charts, cards and tables in place instead of blanking them every 30 seconds; and the release artefacts can be built locally with scripts/build-packages.sh. The schema gains inverter_query_support, and the diagnostics ring is recreated on first start because its outcome constraint gained a value.
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.
Prepares the 0.3.0 release: the
smalogcrate version and the Debianchangelog. The release workflow refuses a tag that disagrees with the crate
version, so this has to land before the release is published.
A minor bump rather than a patch: the collector gained behaviour (it stops
asking for values an inverter does not have) and the schema gained a table.
What is in 0.3.0
Refused queries are told apart from silent ones, and asked only once. An
inverter that lacks a value answers SMA error 21; both transports swallowed
that into an empty result, so a definitive answer showed as
keine Antwortandevery cycle spent a round trip re-asking it. Such an exchange is now
unsupported— "nicht verfügbar" — and is remembered per inverter in the newinverter_query_supporttable, so later cycles skip it. Entries expire after30 days, so a firmware update that adds a value is still picked up.
The dashboard updates in place. The periodic poll used to empty the chart
and the diagnostics tables before refetching, and a failed poll emptied the
status cards, which read as the page reloading itself twice a minute. Views now
keep their content while the next payload is fetched and only clear when the
range, inverter or period actually changes; a failed poll keeps the last
reading and shows an offline badge.
The release artefacts can be built locally.
scripts/build-packages.shproduces the same archives and Debian packages as the release workflow, into
dist/, without publishing anything.Upgrading
The diagnostics ring's
outcomeconstraint gained a value, so a databasecarrying the previous version has that ring recreated on first start. It is a
48-hour buffer: recent transmission rows are lost, nothing canonical is. The
canonical schema gains
inverter_query_supportthrough migration 0002.Testing
cargo test --workspace --locked(291 passed) andcargo clippy --workspace --all-targets --locked -- -D warningsare clean,including the PostgreSQL contract tests against postgres:16-alpine.