263 Commits
Author SHA1 Message Date
MrAlders0n 23fcdadf2e feat(routes): crossings between two groups of areas and repeater reach, as endpoints and MCP tools 2026-12-04 14:19:57 -05:00
MrAlders0n ec1984dda3 feat(routes): relays that carry traffic between two areas, as an endpoint and an MCP tool 2026-12-03 06:23:49 -05:00
MrAlders0n abfd353189 feat(meshmapper): import measured repeater range 2026-12-02 21:03:27 -05:00
MrAlders0n a62c652e05 feat(polling): store what a signed reading says of requested
The poller view returns it as latestReadingRequested, null when the reading does not say.
2026-12-02 14:07:38 -05:00
MrAlders0n d3e6cbd04c fix(mcp): charge every read, contain handler panics, keep cursors intact
Also sets a write deadline on MCP responses so a client that stops
reading cannot hold up change notices, and checks that an ID exists
before the find tool reports it.
2026-12-02 12:31:13 -05:00
MrAlders0n f93983cea0 feat(mcp): add an optional read-only MCP endpoint
Serves the public read API to AI assistants at /mcp. Off by default;
private when mcp.keys are set, public otherwise. Tools call the REST
handlers in-process, so validation, guards and errors match REST.
2026-12-02 12:24:54 -05:00
MrAlders0n b661b7a803 feat(api): require Beacon Web and BEACON Mobile 2.3.4 2026-11-29 23:00:23 -05:00
MrAlders0n a7c36e8e76 feat(polling): decode sensor channels from LPP and serve them with node telemetry
Humidity, pressure, gas and power monitor channels are decoded when a reading is stored. Positions and altitude are never decoded. Fixes the humidity size, which is one byte on the wire.
2026-11-29 21:09:23 -05:00
MrAlders0n 1ddd1e862f feat(alerts): telemetry alerts for any repeater with fresh readings, and a telemetry stopped alert
A repeater read by a poller this server does not assign now counts as polled while a trusted reading is under 36 hours old. gone_quiet takes 3 and 6 hours on every radio.
2026-11-29 20:51:32 -05:00
MrAlders0n 9820de5398 feat(api): say when an outside observer on a repeater has no claim at all
claimed is false for a stale claim too, so it cannot tell a local mode
observer from a foreign poller that went quiet.
2026-11-29 20:08:05 -05:00
MrAlders0n 2e88323a9a feat(api): tag an observer that sends readings and no claim a local poller
isLocalPoller on nodes, and its poller view lists the repeaters it sent
readings for in the last day.
2026-11-29 14:48:00 -05:00
MrAlders0n f738b024f1 feat(api): a foreign polling claim tags the node a poller
isPoller and the poller filter now count foreign claims; isForeignPoller says which kind.
2026-11-29 09:01:50 -05:00
MrAlders0n 7c8ec6dbd6 feat(api): poller view reports the latest reading's rssi and signature 2026-11-29 05:56:20 -05:00
MrAlders0n ff8637b4ab feat(polling): tell this server's observers from foreign ones
polling.foreign_claims: check takes a claim as this server's own only
when its signed poll_url names DOMAIN, or, for firmware that sends
none, when a rebroadcaster says it arrived on one of polling.mqtt_hosts.
Any other claim is foreign, and one that can be placed neither way is
dropped. The default, off, treats every claim as its own, as before.

A foreign observer is kept out of polling_claims, so it is never a
poller or standby, gets no owners answer and takes no request. Its
readings are stored, marked foreign and trusted on the same advert
evidence. A reading with no claim behind it is kept as foreign too.

Claims that carry a signature are verified with the observer's key in
every mode; a wrong one is dropped. Asking for telemetry on a repeater
a foreign observer already checks needs acknowledgeForeign.
2026-11-28 20:32:20 -05:00
MrAlders0n f360fbe8db feat(ingest): read source brokers from a rebroadcaster over MQTT 5
MQTT_BROKER_n_REBROADCAST=true marks a broker that forwards from other
brokers and names each message's source in the source-broker and
source-host user properties. The worker then connects with MQTT 5 and
records packets, observations and observer brokers under the source
name. Without it the connection is 3.1.1 as before.

Each packet keeps the set of brokers it arrived through (brokers on
packet detail). Observer broker lists and the broker filter cover the
last 30 days, and GET /brokers/sources lists the names for the filter.
2026-11-28 20:15:44 -05:00
MrAlders0n 69ed88b6f5 feat(config)!: take the public address from DOMAIN, drop accounts.public_url
The server now reads DOMAIN, and WEB_DOMAIN when the web app is on
another host, for mailed links and the portal callback. A leftover
accounts.public_url is ignored with a startup warning.

Release note for the next production release: accounts.public_url is
removed and no longer needed. Accounts need DOMAIN in the server's
environment; the Docker stacks already set it. Docs need the same
update.
2026-11-28 20:01:21 -05:00
MrAlders0n 2ae10ca1a5 revert: foreign polling claims, until the design is settled 2026-11-28 16:54:58 -05:00
MrAlders0n 306128a4bd feat(polling): rank observers that follow another server behind our own
A claim can reach a server its observer does not ask for policy. Tell
them apart by the claim's poll_url, or by whether the observer asked
this server lately, and keep such observers out of requests.
2026-11-28 16:26:43 -05:00
MrAlders0n 54ea8bdfdf feat(polling): store a claim's max_slots and poll_interval
The slot limit now follows the claim instead of a fixed 8 (default 8, ceiling 32), in the poller view and in the seat math. The poller view also reports pollIntervalMinutes.
2026-11-28 11:08:50 -05:00
MrAlders0n 4dc582938f docs(api): say what interval=1h returns and what a free seat is 2026-11-27 20:05:21 -05:00
MrAlders0n 409848cb75 fix(ingest): store one reboot row a window and drop late copies
A status with a lower uptime stored a row at once every time, so falling or
negative uptimes and boot loops wrote a row and an alert per message. Now a
window takes one immediate reboot row, a negative uptime is unusable, and a
late copy of the boot's first status (the other broker's delivery) is dropped
instead of reading as a second reboot.

