Commit Graph
283 Commits
Author SHA1 Message Date
efiten b01deddabc Merge pull request #62 from efiten/release/v1.29.0
release v1.29.0
v1.29.0
2026-11-29 23:05:53 +01:00
efiten b7da3293a0 release v1.29.0 2026-11-29 23:05:39 +01:00
efiten ffa0792175 Merge pull request #61 from efiten/feat/companion-battery
Show the companion battery voltage and warn when it runs low
2026-11-29 23:05:06 +01:00
efiten 840475e298 Grey the battery reading and mark it 'last known' while the link is down
After a BLE drop the last voltage stayed on screen as if current, next
to the link-down banner. renderBattery now runs every monitor tick with
the link state.
2026-11-29 22:52:25 +01:00
efiten e2b2b93464 Ignore a battery reply that lands after disconnect; reword the 0 mV case
disconnectAll resets state.batt before the transport is closed, so a
reply to the last request could put a voltage back on screen while
disconnected. No board in meshcore-firmware is known to return 0 mV for
missing sensing, so the comment and guide now describe 0 mV only as
'no reading'.
2026-11-29 22:47:31 +01:00
efiten f4d400e11f Show the companion battery voltage and warn when it runs low
Asks CMD_GET_BATT_AND_STORAGE once a minute over BLE (a local query,
nothing on air), shows the voltage in the Home status strip and an amber
warning below 3.50 V. No percentage: the companion reports a voltage
only, not its chemistry or cell count.

Closes #60
2026-11-29 22:37:51 +01:00
efiten 5b1c52e765 Merge pull request #59 from efiten/feat/play-promote
play-upload: promote a versionCode that is already on Play to another track
2026-11-27 16:05:10 +01:00
efiten c898d6f5e8 play-upload: promote a versionCode that is already on Play to another track
The first production release (2026-11-26) needed 12800, already on alpha, as a
draft on production. upload cannot do that: Play refuses a bundle whose
versionCode it already has. promote <versionCode> [--track production]
[--notes vX.Y.Z] finds the release holding that versionCode, copies its name
and notes into a draft on the target track, and leaves rolling out to the
Console, as upload does.
2026-11-26 18:15:52 +01:00
efiten 25bcbf4edb Merge pull request #58 from efiten/release/v1.28.0
release v1.28.0
v1.28.0
2026-11-24 09:08:35 +01:00
efiten 26a9c37970 release v1.28.0 2026-11-24 09:08:28 +01:00
efiten b57700f3d9 Merge pull request #57 from efiten/fix/link-down-banner
Red banner while the companion link is down; keep Home labels ticking
2026-11-24 09:08:07 +01:00
efiten 5b1c8067d5 Red banner while the companion link is down; keep Home labels ticking
A drive on 2026-11-24 lost the companion link twice (08:19:56 to 08:30:03,
and from 08:34:33 until the log was taken at 08:38:53) and nothing on screen
made that clear. The only signals were the grey discover line and a log entry.

- linkchip: a fixed red banner on every tab while the link is down, with the
  time since the drop. It hides when the link is back or the user disconnects.
- monitorTick returned early when the link was down, which also skipped the
  Home renders. "Last reception", "upload Xm geleden" and pkt/min froze at the
  moment of the drop. Only the radio jobs (region, ping, msg ticks) and the
  config retry now wait for the link; the renders keep running.
2026-11-24 09:06:15 +01:00
efiten b9dd66bd7d Merge pull request #56 from efiten/release/v1.27.0
release v1.27.0
v1.27.0
2026-11-14 14:52:24 +01:00
efiten 484487a043 release v1.27.0 2026-11-14 14:52:15 +01:00
efiten ddf92806cb Merge pull request #50 from efiten/feat/longer-debug-log
debug log: 2000 lines, a Disconnect line, and an honest reconnect line
2026-11-14 10:55:53 +01:00
efiten e2f9f671b2 Merge pull request #55 from efiten/feat/stop-and-close
android: Stop & close button on Home
2026-11-14 10:55:30 +01:00
efiten 59169ac69e android: Stop & close button on Home
Back and Home keep capture running in the background, and Disconnect sits on
Settings, so testers had no easy way to end the app. The button (native app
only) asks first while connected, disconnects, then closes the app with
@capacitor/app exitApp. Queued receptions stay and upload on the next connect.
The capture notification now points to the button.
2026-11-14 10:22:12 +01:00
efiten 45c02c74ce debug log: a line when Disconnect is pressed
The same log ends on 'ignoring MQTT events from retired publisher #1'
and a header with 'uplink no-publisher', with nothing to say that the
user stopped the capture. disconnectAll only wrote to the status line.

