Skip to content

v1.2.0

Latest

Choose a tag to compare

@agessaman agessaman released this 14 Nov 18:07
52a5f1c

v1.2.0 builds on v1.1.0. Nothing was removed or renamed, so your existing config.ini keeps working.

Before you upgrade

With web_viewer_password set, part of the web viewer is now public. The Dashboard, Contacts, Mesh Graph and Multibyte pages are readable without logging in. Real-time, Radio, Config, Logs, the settings pages and every API that changes something still need an admin login. If node names, positions and the mesh graph shouldn't be public on your network, keep the viewer off the internet or put it behind your own proxy authentication.

Only one bot runs against a database. A second bot with the same db_path exits with status 1 and names the PID of the one already running. A bot started from a terminal now stops when that terminal closes; run it as a service, or under nohup or tmux, if you start it over SSH. The systemd unit waits for a running instance instead of failing, but install-service.sh only replaces an existing unit with --upgrade.

The Docker healthcheck tracks the bot's event loop through a heartbeat file beside the database, instead of only checking that PID 1 exists. An offline radio stays healthy. A healthcheck defined in your compose file overrides the image's.

A few defaults change what goes on air: channel messages are sized to 155 bytes, region warnings follow the channel's flood scope, an unacknowledged DM takes at least 24 seconds to report failure, and last-fri in a schedule key now means the last Friday. No dependency changes and no database migrations this time.

docs/upgrade.md has the full list.

What's new

An official Home Assistant add-on. Add https://github.com/agessaman/meshcore-bot as an add-on repository, and the bot runs under the Supervisor with the web viewer in the sidebar through ingress. The radio connection, bot name, log level and viewer password are add-on options; everything else stays in config.ini. The add-on image is 64-bit (amd64 and aarch64); the regular Docker image keeps its 32-bit ARM build.

