Batteriespannung: Diagramm-Y-Achse fest 10-15V, Plausibilitätsgrenze auf 10V angehoben
Die Y-Achse beider Batteriespannungs-Diagramme (Panel und companion-app) war bisher aus den sichtbaren Punkten berechnet - jetzt fest 10-15V, auf Nutzerwunsch (zunächst 8-15V, dann auf 10-15V korrigiert). SPANNUNG_MIN_V (batterie.py) auf denselben Wert angehoben, damit die Plausibilitätsgrenze zur Achse passt - historienimport.py übernimmt den Wert automatisch, da er von dort importiert statt dupliziert wird. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -3209,6 +3209,31 @@ vehicle photos, PWA service worker in this test environment), nothing new. compa
|
||||
clean, full suite green at 146/146, `npm run build` and `npm run ota` both succeeded (bundle rebuilt at
|
||||
`2026.8.27.1`). Manifest bumped `2026.8.25.9` → `2026.8.27.1`.
|
||||
|
||||
**Same-day follow-up (2026.8.27.2): two smaller items found/requested while verifying the above.**
|
||||
(1) A stale `min: 0.0` day-entry sat in `batteriespannung.jsonl`, recorded at 09:46 that day - **before**
|
||||
the 15:12 restart that deployed the 8V plausibility floor (`SPANNUNG_MIN_V`, section T). The floor only
|
||||
rejects *new* sub-8V readings going forward; it doesn't retroactively purge what was already stored, so the
|
||||
0V value kept showing until removed. Deleted via the app's own `batterieverlauf_loeschen` service (the same
|
||||
one the measurement list's swipe-to-delete uses) - not a code fix, a one-off data cleanup; the real instance
|
||||
would need the same swipe-delete if the same stale-reading symptom ever shows up there.
|
||||
(2) **Owner request: "Diagram Axis for Voltage: 8V to 15V"** (both battery voltage diagrams - the panel's
|
||||
zoomable `#bvChart` and companion-app's `Verlaufsdiagramm` in `Batterie.tsx`, neither of which had a fixed
|
||||
axis before, both computed min/max from the visible data ± padding). Both now draw a fixed Y-axis instead of
|
||||
the data-driven range they used before - simpler, and the panel's `bvYDomain` no longer needs computing at
|
||||
all when there's data, it's just a fixed pair of endpoints. Two immediate owner follow-ups the same session
|
||||
adjusted the endpoints twice more: **8-15V → 10-15V** (`2026.8.27.3`), then **the `SPANNUNG_MIN_V`
|
||||
plausibility floor itself raised 8.0 → 10.0 in `batterie.py`** to match (`2026.8.27.4`) - `historienimport.py`
|
||||
imports the constant rather than duplicating it, so it picked up the new floor with no separate edit needed,
|
||||
consistent with the live/import parity rule elsewhere in this file. The floor's module docstring was softened
|
||||
from "physikalisch nicht plausibel" (no longer strictly true at 10V, a real if unlikely reading for a failing
|
||||
battery) to "gilt als unplausibel" (an owner-set threshold, not a hard physical limit). Verified live at each
|
||||
step: axis labels read `10,0 / 11,7 / 13,3 / 15,0` on the panel after the last change; companion-app confirmed
|
||||
via `tsc --noEmit` each time (no dedicated visual check - same fixed-endpoint math, no zoom/pan feature to
|
||||
interact with there); `batterie.py` re-`py_compile`d clean after the floor change. Manifest bumped
|
||||
`2026.8.27.1` → `.2` → `.3` → `.4`, `npm run ota` rerun for the two frontend-touching steps, `audi_ha_test`
|
||||
restart confirmed clean via log at every step (single `audi_dashboard` loader warning each time, no
|
||||
duplicate-domain regression).
|
||||
|
||||
---
|
||||
|
||||
## Working conventions (observed — keep them)
|
||||
|
||||
Reference in New Issue
Block a user