Repository navigation
Conversation
Corrected a comment regarding the potential delay in readout.
premultiply
reviewed
Jun 24, 2026
Co-authored-by: premultiply <4681172+premultiply@users.noreply.github.com>
The InfluxDB client was used with its default write options, which drop data almost immediately when the database is down: - the retry buffer limit (50,000 points) is enforced in batches of limit/batch size = 10 batches. With one batch per 1s flush, that is only ~10s of data - batches expire after 3 minutes (MaxRetryTime) - batches are discarded after 5 retries Add an influx-buffer option (default 1h) and size the retry buffer, expiry and retry count from it. Cap the retry backoff at 30s so the backlog is written soon after the database is back. 0 disables retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
influx: keep unsent data while the database is unavailable
The opcode table was aligned with tabs, which fails the Porcelain step of the Clean CI job. Whitespace only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
rs485: gofmt ds100.go
- restore Voltage at 0x040C (average L-N). Renaming it to VoltageL_N_avg left Voltage without an opcode, so Probe and Produce read register 0 - keep Current at 0x0418 (three phase vector current). 0x0416 is the neutral current, not the total - read the new L-L voltages, average L-L voltage and per-phase frequencies in Produce. Opcodes alone are never queried - drop the commented-out THD registers, which are not in the manual Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
DS100: read line voltages and per-phase frequency
This reverts merge 0c25de9 (PR #1). This fork's master is the head of upstream volkszaehler#385, which should only contain the DS100 change. The influx fix goes upstream as a separate PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Revert "influx: keep unsent data while the database is unavailable"
Add a CurrentN measurement ("Neutral Current", A) and read it from
register 0x0416 on the DS100. Regenerated measurement_enumer.go.
Depends on volkszaehler#385.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
The InfluxDB client was used with its default write options, which drop data almost immediately when the database is down: - the retry buffer limit (50,000 points) is enforced in batches of limit/batch size = 10 batches. With one batch per 1s flush, that is only ~10s of data - batches expire after 3 minutes (MaxRetryTime) - batches are discarded after 5 retries Add an influx-buffer option (default 1h) and size the retry buffer, expiry and retry count from it. Cap the retry backoff at 30s so the backlog is written soon after the database is back. 0 disables retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
influx: keep unsent data while the database is unavailable
DS100: read neutral current
isarrider
added a commit
to isarrider/mbmd
that referenced
this pull request
Oct 26, 2026
Add a CurrentN measurement ("Neutral Current", A) and read it from
register 0x0416 on the DS100. Regenerated measurement_enumer.go.
Depends on volkszaehler#385.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
isarrider
added a commit
to isarrider/mbmd
that referenced
this pull request
Oct 28, 2026
Add a CurrentN measurement ("Neutral Current", A) and read it from
register 0x0416 on the DS100. Regenerated measurement_enumer.go.
Depends on volkszaehler#385.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3FK111BpSpYmto2BsT3Ea
Contributor
Author
|
Superseded by : #411 |
Contributor
Author
|
Continued in #411, opened from a dedicated branch instead of master, together with the neutral current, reactive energy and register fixes. |
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.
as mentioned here: 180eb1a