fix: make repeater stats battery display board-aware
Цей коміт міститься в:
@@ -153,6 +153,7 @@ Notes:
|
||||
- this summary view is also what the repo's web panel requests first before loading trend series
|
||||
- if `web.stats` is disabled, the endpoint returns `503 Service Unavailable`
|
||||
- supported boards may also include an optional `sensors` object in the summary payload for current GPS and environmental telemetry
|
||||
- the `core` object includes raw `battery_mv`, board-reported `battery_pct` when available, a UI-ready `battery_display_pct`, and board-specific `battery_min_mv` / `battery_max_mv` range hints used by `/stats` when the board does not expose its own battery percentage
|
||||
|
||||
### `GET /api/stats?series=<name>`
|
||||
|
||||
|
||||
@@ -224,6 +224,8 @@ For boards that expose extra telemetry, the optional `Environment` summary card
|
||||
|
||||
Metrics with no current value are hidden rather than showing placeholder rows, so the cards vary by board and by current sensor state.
|
||||
|
||||
The `Core` battery meter prefers a board-reported battery percentage when the target exposes one. Otherwise it scales the displayed percentage from the board's configured battery voltage range rather than assuming a fixed single-cell `3000-4200 mV` pack.
|
||||
|
||||
The trend graphs load sequentially rather than as one large payload:
|
||||
|
||||
1. summary/status
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача