Merge pull request #62 from efiten/release/v1.29.0

release v1.29.0
This commit is contained in:
efiten authored and GitHub committed 2026-11-29 23:05:53 +01:00
commit b01deddabc
4 files changed
+34 -4

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# CoreDrive RX v1.29.0
The companion's battery voltage on Home, with a warning when it runs low.
## What's new
- **Companion battery voltage on Home.** The status strip shows the companion's battery
voltage, for example `🔋 3.92 V`, asked once a minute over Bluetooth. Nothing is sent on air.
When the companion reports 0 V, nothing is shown. Requested in
[#60](https://github.com/efiten/coredrive-rx/issues/60): a T1000-E companion died without
warning.
- **Low-battery warning.** Below 3.50 V an amber "Companion battery low" line appears on Home.
The threshold is for a single-cell LiPo. A 2-cell board (such as the T-Beam 1W) never drops
below it, so it shows the voltage without a warning.
- **No percentage.** The companion reports a voltage only, not which battery it has, so a
percentage would be a guess.
- **Last known value while the link is down.** When the Bluetooth link drops, the voltage and
the warning turn grey and are marked "(last known)".
## Tested
- 515 automated tests, 7 of them new for the battery reading.
- The built page in a headless Chrome render.
- Not tested on a phone or companion: a real battery reply, the low warning, and the grey
state during a link drop.
## Upgrade notes
- **Service-worker cache bumped to `coredrive-rx-v70`.**
- No data, config or MQTT payload change.
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "coredrive-rx",
"version": "1.28.0",
"version": "1.29.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coredrive-rx",
"version": "1.28.0",
"version": "1.29.0",
"license": "GPL-3.0-or-later",
"dependencies": {
"@capacitor-community/background-geolocation": "1.3.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "coredrive-rx",
"version": "1.28.0",
"version": "1.29.0",
"private": false,
"license": "GPL-3.0-or-later",
"type": "module",
+1 -1
View File
@@ -1,7 +1,7 @@
// Minimal service worker: makes the app installable and lets the shell load
// offline. Network-first (always fresh online), cache fallback (offline).
// Only the static app assets go through fetch; MQTT runs over WSS (not cached).
const CACHE = 'coredrive-rx-v69';
const CACHE = 'coredrive-rx-v70';
// config.json is deliberately NEVER cached, in either direction. It is
// per-deployment runtime config, and a stale copy is worse than none: flags added