Repository navigation
1.0.0
Mesh Contingency is cut down to one job: National Weather Service alerts for
your counties, posted to MeshCore's Public channel, with alert,
testalert and help for its admins (plan).
Everything removed is kept on the tag archive/full-system (and the branch
archive/full); the phone app's APK and the desktop installers stay on the
v0.12.0 and earlier GitHub releases. A 0.x config still starts: what no
longer exists is ignored, with one warning naming it.
Removed
- The web console and the remote console:
mesh-contingency-console,
[console], and theconsoleextra (aiohttp, cryptography). - The phone app and the desktop app (
app/), and CI's builds of them. - Every command but
alert,testalertandhelp:- users and joining:
join,approve,users,remove,whois, ... - the mailbox:
msg,inbox,setpass,clearinbox, sealing - email:
qm,setqm,email,emailall,setemail - check-ins:
ok,status,checkins,roster - weather on request:
wx,area,alertmap - the rest:
comm,verseand the Bible,health,history,backup,
radio,advert,contact,contacts,reload
- users and joining:
users.toml, its reloading, and radio names synced into it.- The node watch (
[watch]: admins told about problems), backups
([backup]), new-contact notices and auto-adding by node type
([contacts]), and the email caps in[limits]. - The
#contingency-wxand#contingency-commchannels: the bot no longer
adds or renames any channel. - The installer's
--console,--alert-channeland--comm-channel. examples/mesh-dice,ENCRYPTION_NOTES.md,requirements.txt, and
pycryptodome as a dependency.- The finished plans in
docs/plans(on the archive branch); the roadmap is
now short.
Changed
- Alerts go to the Public channel by default, found by its key in
whatever slot it's in. A radio without Public posts nothing: the bot
warns at startup,alertandtestalertsay so, andinstall.sh --check
stops on it. The default test message no longer names a channel. [alerts] channelpicks another channel for the alerts,alert,
testalertand the weekly test:"Public", or a hashtag channel such as
"#wx-test", to try a node out without posting to everyone. A hashtag
channel the radio doesn't have is added to its first empty slot. A
channelleft in[commands.alert]is ignored with a warning.- Admins are in
config.toml:[admins] keys = ["<64-hex key>", ...].
With no[admins], the bot still reads[admin] keysfrom an old
users.toml, with a warning to move them. - On a radio in manual-add mode, the bot adds only the admins' radios when
they advert, and never changes that setting itself. - The command machinery is its own library,
mesh-commands0.1.0 in
packages/mesh-commands(import namemesh_commands), with no imports
from Mesh Contingency and its own README, CHANGELOG and tests, which CI
runs on their own.mesh_contingency.api,.registry,.limits,
.running,.output,.testingand thehelpcommand moved there;
commands of your own import frommesh_commands. Installing takes both:
pip install -e packages/mesh-commands -e .. - The installer asks a new node for its counties
(Taylor, TX; Jones, TX) and, optionally, its first admin's key, and
writes them intoconfig.toml;--countiesand--admin-keyanswer
without asking, and a skipped answer stays on the to-do list. It no
longer makesusers.toml, and an update asks nothing. Its version line
names the release (git describe --match 'v*'). install.sh --checkreads the config as the bot does. It stops on a
config mistake or no counties before starting, and on no Public channel
or an alert watcher that didn't start after; no admins is a note.config.example.tomland the README are cut down to what's left.
Added
- A filter for the automatic alerts:
[alerts] severity(Extreme, Severe,
Moderate, Minor, Unknown) and[alerts] events(event names, any case).
An alert is posted if it passes every filter set; with neither, all are.
A filtered-out alert is remembered as seen, so changing the filter later
doesn't post old alerts. - The one-command install
(curl -fsSL https://raw.githubusercontent.com/DJSnitker/mesh-contingency/main/install.sh | bash),
with--check, and the USB port check: with a radio plugged in, it says
what keeps you from opening it (the group to join, a login that hasn't
picked up a new group yet). It runs without sudo and refuses root, and
prints the one-time commands that need an admin's sudo. CI lints it with
shellcheck and runs a fresh install and an update.