Skip to content

1.0.0

Choose a tag to compare

@DJSnitker DJSnitker released this 23 Nov 20:51
· 46 commits to main since this release
52ae529

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 the console extra (aiohttp, cryptography).
  • The phone app and the desktop app (app/), and CI's builds of them.
  • Every command but alert, testalert and help:
    • 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, verse and the Bible, health, history, backup,
      radio, advert, contact, contacts, reload
  • 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-wx and #contingency-comm channels: the bot no longer
    adds or renames any channel.
  • The installer's --console, --alert-channel and --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, alert and testalert say so, and install.sh --check
    stops on it. The default test message no longer names a channel.
  • [alerts] channel picks another channel for the alerts, alert,
    testalert and 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
    channel left 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] keys from 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-commands 0.1.0 in
    packages/mesh-commands (import name mesh_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, .testing and the help command moved there;
    commands of your own import from mesh_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 into config.toml; --counties and --admin-key answer
    without asking, and a skipped answer stays on the to-do list. It no
    longer makes users.toml, and an update asks nothing. Its version line
    names the release (git describe --match 'v*').
  • install.sh --check reads 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.toml and 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.