Thanks to @bigmac5753 for asking for it (#366), and to @vipje, whose own add-on (#305) showed the way.

Repeater watch. Pick the repeaters you look after on Settings → Repeater Watch, and the bot tells you when one goes quiet and when it's heard again, on channels, DMs, Discord or Telegram. It only judges silence it was listening for, so a fault on the bot's own radio isn't reported as every repeater going down. Thanks to @xoma4ok for the request (#353).

Schedules that match how nets actually run. [Scheduled_Messages] keys take last-fri, 4th-tue and similar, values take start= / end= dates and week=*/2 for every other week, and the web viewer's schedule editor has matching One day a month and Weeks options.

A web viewer that tells you what's going on. Real-time is one tape of what the radio heard, with each packet, the message decrypted from it and any command it triggered on one row, and older rows fetch their packet on demand. Recovery notices say when the radio came back and how long it was gone. A fresh install shows what the station is doing instead of a grid of empty boxes. Every front-end library is served by the viewer itself, so it works on a LAN with no internet, and the Plugins page now covers every plugin setting, with a placeholder reference on every template field.

Weather. wx can fall back to Open-Meteo outside NWS coverage, follows your temperature and wind units, and gwx gains hourly. A long run of fixes makes both read NOAA and Open-Meteo more faithfully: gusts, wind directions, Tonight and Tomorrow, places on the equator, forecasts dated by the location, and replies that fit in one message.

Smaller additions. The {path_names} placeholder shows a route as short repeater names (BlackHls▸KalamaSum▸KelsoG3), naming only hops it's confident about. Packet capture status messages carry the radio's packet counters, and the guide has a working waev.app broker. A channel send over the byte budget is split into tagged parts instead of being truncated by the firmware.

Thanks to @Treehouse-00 for the packet counters, @CoderNemesis26 for the message splitting and byte-limit fixes, and @8Thomas8 for the footer link.

Thanks as well to everyone who filed issues this cycle, including @speedloc (duplicate replies after a BLE reconnect, #364), @thebitstick (the Nix build, #352), @UgoPoddine (DM ACK timeouts, #290), @lucasavona (region-warning scope, #306) and @VarthData (the newline escape, #277).


Added

  • Home Assistant add-on in homeassistant/meshcore_bot. Add https://github.com/agessaman/meshcore-bot as a repository in the add-on store. Options set in the add-on configuration override the matching config.ini keys on each start. Options left empty leave those keys alone. The web viewer opens from the sidebar. The image is ghcr.io/agessaman/meshcore-bot-ha (amd64 and aarch64).
  • [Web_Viewer] ha_ingress (default false) serves the web viewer through a Home Assistant ingress panel: requests from the Supervisor's proxy skip the password login, and links and Socket.IO traffic use the ingress path. When no web_viewer_password is set, the viewer fails closed: requests that do not come through the Supervisor get 403 (JSON under /api/) until a password is set, while the sidebar panel keeps working.
  • Nth and last weekday of the month in [Scheduled_Messages] keys. The day-of-month field now accepts APScheduler's positional expressions with - (or _) standing in for the space that would otherwise split the crontab fields: 0 19 last-fri * * is the last Friday, 0 19 4th-tue * * the fourth Tuesday, and 0 19 1st-tue,3rd-tue * * the first and third—patterns recurring nets need and plain 5-field cron cannot express, which previously forced a hand-rolled day-of-month list that drifts across months of different lengths. Expressions without one of these prefixes are passed to APScheduler untouched, so standard crontab keys parse as before. One existing key changes meaning: APScheduler read last as a prefix, so a key written as 0 19 last-fri * * before this release ran on the last day of the month; it now runs on the last Friday, as written. A malformed ordinal (last--fri, lastfri, last-fri/2) and a positional day combined with a day-of-week (0 19 1st-tue * mon, which never fires) are now rejected instead of quietly falling back, and any schedule with no run left is reported instead of listed as scheduled. Positional expressions are valid only in the day-of-month field; 0 19 * * last-fri is rejected.
  • Optional start= / end= date bounds on [Scheduled_Messages] values, for a schedule that should only run over a date range: 0 19 last-fri * * = start=2027-01-01 end=2027-03-31 Public:Winter net. They sit on the value rather than the schedule key, ahead of the channel and keyed with =, so they never collide with the : separating channel from message and a body mentioning start= is never misread as a bound. Either may be omitted and order does not matter; the end date is inclusive of that whole day. A schedule with no runs left is skipped at startup with a log line saying why, and the web viewer's schedule page gains start/end pickers, shows a bounded entry's window and marks an exhausted one Finished.
  • Every other week in [Scheduled_Messages]: week= on the value takes an ISO week-number expression, so 0 20 * * tue = week=*/2 Public:Net runs on alternate Tuesdays without the three-week gap 1st-tue,3rd-tue leaves when a month has five. week=2-53/2 is the other alternation. In a 53-week year the odd setting runs two weeks running at New Year.
  • The web viewer's schedule editor has a One day a month option (the 2nd Wednesday, the last Friday, the last day) and a Weeks setting for every other week, and opens an existing entry in whichever option reproduces it exactly instead of always in Advanced. An invalid schedule's error now says what is wrong with it. Scheduled messages have their own docs page.
  • Packet capture status messages include the radio's packet counters, as meshcore-packet-capture's do: packets_received and packets_sent, plus the firmware's own recv, sent, flood/direct counts and recv_errors. Dashboards that show an observer's packet counts had none for the bot.
  • Repeater watch (#353): pick the repeaters you look after on the new Settings → Repeater Watch page, and the bot reports when one goes quiet. A watched repeater is offline once it has gone offline_after_hours (default 24) with no advert and no relayed traffic. Relaying is matched by public key, or by a 2- or 3-byte prefix no other repeater shares. One notice goes out when it goes offline and one when it is heard again, to any mix of channels, DMs, Discord and Telegram. The bot only judges silence it was listening for: the clock restarts after a long downtime or a radio outage, and checks pause while the bot hears no node at all, so a fault on the bot's own radio isn't reported as every repeater going down. The page shows each watched repeater's last advert, last relay and quiet time against the threshold, plus recent outages. Settings live in [Repeater_Watch] and apply without a restart. Off by default.
  • Web viewer, fresh install: until the bot has heard anything, the dashboard shows one panel instead of a grid of empty boxes, saying what the station is doing (listening, starting, or not running), what fills in first (nodes, then paths and hops, then one-hop neighbors), and, for admins, links to Real-time and Radio settings. Real-time's empty tape says how long the bot has been listening ("Listening since 2:28 PM (12 min) · nothing heard yet") and, after ten minutes with nothing, where to look.
  • Web viewer recovery notices: when the bot starts running again or the radio reconnects, answers again or comes back online, a notice says so with how long it was down ("Radio back online at 2:23 PM · offline for 42 min, since 1:41 PM") and dismisses itself. Real-time records these, and dropped live links, as dividers on the tape. A dropped link's divider says whether the reconnect's replay covered the gap or which span isn't shown, and the 10-minute spark draws an uncovered span as unknown.
  • Real-time looks up the packet behind an older message or command when you open its row. On load the page replays the newest 50 messages and the newest 50 packets, and packets reach back far less, so older rows used to show only "packet not on the tape". Opening one now fetches that packet's receptions from the bot's log (new admin endpoint GET /api/packets/by-hash/<hash>?near=<epoch>), and the row fills in its route, path, receptions and Inspect bytes. If the packet isn't in the log (it keeps 3 days), the detail says so.
  • Real-time has an RX lamp on its receiver strip that lights as each packet arrives (dark under reduced motion), and the dashboard's New nodes tile names the newest arrival ("newest: N7JMV-BEACON-RP · 7 hops · 1h ago").
  • [Weather] openmeteo_fallback (default false, only with weather_provider = noaa): wx answers a place outside NWS coverage from Open-Meteo, in gwx's format and wx's units, instead of replying with an error. Current conditions, tomorrow, Nd and hourly fall back; wx <place> alerts there replies that alerts are not available. Only NWS's no-coverage answer triggers it, not timeouts or server errors, and the point is remembered for 24 hours so later requests skip NWS. It's also in the web viewer's wx settings.
  • [Weather] always_show_location (default false): when true, wx and gwx name the place in every reply a place is found for (Lake Stevens, WA: …), including ZIP codes and cities in the bot's own state or country, instead of only when the name adds information. The name takes message length from the forecast, and a ZIP code costs one extra reverse lookup. It's also in the web viewer's wx settings.
  • gwx <place> hourly: the next hours from Open-Meteo, packed into one reply like wx's NOAA hourly forecast (time, condition, chance of precipitation, temperature, wind), in the configured units and translated. gwx listed hourly in its help but read it as part of the place name. wx with weather_provider = openmeteo gets it too.
  • Web viewer admin role when web_viewer_password is set: Dashboard, Contacts, Mesh Graph and (when the multibyte monitor is on) Multibyte are readable anonymously; Real-time, Radio, Config, Logs, and all mutating APIs require an admin session. Real-time's live Socket.IO streams (and /api/channels) can expose decrypted traffic and channel keys, so the page redirects anonymous visitors to the login page and drops out of their navigation instead of showing them an empty page.
  • [Weather_Service] weather_alerts_enabled (default true) turns the NOAA weather-alert polling loop off on its own. Alert monitoring previously started unconditionally with the service, so the only way to stop it was to disable [Weather_Service] altogether and lose daily forecasts, rain nowcasts, storm detection and the weather commands with it. Set it to false where another source already feeds alerts to the mesh, or outside the US where NOAA has no coverage—the service does stop polling on its own once the API reports that, but this skips the attempt entirely. poll_weather_alerts_interval is ignored when it is off, and the toggle is exposed in the web viewer's Plugins page.
  • The web viewer's Plugins page now covers every setting the plugins read, not just the older ones. New fields: greeter's dead-air delay, defer-to-human and name fuzziness; trace's base timeout, attempts and retry delay; stats' collect_stats; path's geographic_scoring_enabled; wx/gwx's use_bot_location_when_no_location (in [Weather]); rain's window, threshold, amount, probability, temperature, cache and ZIP lookup options; the path-byte requirement for test and multitest; API timeouts for sports and worldcup plus worldcup's cache time; cmd_reference_url; feed's allow_private_urls; the webhook's rate_limit_per_minute; the weather service's rain-nowcast tuning and lightning watch box; packet capture's decoding, observer name and log rotation; flood_scope, external-only and Discord/Telegram targets for the earthquake, prefix-collision and World Cup services; and every World Cup service setting, which had no form at all. The wx card now has the shared [Weather] temperature, wind and precipitation units (which also drive gwx, rain and the weather service) next to its own [Wx_Command] overrides, which default to "Same as [Weather]" and can be set back to it; the overrides used to show fahrenheit/mph even when unset. Packet capture brokers gain username, password, topic prefix, per-broker JWT timings and a per-broker "Publish decoded" that defaults to following the service-wide setting. The prefix-collision service's notify_on_prefix_bytes is a list, as the service reads it (2,3), instead of a single number that refused a list. feed's allow_private_urls shows the [Feed_Manager] value it inherits when it has none of its own. The greeter's form shows the greeting and mesh-info format it actually uses when they are unset. Webhook URLs, bot tokens and channel keys are masked like other secrets.
  • Template fields on the Plugins page have a { } button that opens a reference of the placeholders the field takes; clicking one inserts it at the cursor. It covers test's response_format, path's reply_prefix, the greeter's greeting, per-channel greetings and mesh-info format, multitest's response_format, the MQTT weather json_template and the [Weather] high/low temperature formats, and says which fields take placeholders only. For test and path, which take pipe filters, it also lists the filters (hops_min, pathbytes_min, prefix_if_nonempty, if_nonempty, shorten) with an example each. Every template field previews as you type, with each message's size in bytes. test and path render against three sample messages (a 3-hop 2-byte path, a 3-hop 1-byte path and a direct message), which makes a conditional's effect visible before saving, such as {path_distance|prefix_if_nonempty: | Dist: } printing Dist: N/A on a direct message. The other fields show what their plugin would do with a mistake: a misspelled placeholder in a greeting means no greeting at all, in the mesh-info format the greeting goes out without mesh info, in multitest the default format goes out instead, and in the MQTT weather template a format spec such as {humidity:.0f} fails the whole reply when the station leaves that reading out. Each greeting part and each channel's greeting is shown as its own message, and a channel_greetings fragment the greeter would skip is marked. A blank field previews what the plugin falls back to, including [Keywords] test for a blank test format, and previews use the saved settings that shape the output (multitest's path layout, the MQTT length limit). Plugin authors can mark their own template fields with template_spec (see docs/develop-command-scripts.md).
  • {path_names} placeholder for [Test_Command] response_format and [Keywords] replies: the route as short repeater names, BlackHls▸KalamaSum▸KelsoG3 instead of a1b2,c3d4,e5f6 (3 hops). Only a hop on a 2- or 3-byte path whose prefix has a single recent repeater, or a collision resolved with at least path_names_min_confidence (default 0.9), gets a name; every other hop keeps its hex prefix. Names are compacted to fit one message: emoji, filler words and callsigns dropped (N7JMV-EVERETT-RP → Everett), CamelCase, place-word abbreviations, then vowels and letters as needed. [Path_Command] path_names_max_name_length, path_names_max_bytes, path_names_separator and path_names_min_confidence tune it.
  • Packet capture's guide and config.ini.example include a working waev.app MQTT broker: mqtt-a.waev.app on port 443 over TLS websockets, with a one-hour JWT (TTL 3600, renewal 3500). The example leaves it commented out on the next broker slot. Brokers are read from mqtt1 upward, and a missing mqttN_server ends the list, so a config that already uses brokers 1–4 puts the same keys on mqtt5.

Changed

  • The Docker healthcheck reports whether the bot's event loop is alive instead of whether PID 1 exists. The bot touches <db_path>.heartbeat every 30 seconds and python3 -m modules.healthcheck fails once it is more than two minutes old. An offline radio does not make the container unhealthy. The add-on image inherits the check and points it at /config/config.ini through MESHCORE_BOT_CONFIG.
  • Web viewer colors: the dashboard's payload mix gives each packet type the same color as the multibyte chart instead of a color by rank, and the role mix gives each role a fixed color matching the Mesh page. Real-time's channel dots use 20 colors that avoid the status red, amber and green, and up to 20 channels never share one. Real-time rows show SNR before the hop count so it survives on a phone, a repeated packet lights only its count instead of the whole row, and the dashboard says "1 client" and uses American spelling throughout.
  • The web viewer serves all of its front-end libraries itself (Bootstrap, Font Awesome, Socket.IO, Chart.js, Leaflet, MapLibre GL, maplibre-gl-leaflet, vis-network, js-sha256) along with the login page's fonts, instead of loading them from jsDelivr, cdnjs, unpkg and Google Fonts, so every page works on a LAN with no internet. Only map tiles still need it. The Content-Security-Policy now allows no CDN hosts. Chart.js and js-sha256 load only on the pages that use them, and Moment.js is no longer loaded. The library versions are pinned in scripts/web-vendor/package.json; Dependabot opens pull requests for security fixes and new releases, a workflow adds the regenerated files to them, and CI fails if the vendored files don't match the lockfile.
  • On phones and tablets, web viewer controls are sized for touch (44px buttons and fields, 36px small controls, 24px checkboxes and switches), card headers wrap their controls instead of squeezing the title, and the radio offline and zombie banners are shorter. Desktop layouts are unchanged.
  • Web viewer banners show when the radio went offline or zombie in your own time zone with its age (Oct 15, 7:42 AM · 2 days ago) instead of a raw UTC timestamp.
  • The Mesh Graph colors edges by how recently they were heard in one magenta-rose hue that fades with age (under 24 hours, 1–7 days, 7–30 days, older), with a "Last heard" legend, instead of green, amber, orange and red without one. Room servers are teal instead of the status green, a selected node or traced path is ringed or drawn in ink instead of amber, and a selected node's links are blue (incoming), orange (outgoing) and violet (both ways). Hot-connections mode keeps its viridis colors. Legends, popups, tooltips and map controls follow the map's own light/dark toggle, popup labels pass contrast, and switching that toggle in graph view no longer reruns the graph layout.
  • Realtime's dark-theme message bubbles are soft tints instead of solid navy, green and purple, and packet rows drop their colored side stripes (the type badge already shows the type).
  • The web viewer's Real-time page is one tape of what the radio heard instead of three panels. Each row is one transmission: a packet, the channel message decrypted from it and a command it triggered share a row, joined by packet hash, and the bot's reply hangs under it with how many times a repeater was heard echoing it back. A packet heard more than once is one row with a count ("heard ×4") and the SNR and path of each reception when opened. A strip at the top shows whether the bot is listening or the radio is offline, when it last heard a packet, the packet rate and the last 10 minutes of traffic. The tape holds still while you read it: Pause (or P), scrolling down, a resting mouse pointer or keyboard focus queue new rows behind an "N new" button. Rows can be kept (safe from the 300-row limit and from Clear), filtered to messages or commands, by packet type and channel, or searched (/) by sender, text, repeater prefix or hash. Color helps scanning without standing in for words: each packet type has its own icon in the color the dashboard's packet-type chart uses for it, decoded messages get a stronger tint, and the bot's commands and replies are violet (a solid robot chip on the command, a washed panel for the reply). History replayed when the page opens sits under a "Heard before you opened this page" divider. Advert names and group-text messages on channels with a configured key are decoded in the browser, and say so. Command rows now carry trigger_packet_hash and, once a repeat is heard, reply_packet_hash; replayed rows carry stream_ts and replayed. On a phone the strip is one line, the filters sit behind a Filters button and the byte breakdown opens full-screen.
  • MessageHandler no longer keeps a pending-message list for RF correlation. Its entries were only marked as matched and pruned, never read, while every received packet scanned and pruned the list. The one effect it had stays: a channel message with no RF log row yet waits 100 ms and looks again. Two channel messages that reached that wait in the same millisecond with the same packet prefix could get each other's RF row, since the list keyed them alike; each now looks up its own. Removed with it: store_message_for_correlation, correlate_message_with_rf_data, cleanup_old_messages, try_correlate_pending_messages, the pending_messages attribute and PendingMessageEntry. [Bot] message_correlation_timeout still bounds how old an RF row can be and still match a channel message by its contents; its comment in the example configs said otherwise and now says that.
  • wind_speed_unit = kn (knots) now works for wx, gwx and WXSIM sources, as it already did for the weather service. The commands rejected it and fell back to mph, so one setting gave knots in the service's forecasts and mph in replies.
  • Weather replies in German, Spanish, French, Dutch, Polish and Portuguese no longer fall back to English for gwx's weekday abbreviations, "feels like", the hourly and custom-source "not available" replies and the MQTT weather errors (both wx and gwx). Wind directions in wx, gwx and the weather service use local letters, wx's multi-day weekday letters are translated like gwx's, the "forecast not available" and formatting-error replies are translated, and the wx/gwx help describes cities, coordinates and the forecast options instead of ZIP codes only (NO/SW in German, SO/NO in Spanish and French, ZW in Dutch, L for east in Brazilian Portuguese); Polish keeps the international letters. Russian gains the two new "not available" replies.
  • gwx names the place in its reply only when that adds information, as wx does. A city in the configured [Weather] default_country (and, in the US, default_state) is no longer prefixed with its own name, which leaves more of the message for the forecast; a city elsewhere still is (Paris, FR: …). Coordinates, including the sender's or bot's own position, are named when a place is found for them; a failed lookup no longer shows the coordinates cut into a fake "city, country" label. ZIP codes are not named, which also saves a reverse-geocoding request.
  • gwx with no location now forecasts the sender's (or the bot's) own coordinates, as wx already did. It used to reverse-geocode them to a town name and then forecast that name, which moved the forecast to wherever the geocoder put the town and cost three or four Nominatim lookups instead of one. The reply's location label still comes from a reverse lookup.
  • wx (NOAA) now follows [Weather] temperature_unit and wind_speed_unit, as gwx already did. NOAA replies were always in °F and mph, and station dew point, visibility and gusts were converted to °F, miles and mph whatever the configuration said. With temperature_unit = celsius the bot now asks NOAA for metric data (temperatures in °C, also in the forecast text it reads highs and lows from) and shows visibility in kilometers; wind speeds and gusts are converted to wind_speed_unit (mph, kmh or ms). The default units are unchanged, so a bot on Fahrenheit and mph keeps getting °F and mph (its station gusts change only through the fix below). [Wx_Command] unit settings still override [Weather] for wx; the example config now comments them out, since a copied temperature_unit = fahrenheit there would keep wx in Fahrenheit after switching [Weather] to Celsius.
  • gwx can be used in scheduled messages ({cmd:gwx Paris}), like wx. It was not marked safe to render, so the placeholder expanded to nothing, although {cmd:wx ...} already ran gwx when weather_provider = openmeteo.
  • The footer's MeshCore link now points at the official site, meshcore.io.

Fixed

  • The bot refuses to start when another instance is already running against the same database, and names that instance's PID. Two instances on one radio evicted each other from single-client companion servers in an endless reconnect loop. The lock is a <db_path>.lock file beside the bot database and is released by the OS when the process exits, so a killed bot never leaves a stale lock behind.

  • SIGTERM and Ctrl-C now stop a bot whose terminal has gone away. The shutdown handler printed before setting its flags, and a print to a closed terminal raised OSError, which swallowed the signal and left a bot that only kill -9 could stop.

  • A bot started from a terminal now shuts down when that terminal closes. SIGHUP was always treated as a config reload, so the bot kept running unattended. SIGHUP is still a reload under systemd, launchd, Docker, and nohup, and when sent by hand while the terminal is open.

  • The web viewer now exits when the bot that launched it is gone. A bot killed with kill -9 on a manual run left the viewer holding its port, and the next start could not bind it. The bot passes its PID as --exit-with-parent; a viewer started on its own is unchanged. A bot-launched viewer no longer uses the Werkzeug reloader in debug mode.

  • The systemd unit and the Debian package start the bot with the new --wait-for-lock flag. A service that found another instance running exited three times inside the start limit and stayed failed after the other instance stopped. It now waits for the lock and takes over.

  • A failed radio connection at startup now retries with the same exponential backoff as a dropped connection ([Connection] reconnect_max_retries, reconnect_delay_seconds, reconnect_max_delay_seconds; reconnect_max_retries = 0 retries forever) instead of exiting at once, so a radio that is not ready yet after a reboot can come back without burning the Home Assistant watchdog's restarts. The web viewer keeps serving while the bot waits. The bot exits with status 1 only when reconnect_max_retries runs out, so launchd and the watchdog restart it; a shutdown signal while it waits stops cleanly with status 0.

  • Incoming channel commands were handled twice after the bot had been up for a while on a BLE radio, so each command got two replies and the second copy of a cooled-down command was dropped. A reconnect could overlap another reconnect and subscribe to the same link twice. Relinks now run one at a time, a connection finishes setup only on the radio instance it opened, subscribing on an instance that already has handlers does nothing, and a channel or direct message repeated within 5 seconds is dropped (#364).

  • MQTT weather sources (wx custom.mqtt_weather.*) in json_template mode no longer put a long Celsius value on air: the default template rendered 61.3°F (16.27777777777778°C). I now round {temperature_c} to one decimal, matching the precision of the °F reading, so it reads 16.3°C (and 31.95°F reads 0.0°C, not -0.0°C). Format specs such as {temperature_c:.0f} still work, and a missing reading still renders as empty rather than failing the template.

  • The Nix flake builds again on current nixpkgs. The locked meshcore-cli (1.3.11) caps bleak below 2.0 and nixpkgs now ships 3.0.2, so its runtime dependency check failed; the flake relaxes that one pin (#352).

  • The weather service's Blitzortung lightning feed backs off when the broker keeps dropping it: 5 seconds after a drop, doubling to 5 minutes, and back to 5 seconds after a connection that lasts a minute. It used to reconnect every second, logging two lines each time (#362). It only logs "Connected" once the broker accepts the session, says why it is reconnecting, and gives each connection its own client ID. Strikes inside blitz_area_* also reach the lightning handler now. They arrive on the MQTT library's own thread, where scheduling the handler failed and was logged only at debug level, so they were dropped. Strikes that arrive while an alert is being sent are kept for the next count instead of being cleared with the batch.

  • The web viewer's Email & Notifications panel has an "Allow a local or private-network SMTP server" checkbox. allow_local_smtp is stored in the bot database, not config.ini, and no control set it, so a local relay such as Postfix could not be used for the nightly email or radio alerts (#361).

  • A repeater heard twice in a row no longer posts two "new repeater" messages to Discord and Telegram. The prefix-collision service decided to announce a key and only recorded that key after the posts returned, so a second NEW_CONTACT while the first post was still in flight sent again (and the same gap double-posted a prefix-collision alert onto the mesh, which the bridges delivered twice). It now records the key before it sends.

  • The greeter's warmup (rollout_days) runs once, the first time the greeter starts. A restart more than a day after the previous warmup ended used to open another one, and anyone who spoke during it was marked greeted and never welcomed. Ending a warmup, or it expiring, no longer starts a new one on the next boot.

  • A greeting that is not actually sent no longer leaves the person marked greeted. That covers a send that fails, and a dead-air wait that ends while channel replies are paused. The next message tries again. A wait canceled because someone else mentioned them still counts as greeted. Name fuzziness now catches a typo of the new user's name during that wait; previously it only ran when the exact name was already in the message, and could then reject that exact mention.

  • The greeter sends its welcome when dead_air_delay_seconds is greater than 0. It marked the new user as greeted before the wait, then the delayed sender saw that mark and skipped the message, so the user was recorded as greeted and never welcomed. The mark still stops a second message during the wait from starting another greeting. A wait canceled because someone else mentioned them, or because channel replies are paused, still sends nothing. Anyone already recorded as greeted by this bug stays that way until marked ungreeted.

  • The web viewer no longer reports an all-clear it can't back up. The dashboard strip showed a green "Online · radio ok" and Real-time a green "Listening" whenever the viewer answered, even with no bot running. Both now show one verdict from the bot's 30-second health heartbeat, its radio link and the offline and zombie flags, and /api/banner-status reports bot_running, bot_last_seen, bot_started and radio_connected. Uptime shows a dash while the bot isn't running.

  • Dashboard change chips no longer show a day the bot recorded nothing as a 100% drop on every tile. When either compared day has no packets, adverts or messages, the chips stay neutral and a note names the day.

  • Clearing the radio-offline flag or restarting after a zombie state no longer overwrites the banner, which used to come back with the stale success message if the radio dropped again on the same page.

  • The web viewer works better with screen readers and the keyboard. Every page has a main landmark and a "Skip to content" link, decorative icons no longer leak glyphs into heading and button names, headings follow one outline (the dashboard gains a level-one heading, stat numbers are no longer headings), every dialog is named by its title, a lost or restored connection to the bot is announced, and the Logs stream can be focused and scrolled from the keyboard. The Mesh map's shapes no longer add about 120 unlabeled Tab stops, and the map and graph say that they are visual only and where the same information is in text. Tag chips and Multibyte's filter buttons now pass contrast in both themes. axe-core reports no violations on any page in either theme.

  • The Real-time byte breakdown split multibyte paths in the wrong place. It sliced the path by hop count, so with 2- or 3-byte hops part of the path showed as payload; it now uses the path's byte count and shows the raw path-length byte with its hops and bytes per hop. It also named route types 0 and 2 the wrong way round (0 is transport flood, 2 is direct), and Real-time's channel decryption often never started because the key store was built before the decoder had loaded.

  • Web viewer messages (saved, starred, errors) appear in one floating stack at the top right, or along the bottom on a phone, instead of being inserted at the top of the page and pushing it down (Contacts) or piling on top of each other (Radio, Feeds). Contacts' row actions keep their own colors and button outlines (gold star, blue info, teal location, red delete) so they're easy to tell apart, its stat tiles read in their own colors (contacts blue, adverts teal, new devices in their role colors), Real-time's filter lenses take the colors of what they show (messages blue, commands the bot's violet) with Pause filling when it's on, and the byte breakdown's segments are fuller tints.

  • Contacts reads more cleanly: stat counts are grouped (257,052) and no longer break mid-number or mid-word, device roles are tinted chips in data colors shared with the activity chart instead of status-lamp amber and green, SNR, distance, bytes/hop and advert counts are plain readings, and each row's actions are quiet icons that take their color on hover (a starred contact shows a filled star). The hop count that opens a contact's paths is a real button, so it works from the keyboard. The paths list says how many paths this radio has heard instead of naming a database table, pluralizes hops and sightings, shows path bytes in the theme's text color and marks the primary path without a green badge; on a phone it opens full-screen. Advert data wraps instead of running off the side of its window, phone cards label their distance and SNR and leave out what isn't known, and the phone sort menu keeps its full label.

  • Real-time decodes multibyte packets correctly in the browser. Its bundled @michaelhart/meshcore-decoder was 0.2.7 or older and read the path-length byte as a plain byte count, so on a packet with 2- or 3-byte hops the byte breakdown showed the wrong header (group text as Custom), a path split into single bytes and garbage payload fields, adverts on the tape could get a garbled name, and group text on those packets never decrypted. The bundle is rebuilt from 0.4.0 (from my fork, which brings it in line with current firmware: hop count and hash size from the path-length byte, encrypted PATH payloads, GRP_DATA and MULTIPART, region transport codes, and the firmware's packet hash); scripts/meshcore-decoder-browser/build.sh rebuilds it from a pinned commit of the fork, and the unused meshcore-browser.min.mjs is gone. The byte breakdown also reads its header from the byte on the wire and its path and payload from the bot's own decode, uses the 16-character packet hash the tape and search use, labels byte ranges correctly when transport codes come first, spaces paths by hop and payloads by byte so they wrap between bytes on a phone, explains the path-length byte's bit layout, and falls back to a plain copy when the browser blocks the clipboard over plain HTTP. Its colors now come from the theme (it had its own bluish dark palette) and its byte segments use the dashboard's data colors as tints instead of the status lamps.

  • Real-time's SHA-256 library is served from the viewer itself instead of cdnjs, so channel decoding works without internet.

  • The web viewer no longer shows Radio Offline for good after a restart. The bot wrote the offline flag only when it changed, so a true left by an earlier run stayed in the database while the new run sent normally, and the banner never cleared. The bot now records its own state at startup, before the viewer starts.

  • Web viewer keyboard and screen-reader access: contact columns sort from the keyboard and announce their sort order, plugin cards and Realtime packet details open with Enter or Space, and every button and form field on every page has an accessible name (about 300 Plugins settings fields were announced without one).

  • Web viewer text contrast: status colors used as text (amber, cyan, green, red), muted text, outline buttons, code, log levels and badges now pass WCAG AA in both themes. The worst cases were the dashboard's Gone Quiet count and Contacts' 7-day counts at 1.6:1 and 2.0:1.

  • Web viewer text no longer drops below 0.7rem (Realtime timestamps were 9.3px), monospace text uses one font stack, and /config no longer scrolls sideways on a phone.

  • Place names in wx, gwx and other location replies are in the bot's [Localization] language (falling back to English) instead of each place's local language: gwx Tokyo named the place 千代田区, JP rather than Chiyoda, JP, which also took more of the message. Nominatim was never told a language. [Localization] place_name_language changes it: local keeps each place's own name as before, and a language code picks another language. Reverse lookups are now cached per language, so addresses cached before in local languages are looked up again (unless local is set).

  • Reloading the config (from the web viewer, the reload command or the admin API) no longer fails when any value contains a bare %, such as % RH in an [MqttWeather] json_template, which config.ini.example documents as fine. The reload check expanded % interpolation on every value, although those values are read raw and startup accepts the same file, so every reload was rejected and changes saved from the web viewer only took effect after a restart. Such values are now named in a warning and the reload goes ahead.

  • sports reads [Sports_Command] api_timeout. The example config documented it, but the ESPN timeout was fixed at 10 seconds. The Plugins page's MQTT weather payload, staleness and length limits now match the ranges the service clamps them to, so the form no longer accepts a value the service quietly replaces.

  • Saving a blank MQTT weather json_template on the Plugins page now saves the default template. It saved an empty one, so with output_mode = json_template every MQTT weather reply said no message had been received yet.

  • Clearing a number on the Plugins page now removes the setting instead of saving key =, which made the plugin fail to load (a blank float or int raises in configparser rather than falling back to the default). The weather service's lightning watch box also needs all four blitz_area_* corners now: with only some set it failed to start, and now it logs a warning and leaves lightning detection off.

  • The Telegram bridge no longer logs "Failed to stop service" at shutdown when it is enabled without an api_token. It disabled itself before setting up the state stop() uses, so stopping it raised AttributeError. The Discord bridge had the same gap when neither aiohttp nor requests is installed.

  • trace no longer gives up on a reply that is on its way. Each attempt listened only for its own tag, so when the first trace's reply arrived after its timeout, the retry had already replaced it and the reply was dropped; on a mesh where repeaters wait a second or more before forwarding, a three-hop trace always failed. A reply to any attempt now counts until the last attempt times out, and one that arrives during the retry delay ends the trace without sending again. The timeout defaults are now 2.0 s base and 1.5 s per hop (were 1.0 s and 0.5 s, about 2.5 s for three hops); a config that sets them keeps its values.

  • Repeat counts for the bot's own messages (the web viewer's command log, the DARC MoWaS retry check) count the bot's own packets. A sent message was matched to the first packet the radio heard within 30 seconds, whatever it was, so on a busy mesh it usually took someone else's packet: its repeats were counted as the bot's, and the bot's real repeats were not. A channel message is now matched only by a packet that decrypts on the same channel to the radio's name and the same text, a DM by a direct message addressed to the recipient from the bot, and a trace by its tag. The repeat counts are written to the database off the event loop, and each repeat no longer adds an entry to Python's import path.

  • A successful trace now adds its links to the mesh graph, as [Trace_Command] update_graph_one_byte and update_graph_two_byte (both on by default) describe. The bot's own prefix was read from a radio attribute meshcore_py doesn't provide, so it was always unknown and every trace's graph update was skipped; it now comes from the radio's reported public key, at the trace's hash width. update_graph_two_byte was never read: 2-byte traces followed update_graph_one_byte, and now follow their own setting.

  • A new contact's route comes from its own advert. NEW_CONTACT took the route, packet hash and signal data from whichever of the last ten received packets came first, usually a different node's message or advert, and wrote that route into the contact's out_path (sent to the radio with auto_manage_contacts = bot), the mesh graph and the observed paths. It now uses the first copy heard of the advert NEW_CONTACT reports, matched by public key and advert timestamp, and leaves the mesh graph and observed paths to the advert packet itself, which already recorded them (a correct match was counted twice). With auto_manage_contacts = bot, a companion is still added to the radio once its advert has been tracked: the add was skipped whenever the packet hash had been seen before, which the correct hash always has.

  • wx's default reply no longer leaves out the Tomorrow part when NOAA forecasts exactly 0° for it. The Tomorrow part checked the temperature for truthiness, so 0 counted as missing (Today and Tonight already accepted it, as does wx tomorrow).

  • wx no longer answers "Error fetching weather data" when NOAA's Tonight period has no temperature or short forecast. The Tonight part of the reply was built only when the period had both, but its details were still added and appended either way, so the reply failed on a missing variable or, after a night-time Today part, sent that Today part twice. A Tonight period without them is now left out, as Today and Tomorrow already were.

  • gwx (and wx with weather_provider = openmeteo) labels the current conditions by whether the sun is up at the location, using Open-Meteo's is_day. Before 06:00 the reply said "Tonight" next to today's high and low and a "Tomorrow" that was really the day after, so at 5:58 am it read like last night's forecast. Between midnight and sunrise it now says "Overnight", as NWS does; "Tonight" runs from sunset to midnight; and a dark 06:30 in October or a light 18:30 in June is no longer mislabeled. Clear skies at night show 🌙 instead of ☀️, in hourly forecasts too (each hour by its own is_day), and tomorrow's part names its weather ("🌫️Foggy", not just "🌫️") when it fits.

  • wx hourly, gwx tomorrow, wx 5d, wx alerts and other options given without a location now apply to the location the command falls back to (a custom default source, the sender's position, default_city, the bot's position); they showed the usage text, and wx alerts looked up a place called "alerts". A custom source named like an option (custom.wxsim.hourly) still answers as that source. wx <place> alerts stops when its first message is refused instead of sending the rest of the list. With [Weather] units and no [Wx_Command] override, wx also no longer logs a notice to move the unit settings into [Wx_Command] on every reply.

  • wx tomorrow (NOAA) fits its reply into one message. It ignored the length budget, so a day with long condition names ("Chance Showers And Thunderstorms" for both periods) went out as two messages. It now leaves out wind, the night period's first, and then the night period itself when that is what it takes. gwx tomorrow ignored its budget too; it now leaves out the precipitation amount, gusts, wind, the precipitation chance and then the description, in that order.

  • wx and gwx no longer send the second part of a reply on its own. When the per-user rate limit refused a forecast, the weather alert that follows it still went out, since follow-up parts skip that limit; now a refused first part ends the reply, for multi-day forecasts too. A multi-day forecast that fits one message once its blank lines are dropped also no longer skips the rate limit, and the command now reports a failed send instead of always reporting success (to the web viewer's command log and to queued commands' stats), custom default sources included. A scheduled {cmd:wx ...} or {cmd:gwx ...} no longer waits out the TX pacing between a forecast and its alert: with a long bot_tx_rate_limit_seconds that wait outlasted the render timeout and the whole reply was lost.

  • wx reads more of NOAA's forecast wording. Its precipitation chance ("Chance of precipitation is 60%.") and gusts ("with gusts as high as 25 mph") never matched, so the 🌦️ and 💨 details were missing from real forecasts; they now appear. Highs and lows below zero ("Low around -5.") and Fahrenheit values under 20 were rejected, so cold forecasts lost their high/low; they are now read.

  • wx weather alerts no longer stop working for every location after one request for a place NOAA does not cover. A "no coverage" reply from the NWS alerts API (any point outside the US) switched alerts off for the rest of the bot's run, so after someone asked about a city abroad, US alerts silently disappeared from wx replies. The weather service's alert polling had the same latch. Both now remember a point without coverage for 24 hours (rounded to about a kilometer, at most 256 points) and keep asking NWS about every other point.

  • Weather and location commands accept a position on the equator or the prime meridian. The companion lookup skipped any contact with a zero latitude or longitude (only 0,0 means "no position"), and city geocoding (shared by wx, gwx and the other location commands) rejected a geocoded zero coordinate. Coordinates passed between steps are now written in fixed decimals, so a value like 0.00001 is no longer formatted as 1e-05 and geocoded as a place name.

  • Weather forecasts are dated by the location, not by the bot's clock. On a bot whose clock is in another time zone (a server on UTC, or a bot answering for a distant city), wx's tomorrow and multi-day forecasts could start a day late, wx's hourly forecast could list an hour that had already passed, and gwx labeled the current period Today or Tonight, and the multi-day lines' weekdays, by the bot's time. Both commands now take today's date and the time of day from the forecast itself (NOAA's period start times, Open-Meteo's local times). wx's multi-day forecast also keeps holiday-named NOAA periods ("Columbus Day"), which it used to skip, and gwx 7d shows seven days instead of six: it asked Open-Meteo for seven days counting today and then left today out.

  • wx's gust reading from the nearest weather station is no longer about 3.6 times too high. NOAA reports station gusts in km/h, and wx converted them as if they were meters per second, so a 36 km/h (22 mph) gust showed as 💨80. Gusts are now converted from the unit NOAA declares with them. A forecast period at exactly 0° is also no longer dropped from tomorrow's and the multi-day forecast (it was taken for a missing temperature, which temperature_unit = celsius makes common).

  • gwx no longer invents weather when Open-Meteo leaves out current conditions. A response without them was shown as clear skies at 0° and 0% humidity, and a single null field (humidity, wind, gusts, feels-like) failed the whole reply. A missing current temperature now gets the usual "could not fetch" reply, and other missing current fields are simply left out of it.

  • gwx's extreme-weather warnings now work in Celsius, in metric wind units and in other languages. They were found by searching the finished, translated reply text: a temperature was only recognized when followed by °F (so -10°F read as 10, and Celsius replies never warned), the wind number was read off the direction label whatever its unit and called mph, and translated direction letters hid it entirely. The warnings now use Open-Meteo's own numbers and weather codes from the same request, converted to °F and mph for the existing thresholds (95°F, 20°F, 30 mph sustained wind), with the same warning text. The high-wind warning shows the speed in the configured wind unit, like the reply it follows (it used to say mph whatever the unit, and Polish said km/h whatever the unit). Open-Meteo's heavy-thunderstorm code (97) was missing from gwx and the weather service: it now shows as "Heavy T-Storm" with ⛈️ and warns like the other thunderstorm codes, instead of an unknown condition.

  • A custom weather source (custom.wxsim.* or custom.mqtt_weather.*) asked for hourly or alerts now says that option is not available for it. WXSIM sent its current conditions instead, and wx <mqtt alias> alerts geocoded the alias as a city. gwx <place> alerts says the same rather than geocoding " alerts". wx's hourly lines show the full 16-point wind direction (NNW2 instead of NN2), and WXSIM forecasts keep a high or low of exactly 0° (it read as missing); gwx now also logs a warning for a stale WXSIM forecast, as wx does.

  • Weather condition emojis and wind directions are more accurate. wx gave "Partly Cloudy" and "Mostly Cloudy" the plain cloud (the "cloudy" check ran first) and showers with thunderstorms the rain emoji; they now get ⛅ and ⛈️, and any forecast that mentions thunderstorms gets ⛈️, even one that starts sunny. A forecast that mentions rain or snow along with cloud ("Chance Rain Showers then Mostly Cloudy") now gets the rain or snow emoji instead of the plain cloud. gwx converted wind degrees to the compass sector that starts below them instead of the nearest point, so 22.5° read NE and 241° SW; it now names the nearest of 16 points (NNE, WSW) with the same arrows as wx.

  • A superscript or circled digit in a command argument no longer crashes the command. wx, gwx, dice, roll, repeater and the feed regex:/regex_cond: functions checked str.isdigit(), which accepts characters like ², and then called int(), which rejects them: wx seattle ² raised before the command's error handling and got no reply, and dice ² / roll ² failed the same way. They now check str.isdecimal(), so such arguments are read as text (part of the location, an invalid die, or part of the regex pattern); ASCII and other decimal digits work as before.

  • gwx multi-day forecasts no longer fail when the forecast runs out early. Open-Meteo returns 16 days but fills the ones past the model's horizon with nulls (the last one or two by default, nine with weather_model = icon_seamless), and the first null day made the whole reply the multi-day error, so gwx 15d failed for London and Reykjavik and gwx 7d failed under shorter-range models. The forecast now ends at the last day with data. A null precipitation probability no longer breaks the tomorrow forecast or the default reply either, and a tomorrow with null temperatures reports that it is not available.

  • wx shows wind directions properly. NOAA reports them as 16-point abbreviations (WNW, SSE), which wx only recognized as full words, so they fell through to a fallback that kept the first two letters and no arrow: 💨WN2 for a 2 mph west-northwest wind. They now keep all their letters with the nearest arrow (↖️WNW2).

  • A service plugin that does not start because it is not configured (Discord or Telegram with no channels, the map uploader with no key) is no longer restarted every 5 seconds with a warning each time. The health check restarted any service that was not running, and the restart counted as a success, which cleared its backoff. A service that does not start, or is still unhealthy after a restart, now waits out service_restart_backoff_seconds before the next try, so one that was only waiting for the radio still recovers. A restarted packet capture or map uploader service also gets its background work back (stop() left a shutdown flag set that start() never cleared), and the map uploader keeps logging to the bot's log file after a restart. The DARC MoWaS service no longer stops the whole bot when its port is taken (werkzeug called sys.exit), and no longer reports itself healthy when it could not listen. Restarts also no longer subscribe a service to radio events a second time: services never unsubscribed in stop(), so after a restart packet capture published every packet twice and the Discord, Telegram and prefix-collision services handled every event twice.

  • wx and gwx no longer drop the weather-alert message that follows current conditions, alert all no longer drops its later parts, the earthquake service no longer drops the link it posts after an alert, and an announcement's "sent" confirmation is no longer dropped. Those follow-up messages went through the reply rate limiter (rate_limit_seconds, 10 s by default) a few seconds after the first part had used it, so they were refused. Separately, bot_tx_rate_limit_seconds now spaces concurrent transmissions too: each send waited for the limit and only recorded its transmission after the radio confirmed it, so two replies (or a reply and a scheduled message) running at the same time both passed the check and went out back to back. A send now claims its slot when the wait ends.

  • [Bot] dm_min_ack_timeout = nan now falls back to the 8-second default. NaN failed both the negative check and the 60-second cap, so it reached the DM retry loop as an unbounded ACK wait.

  • A delivered DM is no longer reported as failed because its ACK came back after the bot stopped waiting (#290). Each attempt waited 1.2 times the radio's suggested_timeout, which the firmware derives from the packet's airtime and hop count with well under a second of fixed allowance, so on fast presets a zero-hop attempt gave up after about 1.3 seconds, before the recipient's ACK delay and the radio's TX queue had even played out. Webhook DMs then returned an error for messages the recipient had. New [Bot] dm_min_ack_timeout (default 8 seconds) sets a floor on each attempt's wait; an ACK still ends it at once, so successful sends are no slower, but a DM that is never acknowledged now takes at least 24 seconds to report failure with the default three attempts. Values are capped at 60 seconds. Set it to 0 for the old behavior.

  • A radio that rejects set_flood_scope is now reported. The check compared the reply's EventType to the string "ERROR", which never matches, so a rejected regional scope (the message then goes out at whatever scope the radio holds) and a rejected restore to global flood (the radio stays pinned to the region for every later send) were both silent.

  • Reverse geocoding for contact adverts no longer blocks the bot. track_contact_advertisement, background geocoding, the repeater scan and the geolocation backfill called rate-limited Nominatim synchronously from async code, so every other task (command replies, sends, the mesh reader) stalled for the length of each lookup, including the rate limiter's sleep. These calls now run in a worker thread. Advert tracking decides whether to geocode before its write block and re-checks the duplicate-packet guard inside it, so concurrent adverts still cannot double-count.

  • Radio-offline state no longer latches until a restart. After radio_offline_threshold send timeouts the bot suppresses every outbound send, but the only thing that cleared the state was a successful send, so it never cleared. It now behaves like a circuit breaker: when a health probe gets an answer, the next outbound send (a scheduled message, interval advert or reply) goes out as a single trial while everything else stays suppressed. If it goes out, the state clears; if it fails, the bot waits for the next answered probe. Scheduled sends that report failure no longer count as successes. The offline alert email goes out once per outage, not on every failed trial. The web viewer's "Clear Offline Flag" now works too; the viewer runs in its own process, so its button only wrote the database, and the bot now picks that up within 30 seconds.

  • Database migrations are applied atomically again. The runner wraps pending migrations in one transaction and rolls back on failure, but nine migrations used executescript, which commits implicitly first, so a failure partway through left every earlier migration (and its schema_version row) committed. Migrations now run their SQL statement by statement inside the runner's transaction, and a migration that tries to manage the transaction itself is refused; the resulting schema is unchanged. One consequence: the database write lock is now held for the whole pending-migration run rather than released after each script, so a long index build at startup blocks other writers until all migrations finish.

  • Region warnings sent with delivery = channel now go out at the bot's configured channel scope instead of always at global scope (#306). They were forced to global flood on the belief that a sender with no region could not hear a scoped message, but a companion radio accepts a regional flood whatever region it has set itself, so the override only meant a bot with outgoing_flood_scope_override set flooded the whole mesh to tell someone not to. The warning now follows [Region_Warnings] flood_scope, then flood_scope.<channel>, then outgoing_flood_scope_override, and is sized for the regional overhead when it applies. Set [Region_Warnings] flood_scope = * to keep the old behavior.

  • The web viewer login no longer redirects off-site after sign-in. The next check let ///host and /\host through, which browsers treat as another origin.

  • Channel messages are now sized to 155 bytes of "<name>: <text>" instead of 160. The firmware encrypts 5 header bytes ahead of the text in 16-byte blocks, so 155 fills the 160-byte block exactly, while the last 5 bytes up to 160 added a whole extra block of airtime. This applies to command replies, chunked webhook and scheduled messages, and the web viewer's limits. The scheduler now uses the shared channel_body_limit instead of its own copy of the arithmetic.

  • Bot names longer than 28 bytes no longer produce channel messages the firmware truncates. The body budget had a 130-byte floor that ignored the name, so a long name pushed the framed text past the firmware's 160-byte limit and the end of the message was cut off. CHANNEL_BODY_FLOOR is now 32 bytes and only applies to names over 121 bytes.

  • The rain command trimmed its reply by character count against a byte budget, so an emoji-dense forecast (🌧️ ☀️ ⚠️ plus an em dash) overran it by 20-odd bytes while measuring as a fit. It now trims in UTF-8 bytes. REGION_DEFAULT_NOTE is also shorter (63 bytes to 33), and the note is appended only when it fits whole rather than being cut mid-word. truncate_to_bytes moved from region_warning to utils, where any command can reach it without importing a feature module.

  • Splitting a long message no longer cuts a link in half. A whitespace boundary can never land inside a link, so the exposure was the hard-split fallback—text with no break opportunity before the link, such as CJK (no spaces at all) or a punctuation-joined "…40mph|https://…". The boundary now retreats to where the link starts so it travels whole in the next part. A link too long for a part of its own still has to be cut; that is logged as a warning naming the link, since the remedy is to shorten links before sending rather than a code change. Both the DM and channel split paths get this, as does the webhook.

  • gwx/wx NOAA forecasts no longer overrun the RF frame by the width of their location prefix. get_weather_for_location formatted the forecast body to the full byte budget and then prepended "City, State: ", so the assembled reply could exceed the frame by the prefix's own length—17 bytes for "Lockhart, Texas: ", 26 for "Williamson County, Texas: ". The prefix is now reserved out of the budget before the body is formatted, floored so a long county name cannot starve the forecast. The alert text, which is sent as its own message without a prefix, keeps the full budget.

    This surfaced as an emoji-dense forecast being split into two mesh messages despite looking well under the limit: the budget is 160 UTF-8 bytes less the "<botname>: " prefix, and °F, ☀️, 💨, 💧, 👁️ and 📊 each cost 2–7 bytes, so a 124-character forecast measured 152 bytes. Before the channel length guard landed, that message was dropped by the radio instead.

    The international gwx path (wx_international.py) already reserved its prefix but measured it with len(); it now measures UTF-8 bytes, so a non-ASCII city name such as "München, DE: " is charged what it actually costs.

  • Webhook posts longer than one mesh frame are split across several channel messages instead of being handed to the radio whole. [Webhook] max_message_length truncated at 200 characters, but a MeshCore channel body only holds the firmware's 160-byte text limit less the "<botname>: " prefix—about 130 bytes, and 143 for a 15-byte bot name. The device dropped the oversized payload without emitting the event the send waits for, so send_channel_message burned all three of its no_event_received retries (~45s), returned 500 to the caller, and left the transport stalled long enough for the poll to read it as dead and bounce the radio. Each reconnect cleared the channel cache, so a retry then failed differently, with Channel 'x' not found. max_message_length is now documented as a cap on the total text accepted per request rather than a single-message limit, and a successful response reports the part count: {"ok": true, "parts": 2}.

  • command_manager.send_channel_message grew the central length guard that send_dm has had all along: a body over the RF budget is split to fit and sent as several messages rather than put on the air undeliverable. Any caller—a service, a scheduled broadcast, a plugin—could previously wedge the radio this way. The shared budget lives in the new channel_body_budget, which accounts for the bot name in UTF-8 bytes and for the extra header bytes a regional flood scope costs (including one resolved from flood_scope.<channel> or outgoing_flood_scope_override after the caller hands the body over). A split's parts are tagged " (1/2)", " (2/2)" and so on, since a mesh does not guarantee delivery order and nothing else distinguishes a continuation from a standalone post. The suffix is reserved out of the same byte budget as the body, and because reserving it can force one more part—and crossing ten parts widens the suffix again—the reservation iterates until it covers the count it produced. A message that fits in one part carries no suffix.