The tracker records a status only once its row is written, so a failed insert
leaves the reboot for the other broker's copy. The row after an immediate
reboot row is stamped on arrival, so the gap between the two is the time that
passed.
2026-11-27 20:05:12 -05:00
MrAlders0n 705564b384 feat(atlas): accept the poller view on pins 2026-11-27 09:59:42 -05:00
MrAlders0n 47e6783ce7 feat(polling): trust self-configured readings without adverts, evidence_window setting
Readings of a repeater an observer polls on its own were hidden unless it heard a zero-hop advert in the last 24h. They are now trusted while no assignee of that repeater has advert evidence. The window is polling.evidence_window, default 7d.
2026-11-27 08:02:29 -05:00
MrAlders0n 5295b59440 feat(api): add the poller read for a node 2026-11-27 06:49:07 -05:00
MrAlders0n 3bfbba86a6 fix(api): apply region and regionId to the message lists 2026-11-26 21:46:06 -05:00
MrAlders0n 564e904c3d feat(api): flag pollers on nodes and filter by them 2026-11-24 23:02:03 -05:00
MrAlders0n 4fdb3f75dd feat(atlas): accept a 7d range 2026-11-22 22:58:09 -05:00
MrAlders0n 50850f5314 feat: refuse telemetry requests on observers 2026-11-22 21:48:23 -05:00
n30nex 16e2a2a72b feat(api): send a TRACE observation's on-air path bytes as wirePathBytes (#307)
pathBytes keeps the payload's hop hashes for a TRACE, so the raw frame could not be rebuilt from it.
2026-11-19 20:32:42 -05:00
n30nex f3ec988d0b fix(api): keep a route evidence cursor on the path representation its first page matched (#304) 2026-11-19 09:35:00 -05:00
n30nex 14c3ad3e46 fix(api): return nothing for an empty region instead of every region (#337)
Lists of nodes, observers, packets, messages, trace tags and latest readings
treated a region with no IATAs as no filter.
2026-11-19 09:30:18 -05:00
n30nex 0a80901616 fix(api): answer 400 for malformed numeric route and trace filters (#314) 2026-11-19 09:29:57 -05:00
n30nex 82ee77b18e fix(api): answer 500 instead of an empty 200 when a response cannot be encoded (#297) 2026-11-19 09:29:42 -05:00
n30nex 2484fd4599 fix(api): refuse a node activity range shorter than an hour (#312) 2026-11-19 09:29:37 -05:00
n30nex a85ada267e fix(api): accept an Atlas body of up to 256 KiB so a full 100-pin Atlas fits (#341) 2026-11-19 09:29:10 -05:00
MrAlders0n c89c1e924c Let the app name its own session on sign-in 2026-11-18 23:30:10 -05:00
MrAlders0n 35e08e318b feat(api): raise the app and web floors to 2.3.0 2026-11-18 07:29:04 -05:00
MrAlders0n 90c2ece473 feat(alerts): email and push channels through the push server
Alerts go out by email, by push or both, as each user chooses. Push is
sent through the push server with the operator's Push ID and secret and
sealed per device, so this server no longer holds a Firebase key. The
outbox tracks each channel, so a retry of one never repeats the other.
2026-11-17 20:22:51 -05:00
MrAlders0n cdb581e9da feat(config): make the Atlas cap configurable, default 20, and raise requests per user to 6 2026-11-16 21:23:30 -05:00
MrAlders0n eb913d6cce Add a route for the latest reading of every polled node 2026-11-15 20:15:58 -05:00
MrAlders0n 31d2cf5dc2 Add display unit config and serve it in info 2026-11-15 20:13:00 -05:00
MrAlders0n 2819d60ca2 Accept a telemetry view and tiles on Atlas pins, add a 72h telemetry range and the atlasTelemetry flag 2026-11-15 19:41:23 -05:00
MrAlders0n cf9b690e03 Report the poller's own state on a telemetry request 2026-11-15 17:21:44 -05:00
MrAlders0n af2292bbdb Limit concurrent password hashing 2026-11-15 08:19:12 -05:00
MrAlders0n c206a112cb Return the Atlas a save committed 2026-11-15 07:59:32 -05:00
MrAlders0n e666b9c896 Stop telemetry alerts when polling stops 2026-11-15 03:34:41 -05:00
MrAlders0n c8f53c9d23 Add ids, a polled flag and reason codes to alert targets 2026-11-15 02:23:18 -05:00
MrAlders0n 364e78eb53 Keep a push token with one account 2026-11-15 01:50:46 -05:00
MrAlders0n 26ccf6d4db Add alert rules and device registration 2026-11-15 01:48:15 -05:00
MrAlders0n 35468cc7cc Add sign-in through the MeshMapper portal 2026-11-15 01:40:24 -05:00