diff --git a/docs/releases/v1.29.0.md b/docs/releases/v1.29.0.md new file mode 100644 index 0000000..2ce2105 --- /dev/null +++ b/docs/releases/v1.29.0.md @@ -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. diff --git a/package-lock.json b/package-lock.json index b7a157d..75a23ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 71cb6ec..c21c0ee 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/public/sw.js b/public/sw.js index d6e7e88..f7bf157 100644 --- a/public/sw.js +++ b/public/sw.js @@ -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