Small command-line APRS messaging client for AGWPE-compatible servers such as Graywolf, Dire Wolf, and AGWPE.
Uses the pyham-pe AGWPE client library. Message text and delivery acknowledgements follow APRS message framing. Messages addressed to this station are saved locally in SQLite; numbered incoming messages are automatically acknowledged.
Requires Python 3.10+ and uv:
uv tool install git+https://github.com/timgrossner/aprsmsg.gitSet your station callsign and Graywolf address (port 8000 by default):
export APRS_CALLSIGN=KF0TIM
export AGWPE_HOST=graywolf-host-or-ipOr pass --callsign and --host to each command. APRS transmits are real radio transmissions; check the destination, path, radio configuration, and applicable operating rules before sending.
aprsmsg send DESTINATION MESSAGE [--via PATH]sends one message and exits.aprsmsg watchreceives and auto-acknowledges addressed numbered messages.aprsmsg readprints saved history without connecting.
Interactive mode is the default when you run aprsmsg with no subcommand. It opens a prompt similar to ragrc; use Tab to complete commands and recent station callsigns, and Up/Down for command history. Once /to CALL sets a recipient, plain text sends to that station. Use /msg CALL MESSAGE for a one-off send. /reply MESSAGE responds to the latest incoming station. /messages [CALL] lists saved traffic and /read NUMBER shows one entry. /status, /commands (or /help), and /quit are local commands; unknown slash commands are never transmitted. Prompt history is saved in history.txt beside the message database; override it with --history.
Options include --host, --tcp-port (AGWPE TCP port, default 8000), --radio-port (AGWPE radio index, default 0), --callsign, --db, and --history. Use these before a subcommand. watch --once exits after the first addressed message or matching ACK.
The SQLite database defaults to $XDG_DATA_HOME/aprsmsg/messages.sqlite3 (or ~/.local/share/aprsmsg/messages.sqlite3). The tool records the packets it submits and incoming messages, and displays ACK/reject status when received. It does not retry unacknowledged messages automatically.
uv sync
uv run python -m unittest discover -s tests -v