No test: the line is in the click handler in src/app.js, which has no
unit tests.
2026-11-12 22:11:48 +01:00
efiten 40d4aaf4f7 debug log: the reconnect from a reception no longer claims frozen timers
An AirFlyer log of 2026-11-12 (v1.24.5) shows 'timers frozen (screen
off?): reopening the CoreScope link from a reception' at 21:54:30 with
an RF sample in the same second, so the timers were running. catchUp
writes the line on every reconnect it starts, frozen or not.
2026-11-12 22:11:48 +01:00
efiten e46d4af068 Merge master (v1.26.0) into feat/longer-debug-log 2026-11-12 18:54:26 +01:00
efiten 9c2b50a166 Merge pull request #54 from efiten/fix/update-note-above-tabs
android: the update note sits above the tabs, on every screen
2026-11-12 18:37:32 +01:00
efiten 4ca9c08a56 android: the update note sits above the tabs, on every screen
On a phone the update check found 12600, but the note stayed unseen: it was on Home and the
app opens on Settings until connected. It is now fixed above the tab bar.
2026-11-12 18:22:13 +01:00
efiten bfbd9d2b4e Merge pull request #53 from efiten/release/v1.26.0
release v1.26.0
v1.26.0
2026-11-12 16:57:34 +01:00
efiten 6b219d3908 release v1.26.0 2026-11-12 16:57:20 +01:00
efiten 7bcd48d1fd Merge pull request #52 from efiten/docs/deployment-help
android: the deployment card says step by step what to do
2026-11-12 16:56:09 +01:00
efiten e65f9eca44 Merge pull request #51 from efiten/feat/rf-by-distance
rf sampler: a sample every 100 m while moving, at most 15 s apart
2026-11-12 16:56:06 +01:00
efiten fb34bd3725 android: the deployment card says step by step what to do
Three testers asked what to enter under Settings > Deployment. Until a deployment is chosen
the card now stands out (blue, title "First step: choose where your data goes") and lists
the steps: open your CoreScope on another screen, open Coverage, scan its QR code or type
the address under it. Once chosen it shrinks to one line naming where the app uploads.
2026-11-12 16:54:49 +01:00
efiten 436f859fb1 rf sampler: a sample every 100 m while moving, at most 15 s apart
A tester saw gaps between the RF hexes along a road. At 90 km/h the fixed 15 s cadence left
375 m between samples, more than one CoreScope hex at zoom 13 (about 340 m). The timer now
checks every 2 s and takes a sample once the phone moved 100 m since the last one, or 15 s
passed. Parked stays at 5 minutes. An RF sample is a Bluetooth stats query, no airtime.
2026-11-12 12:50:58 +01:00
efiten 48242e940f debug log: keep 2000 lines instead of 200
A 30 minute drive on 2026-11-12 (v1.25.0, full RF logging on) wrote about
19 lines a minute, so the exported log held only the last 10.5 minutes
(08:36:30 to 08:47:03) and two thirds of the drive had rolled out.
At that rate 2000 lines hold about 105 minutes. The same log was 14 kB
for 200 lines, so a full export is about 140 kB.

