536 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 a2b81b8c09 fix(polling): accept claims and readings signed in the v2 formats
Poll firmware from 2026-12-03 signs corescope-reading/v2 and corescope-claim/v2, which add poll_key, access and key, and sends requested as false for an own target. Those were all dropped. v1 still verifies, for a message with none of the new fields. reply_hops may now be left out.
2026-12-03 20:37:56 -05:00
MrAlders0n d00322d7ad fix(ingest): fill missing rssi/snr from a later broker copy
Some brokers strip SNR and RSSI from the packet envelope. When their copy
of a hearing was stored first, the row kept no signal. A duplicate with the
same path now fills the fields the stored row lacks; stored values and the
rest of the row are left as they are.
2026-12-03 16:30:44 -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 aab814b230 feat(mcp): country and continent on areas, with country and search filters 2026-12-02 19:29:24 -05:00
MrAlders0n 3db97cd07c fix(mcp): every payload type in packet search, packet lookup by hash prefix 2026-12-02 19:28:27 -05:00
MrAlders0n 4f5486daee fix(mcp): list up to 1000 areas and say when the list is cut 2026-12-02 15:00:41 -05:00
MrAlders0n adddaca3e8 feat(mcp): area and node comparison, more list tools, sensor and direction filters 2026-12-02 14:37:49 -05:00
MrAlders0n dc64432e7e feat(mcp): allow 8 concurrent calls per client by default 2026-12-02 14:08:41 -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 4273bcaa65 fix(mcp): split the overflow budget by network 2026-12-02 12:35:10 -05:00
MrAlders0n 61fe5aefae fix(mcp): share an overflow budget when the rate table is full 2026-12-02 12:33:54 -05:00
MrAlders0n 33a0981fde fix(mcp): reset a full rate table instead of refusing new clients 2026-12-02 12:32:39 -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 41ede6cc73 fix(polling): accept readings signed with the requested part 2026-12-02 11:56:33 -05:00
MrAlders0n a6705a774e fix(alerts): telemetry stopped rules go inactive while polling is off 2026-11-29 23:35:34 -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 36a354a409 fix(ingest): send each MQTT 5 packet as one websocket frame
mosquitto 2.1 drops a rebroadcaster connection over ws/wss as malformed
when a packet is split across frames.
2026-11-29 12:54:34 -05:00
MrAlders0n c0ad27d7aa feat(mail): add mail.tls_skip_verify for servers with untrusted certificates 2026-11-29 10:41:23 -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 623fda1562 fix(polling): signed messages take lowercase keys only 2026-11-28 23:17:45 -05:00
MrAlders0n 0c71c2cba0 fix(polling): a signed message cannot repeat a key in another case 2026-11-28 23:16:13 -05:00
MrAlders0n 6bc7877a05 feat(polling): check signed readings and store the reply rssi
A reading that carries a signature is dropped when it does not verify. Unsigned readings are handled as before. Signed claims and readings with a repeated key are refused.
2026-11-28 23:13:28 -05:00
MrAlders0n c7cc6bc45a feat(ingest): name a broker connection with MQTT_BROKER_n_NAME
The name is stored and shown wherever mqtt1 and mqtt2 were: packet
brokers, observer brokers, the broker filter and /brokers. Unset keeps
the old names.
2026-11-28 22:28:55 -05:00
MrAlders0n 260421ea88 fix(polling): a signed claim's state must be a plain word
The signature covers each target as id:state:misses:requested, joined
with commas. A state that could hold those separators let a relay fold
a second target into the first one's state without breaking it.
2026-11-28 21:05:18 -05:00
MrAlders0n f9a204e35e fix(polling): close the gaps review found in foreign claims
Whether a claim may replace what an observer has stored, own or
foreign, is now decided in one place under the observer's seat lock: an
older claim never undoes a newer one, the claim spacing holds across
both kinds, and an unsigned claim is refused while a signed one is
live. An observer that turns foreign loses every assignment in the same
transaction, requested ones its claim does not name included.

A server that starts checking drops the claims that were not placed
under its current host and broker list. A foreign reading never counts
as a repeater's newest; one from an observer this server assigned the
target stays its own; with authority approved it needs approval to be
trusted. A null sig or poll_url is refused. A packet's broker set only
grows. The foreign reading lookups get a partial index (093), the
MQTT 5 connected flag follows the current connection only, and queued
messages are charged for their source.
2026-11-28 20:49:32 -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 24da3c187d fix(api): count a poller's free seats honestly and read it in one statement
slots.free is 0 when the claim is expired or takes no requests, and no longer
counts seats already handed to the observer that its claim does not name yet.

The claim and its targets were three statements, so a claim replaced between
them gave one claim's slots with the other's targets. They are one statement
now, as the Atlas read 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 09ef3f60e6 fix(ingest): store observer reboots at once, default telemetry resolution to 15m
One snapshot an hour held a reboot alert back by up to an hour and could hide
a reboot whose uptime had grown past the last stored one.
2026-11-27 07:20:35 -05:00
MrAlders0n 5295b59440 feat(api): add the poller read for a node 2026-11-27 06:49:07 -05:00
MrAlders0n 328968c0aa docs: say what each polling, mail and accounts setting does in the config example 2026-11-27 06:00:59 -05:00
MrAlders0n d376cb84a7 fix(polling): expire old claims and readings with polling off
The cleanup only ran with polling on, so Poller tags from an earlier run never cleared.
2026-11-26 21:46:06 -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