Point POTACAT and Graywolf at rigctld in radio configure

POTACAT gets a "rigctld Network" rig at 127.0.0.1:4532 in My Rigs, made
the active rig, with the connection written where POTACAT reads it: the
global settings, or the operator's profile once there is one. It's left
alone if it has a radio set up, unless --force.

Graywolf's web API needs its password, so its database gets the change:
PTT through rigctld on each channel that transmits and has none. It's
checked first without writing; only if something changes is Graywolf
stopped with sudo, its database backed up through SQLite, and Graywolf
started again. If sudo is refused, or no channel transmits, it says what
to set in the web UI instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 12:56:14 -07:00
co-authored by Claude Opus 5.5
parent 892bfb9df0
commit 04d973039a
5 changed files with 306 additions and 16 deletions
+7 -6
View File
@@ -7,21 +7,22 @@ keeps the record. Checks that need real radios are in `TEST.md`.
Find the radios plugged into USB and set up HamPack's programs for them.
Done: `radio detect` and `radio probe`, `radios.conf`, adding you to the uucp
group (6c76f94), and the start of `radio configure`.
group (6c76f94), and `radio configure` for each of HamPack's programs that
control a radio.
- [ ] Run `TEST.md` against real radios, and mark the `radios.conf` values
they confirm `# verified`. Fix or remove the ones they don't
- [ ] Tell Elecraft's radios apart. The K3, KX3, KX2 and K4 all answer `ID017;`,
so `radio` lists all four. Find an Elecraft command whose reply names
the model
- [ ] `radio configure`, the rest. Started: it writes the rigctld user
service and points WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm and
QLog at it. Still to do:
- [ ] POTACAT and Graywolf
- [ ] `radio configure`, the rest. It writes the rigctld user service and
points WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm, QLog, POTACAT
and Graywolf at it. Still to do:
- [ ] Sound cards. Each program saves its sound device under a name from
its audio backend (WSJT-X saved "pipewire" here), so find what each
saves for a USB codec on a real machine before writing it. Dire Wolf
is done: it takes ALSA names
is done: it takes ALSA names. Graywolf takes cpal device names, and
needs a channel with an audio device; POTACAT keeps audio per rig
- [ ] flrig can't use rigctld, so it can't run alongside it. Say so, or
offer flrig as the controller instead
- [ ] More than one radio at once: a rigctld for each, on its own port