Not measured: memory or scroll cost of 2000 lines in the log view on a
phone. The view is hidden until 'Show debug log' is pressed.
2026-11-12 08:55:39 +01:00
efiten 4d388e0eb8 Merge pull request #49 from efiten/fix/qr-same-deployment
android: scanning the deployment already in use no longer restarts the app
2026-11-11 22:19:12 +01:00
efiten f83db5bd92 Merge pull request #48 from efiten/feat/r8
android: turn on R8 and send its mapping file to Play
2026-11-11 22:17:26 +01:00
efiten 734c0d0a8d android: scanning the deployment already in use no longer restarts the app
Choosing a deployment saves it and reloads the page, also when it is the one in use. On a
phone the QR scan of the same deployment dropped the companion link and cleared the debug
log. The same deployment now changes nothing; a different one asks first while connected.
2026-11-11 22:14:35 +01:00
efiten 64de7f1da4 android: log the update check's result on every start
The first R8 test run on a phone showed no update line: a check that finds nothing logged
nothing, so a check that ran was indistinguishable from one that never returned.
2026-11-11 22:07:11 +01:00
efiten eab6eb5fc1 android: turn on R8 and send its mapping file to Play
Play Console flagged the bundle: DEX optimisation low, obfuscation 1%, no deobfuscation
file, no native debug symbols. Release builds now run R8 with resource shrinking and put
the native symbol table in the bundle; play-upload.mjs --mapping uploads mapping.txt.
Release APK 6.45 MB -> 3.35 MB. Capacitor's consumer rules keep every plugin class: the
seven plugins, MainActivity and AlwaysVisibleWebView keep their names in mapping.txt.
2026-11-11 21:58:27 +01:00
efiten d1227ead81 Merge pull request #46 from efiten/release/v1.25.0
release: v1.25.0
v1.25.0
2026-11-11 21:38:50 +01:00
efiten 28f25b01f9 release: v1.25.0 notes include the update note (#47) 2026-11-11 21:38:28 +01:00
efiten 45bf0ed486 Merge remote-tracking branch 'origin/master' into release/v1.25.0 2026-11-11 21:38:12 +01:00
efiten 68e92da4f2 Merge pull request #47 from efiten/feat/update-notice
android: tell on Home when a newer version exists
2026-11-11 21:38:09 +01:00
efiten 3aa6e1ec2c android: tell on Home when a newer version exists
Google Play updates silently and late, and a GitHub APK never updates by itself. At start
the app asks Play's in-app update API (@capawesome/capacitor-app-update 8.1.1); for a Play
install Play decides, and a tap starts the update in Play. Any other install compares its
version with version.json of its deployment, now written by every web build.
2026-11-11 21:37:10 +01:00
efiten 088ad29c35 release: v1.25.0 2026-11-11 21:31:14 +01:00
efiten 45c9c3e23c Merge pull request #45 from efiten/fix/web-stale-fix
web: never stamp a reception with a fix from before the page went to the background
2026-11-11 21:29:53 +01:00
efiten e3d7d96b54 web: never stamp a reception with a fix from before the page went to the background
A hidden page gets no GPS updates while Web Bluetooth can still deliver packets, so a
reception was stamped with the last position from before the page was hidden. Fixes now
carry their receive time; a hidden page only uses a fix up to 30 s old (receptions, RF
samples, pings). After a minute or more in the background while connected, Home says how
long and how many receptions were saved or not saved.
2026-11-11 21:27:19 +01:00
efiten 891c536e3b Merge pull request #44 from efiten/fix/ask-refused
regions: name the companion's refusal of an ask instead of 'no send-ack'
2026-11-11 21:25:05 +01:00
efiten dd512261a4 regions: name the companion's refusal of an ask instead of 'no send-ack'
A companion up to firmware v1.16 answers CMD_SEND_ANON_REQ for a repeater that is not a
contact with ERR_CODE_TABLE_FULL when its contact list is full
(BaseChatMesh::allocateContactSlot); v1.17 reserves 8 slots for these asks. The app only
listened for RESP_CODE_SENT, so the refusal showed as a 4-second 'no send-ack'. The ask
now resolves on that error, logs the cause, and the header counts the refusals.
2026-11-11 21:22:42 +01:00
efiten 7c35733bdb Merge pull request #43 from efiten/docs/batched-releases
AGENTS: batch releases instead of one per fix
2026-11-11 21:19:31 +01:00
efiten abba0beb0e AGENTS: fix PRs say whether they need a release now 2026-11-11 21:19:04 +01:00
efiten a378d773f1 AGENTS: batch releases instead of one per fix
Fix PRs land on master without version, release notes, SW cache bump or tag. A release PR
collects them and is then tagged, deployed, built and uploaded to Play as a draft. Each
Play upload is reviewed by Google and updates every tester.
2026-11-11 21:18:11 +01:00
efiten aaa845728a Merge pull request #42 from efiten/fix/rf-resume-cadence
rf: re-arm the sampler at the moving cadence when moving again (v1.24.5)
v1.24.5
2026-11-11 21:10:23 +01:00
efiten e7376f0990 rf: re-arm the sampler at the moving cadence when moving again
While parked the next RF sample is armed 5 minutes out. On 'moving again' that timer kept
running, so the first minutes of a drive had no samples (4 min 19 s in a 2026-11-11 log,
20:20:28 to 20:24:47). setPaused(false) now re-arms it at 15 s when it was due later.

Release v1.24.5, SW cache v65.
2026-11-11 20:43:07 +01:00
efiten 406802f8a2 Merge pull request #41 from efiten/fix/webview-stays-visible
android: keep the WebView running with the screen off (v1.24.4)
v1.24.4
2026-11-11 20:29:20 +01:00