Skip to content

Admin Commands

Doug Snitker edited this page Dec 4, 2026 · 6 revisions

Admin Commands

The node answers direct messages from its admins, and wx from anyone. Anything else from anyone else gets unrecognized user or function. Admins send commands from the MeshCore app on their own radio, like any direct message. On the node's own computer, the console's command bar runs advert, status, testalert and wx with a click.

Adding an admin

An admin is a radio's full public key, 64 hex digits. The short 12-character prefix isn't accepted, since another radio could copy it.

  1. Find the key. In the MeshCore app on the admin's radio, share the contact to see it.
  2. Add it to config.toml in the node folder:
    [admins]
    keys = ["<first admin's key>", "<second admin's key>"]
    The installer's second question writes the first one.
  3. Restart: systemctl --user restart mesh-contingency.
  4. Advert from that radio, so the node has it as a contact.

Admins can only be changed by editing this file, never over the mesh, so a lost radio can't make more. Keep config.toml readable only by you (chmod 600; the bot warns if it isn't).

If the node's radio is in manual-add mode (a setting on the radio that older versions turned on), the bot adds the admins' radios when they advert, and nobody else.

alert

alert Shelter open at First Baptist, 5th and Main
→ alert: posted to Public

Posts the message, as typed, to the Public channel. It must fit in one channel message: 133 characters, less the node's name and : . Too long, and nothing is posted:

→ alert: too long for one channel message (140 characters; at most 119); nothing posted

testalert

testalert
→ testalert: posted to Public; next weekly test Wed 5:00PM CST

Posts the weekly test message and the counties watched to Public, now. Use it after setting up the node, or after moving its antenna.

advert

advert
→ advert: sent a flood advert

Makes the node's radio send a flood advert now: relayed across the mesh, so radios out of direct range learn the node and can message it. Use it after moving the node, or when someone new can't see it. advert zero sends a zero-hop advert instead, heard only by radios in direct range.

The node also adverts by itself when it starts ([advert] at_startup, on unless set to false; not again within 30 minutes of the last one). It counts towards [advert] every_hours, so the schedule doesn't send another right after. Floods use everyone's airtime, so don't send them often. On a node from 1.0.0, turn it on first by adding advert = { permission = "admin" } to [commands] and restarting.

status

status
→ status: up 2d 1h; radio Node (Heltec V3 v1.9); radio up 1d 2h; battery 4.05V; contacts 86/350; channel Public
→ alerts 19 counties, checked 4m ago; last test 6d ago; next test Wed 5:00PM CST; last flood advert 30m ago

How the node is doing, in one or two messages: how long the bot has been up; the radio's name and model, its own uptime, battery and contacts (of how many it can hold); the alert channel; the counties watched and when the NWS last answered; the last and next weekly test; the last flood advert.

  • If the last check for alerts failed, it says why (last check failed: ...), and names any county the NWS couldn't look up.
  • Anything the radio doesn't answer within 5 seconds is left out.
  • On a node from before 1.2, turn it on by adding status = { permission = "admin" } to [commands] and restarting.

wx

wx 79601
→ 79601 Clear, 0% precip 6h | 55F S14mph 94%RH | Today 76F Mostly Sunny | Tonight 58F Rain Showers
wx Tom Green, TX
→ Tom Green, TX Cloudy, 0% precip 6h | 61F S14mph G22 82%RH | Today 74F Sunny | Tonight 56F Rain Showers

The weather there now and what's coming, for anyone who messages the node (in the example config). It takes a zipcode, a county and state (Taylor, TX, taylor tx, Taylor County, TX) or an NWS county code (TXC441).

The reply is one message, in this order:

  1. Alerts, most severe first, each with when it ends: til 6:15PM today, til Wed 6AM on a later day, in the area's own time.
  2. The sky and rain: the conditions, rain in the last hour (0.31in/hr) and the chance in the next 6 hours.
  3. Now: the temperature, what it feels like when the heat index or wind chill is 3F or more off ((feels 17F)), wind (S14mph, gusts as G22, or calm), humidity (94%RH), and visibility when it's under 3 miles (vis 1mi).
  4. The forecast for the next two periods, such as today and tonight.

Alerts always come first. When it's too long, the forecast is left out first, then whole parts after the alerts:

→ 79601 ALERT: Flash Flood Warning til 6:15PM | Heavy Rain, 0.31in/hr, 90% precip 6h | 68F S25mph G43 90%RH vis 1mi
→ 79601 ALERT: Flash Flood Warning til 6:15PM; Wind Advisory til Wed 6AM | Heavy Rain, 0.31in/hr, 90% precip 6h

With many alerts, their end times are left out so every alert's name fits.

  • It needs the node's internet: zipcodes are looked up at api.zippopotam.us, everything else at api.weather.gov.
  • Only radios in the node's contacts get a reply. On a radio in manual-add mode the bot adds only the admins, so others need adding to the node's radio first.
  • On a node from before 1.2, turn it on by adding wx = { permission = "public" } to [commands] and restarting.

help

help
→ commands: help, alert, testalert, advert, status, wx. Send help <command> for usage
help alert
→ alert <message> - Post a message to the Public channel

Lists the commands you may use, or how to use one.

Who may run what

Set in config.toml:

[commands]
help = { permission = "admin" }
alert = { permission = "admin" }
testalert = { permission = "admin" }
advert = { permission = "admin" }
status = { permission = "admin" }
wx = { permission = "public" }

A permission is "admin", "public" (anyone who can message the node) or "disabled". Making help public lets anyone see what the node has. Making alert public lets anyone post to Public through the node, so don't. wx only reads the weather, so it's public in the example.

How often one radio may run commands is limited per level in [limits] (public_rate = "10/hour", admin_rate = "none" are the defaults), or per command with rate = "5/hour".