Commit Graph
100 Commits
Author SHA1 Message Date
David YoungandClaude Opus 5.5 c2cb2bc2f4 Set not1mm's sound card in radio configure
not1mm's voice keyer gets the radio's sound card, named exactly as the
sounddevice library in not1mm's own Python lists it: its settings dialog
finds the device by exact name, and falls back to the first one listed.
PipeWire's name for the card, through PortAudio's JACK support, comes
first, since it stays the same from boot to boot. Without it, or with two
cards of the same name, it's ALSA's, which has the card's number in it;
a number radio wrote before is updated when the card's number changes.

The closing message now leaves only fldigi and POTACAT for you to set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:11:16 -07:00
David YoungandClaude Opus 5.5 4053664d77 Set the radio's sound card in radio configure
WSJT-X and JS8Call get the radio's sound card as PipeWire names it: radio
asks pactl for the input and output nodes on the radio's ALSA card.
WSJT-X (Qt 5, through Qt's PulseAudio plugin) keeps the node names in
SoundInName and SoundOutName; JS8Call (Qt 6) keeps them in SoundInId and
SoundOutId, with PipeWire's descriptions, quoted as Qt writes them, in
SoundInName and SoundOutName. A setting that's empty or a default
("default", "pipewire") is replaced; a device you chose is left alone
unless --force.

If Graywolf has no channels, it gets input and output devices on
plughw:CARD=...,DEV=0 and a channel named after the radio, with its
defaults (1200 baud AFSK, APRS) and PTT through rigctld, in the same
stop and start as the PTT change.

fldigi, not1mm and POTACAT name sound cards in ways radio can't write,
so the closing message names them and says which card to choose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:06:17 -07:00
David YoungandClaude Opus 5.5 04d973039a 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>
2026-11-28 12:56:14 -07:00
David YoungandClaude Opus 5.5 892bfb9df0 Point not1mm and QLog at rigctld in radio configure
not1mm gets rigctld at 127.0.0.1:4532, with flrig and TCI off, unless it
has rig control set up already.

QLog keeps rig profiles in its log database, so it gets a "HamPack"
profile there (Hamlib NET rigctl, 127.0.0.1:4532), selected, with the
values QLog 0.54.2's own form gives a new profile. It's added only if
there are no profiles yet, or with --force, and only when QLog isn't
running and its log has the columns it needs. The log is backed up first
through SQLite, so the backup includes what's still in qlog.db-wal.

The probe tests' python3 stub now fakes only the probe, so QLog's step
runs against a real SQLite log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:43:27 -07:00
David YoungandClaude Opus 5.5 a02fa0cc85 Point fldigi and Dire Wolf at rigctld in radio configure
fldigi gets Hamlib rig control through rigctld (NET rigctl at
127.0.0.1:4532) with PTT by Hamlib, and its other rig control modes
turned off, unless it has rig control set up already. It's skipped until
fldigi has made its settings, so its first-run wizard still appears.

Dire Wolf gets PTT RIG 2 127.0.0.1:4532 and the radio's sound card as
plughw:CARD=...,DEV=0, replacing only the values HamPack ships with.
Settings you've changed are left alone unless --force.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:36:17 -07:00
David YoungandClaude Opus 5.5 eddd363e86 Start radio configure: rigctld for the radio, with WSJT-X, JS8Call and Pat on it
`radio configure` asks the radio what it is and the baud rate it answers
at, then runs rigctld for it as the hampack-rigctld systemd user service
on 127.0.0.1:4532, using the port's /dev/serial/by-id name. WSJT-X (the
Flatpak) and JS8Call get Hamlib NET rigctl with PTT by CAT; Pat gets a
"hampack" rig, used by ARDOP and VARA where they had none. Rig settings
you've set are left alone unless --force, each file is backed up first,
and programs that are running are skipped. With several radios, give the
number `radio` now lists; --model sets the Hamlib model for a radio it
can't tell apart from others. Sound cards are left for you to choose.

hampackremove stops and removes the service. PLAN.md lists the programs
still to do; TEST.md has the checks on a real radio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:22:16 -07:00
David YoungandClaude Opus 5.5 e71f1e59c2 Plan radio autoconfiguration, and list the checks that need real radios
check / lint-and-test (push) Successful in 1m55s
check / packages (push) Successful in 23s
PLAN.md lists what's left: checking radios.conf against real radios,
telling Elecraft's radios apart, `radio configure`, CM108 PTT, the
Flatpaks' serial access, and dropping graywolf's unused dialout group.
TEST.md lists the checks the fakes can't do, with tables for results:
the uucp group, finding each radio, and pairing radios with sound cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:14:04 -07:00
David YoungandClaude Opus 5.5 6c76f94ac6 Add radio, which finds radios on USB, and put you in the uucp group
check / lint-and-test (push) Successful in 2m2s
check / packages (push) Successful in 23s
`radio` lists each radio plugged into USB: its serial ports, the sound
card that came with it (the same USB device, or behind the radio's own
hub), and its model and Hamlib model number. Icoms are recognised by
their USB serial number. `radio detect --probe` asks the others with the
CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates,
on ports no other program has open; `radio probe PORT` asks one port.
It drops DTR and RTS as soon as a port opens. The radios it knows are
in radios.conf.

update.sh links ~/.local/bin/radio to the clone, unless a different
radio is already there, and adds you to uucp, which owns serial ports on
Arch. hampackremove removes the link, and takes you out of uucp only if
HamPack put you in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:12:31 -07:00
David YoungandClaude Opus 5.5 48d94ca432 Add an empty PLAN.md
check / lint-and-test (push) Successful in 1m37s
check / packages (push) Successful in 23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 04:59:40 -07:00
David YoungandClaude Opus 5.5 774bceb74d Install rtl-sdr, which Dump1090 builds against
check / lint-and-test (push) Successful in 1m36s
check / packages (push) Successful in 24s
Dump1090 includes rtl-sdr.h, but packages.conf never listed rtl-sdr: it
built only when another package happened to pull rtl-sdr in. The
smoketest found it when that package failed to install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:01:20 -07:00
David YoungandClaude Opus 5.5 e8fbe256df Add a smoketest, run on CoreDesktop's with coredesktop-dev
check / lint-and-test (push) Successful in 1m37s
check / packages (push) Successful in 23s
`coredesktop-dev smoketest run --with HamPack` installs HamPack on a VM with
CoreDesktop and checks a fresh install, an update with nothing to do, a
one-app rebuild, a failing build and hampackremove, with smoketest/health
checking every package, Flatpak and app is in place.

HAMPACK_SKIP_WINDOWS_APPS skips the Windows installers, which the test VMs'
desktop would start with no one to click through them; smoketest/setup sets
it in each VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:15:11 -07:00
David YoungandClaude Opus 5.5 bc536407c4 Name libappindicator and zim-tools, not the names they provide
check / lint-and-test (push) Successful in 1m48s
check / packages (push) Successful in 23s
libappindicator-gtk3 and zimwriterfs aren't packages any more; they
installed only because libappindicator and zim-tools provide them. But
hampackremove couldn't match those names with what's installed, so it
never removed them. zim-tools was already listed, so zimwriterfs goes.
Updates rename the old names in the record of installed packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:47:43 -07:00
David YoungandClaude Opus 5.5 8023b04024 Check packages upstream, test hampackcheck and the conf files, add CI
`hampackcheck packages` (and `make check-packages`) checks that every
package in packages.conf is in the repos or on the AUR and every Flatpak
is on Flathub, and fails if any is missing or couldn't be checked. Names
only provided by another package pass with a note.

New tests cover hampackcheck's version comparisons and package check, and
check compile.conf, binaries.conf, packages.conf and the desktop files for
missing or misspelt fields and paths that don't exist.

A Gitea workflow runs lint and tests on every push and pull request, and
the package check on those and weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:46:29 -07:00
David YoungandClaude Opus 5.5 bb5c7900d5 Ask for the VARA and Winlink zips when winlink.org won't serve them
downloads.winlink.org now puts a Cloudflare browser check in front of
every page, so the installers' download fails with a 403 and updates
ended with an error (report CD-NTEU79). Look for the zip in the user's
Downloads folder first, and if it isn't there and the site refuses,
list which zips to download and from where instead of failing the
update. A zip that won't extract or an installer that doesn't finish
is still an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 09:06:01 -07:00
David YoungandClaude Opus 5.5 354a4cbe03 Stop installing xara, which its author has discontinued
On 2026-11-08 xara's author replaced its repository with a README saying
development and distribution have stopped, so it no longer builds and
every update failed trying (report CD-NTEU79). Remove its build entry,
the Rust toolchain and the libraries it alone needed, its tests and its
README section, which was also there twice.

hampackremove still stops xara's service and points to its settings,
for machines where an earlier HamPack built it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 09:06:01 -07:00
David YoungandClaude Opus 5.5 d5a64243d6 Install gpsd, not the nonexistent gpds package
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:50:03 -07:00
David YoungandClaude Opus 5.5 98b6c8c480 Build POTACAT's native decoders before packaging it
POTACAT 1.14 refuses to package unless its FT8 and JS8 decoders are
compiled, so the potacat build failed at npm run dist:linux. Run
npm run build-natives first, as POTACAT's own release builds do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:44:52 -07:00
David YoungandClaude Opus 5.5 6bf0565917 Correct the comment on Wine's Decorated setting
Decorated=N makes Wine draw its own Windows-style frames instead of the
window manager's; it doesn't remove decorations, and VARA and Winlink
don't draw their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:18:59 -07:00
David YoungandClaude Opus 5.5 cdba8b45e7 Add xara, a VARA-compatible modem, alongside VARA under Wine
- compile.conf: build xara 0.1.3 with cargo, without the "registered"
  feature; stage-install xara, xara-monitor, man pages, the user
  service (pointed at ~/.local/bin) and the CM108/AIOC PTT udev rule;
  copy the config template to ~/.config/xara/xara.conf if it's not
  there. The service isn't enabled: it needs a callsign, and shares
  port 8300 with VARA
- packages.conf: alsa-lib and libpulse; rust only when there's no cargo
  yet, since it conflicts with rustup
- hampackremove: stop and disable the xara service, keep the user's
  settings and say where they are
- README: how to set up xara and use it with Pat
- tests for the xara build, the rust/cargo check and removal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:16:08 -07:00
David YoungandClaude Opus 5.5 6e100ba7d2 Update POTACAT, pin Dump1090, version YAAC by date
- potacat 1.11.7 -> 1.14.1 (same build config and targets)
- Dump1090 has no tags; pin ref= to efe64db, which installed builds
  already match, so nothing is rebuilt
- YAAC.zip carries no version number; use its release date (2026-11-07,
  from Last-Modified) as version=, which picks up the newer release
- hampackcheck compares a pinned ref= with upstream HEAD for repos
  without version tags, and date versions with Last-Modified

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:00:54 -07:00
David YoungandClaude Opus 5.5 0b471c9771 Harden install, update and uninstall; add shared lib and tests
Updates
- install-compiled.sh never prompts: unknown versions rebuild, a missing
  version= fails
- Detect VARA Terminal by "VARA Terminal.exe" in drive_c/VARA, not by
  the folder VARA HF also uses
- install-windows-apps.sh checks first: nothing is downloaded and
  winetricks doesn't run unless a product is missing, and installers
  only run with a desktop session
- Flatpaks install system-wide from flathub and honor skip-packages
- Rewrite desktop files on every run so icon paths stay right; add the
  missing QtTermTCP desktop file
- Build steps can't read the rest of the conf through stdin

Uninstall
- update.sh records the packages and Flatpaks HamPack itself installed;
  hampackremove removes only those that nothing else needs, and lists
  the rest
- Read package lists from packages.conf instead of copies, remove
  files from install manifests, conf install paths and older builds,
  and revert the Wine Decorated setting

Security
- Replace the NOPASSWD sudoers file with a sudo keepalive, and delete a
  leftover /etc/sudoers.d/hampack
- Verify binaries.conf downloads against sha256=; pin dx.py to a commit
- Graywolf's web UI listens on 127.0.0.1; update.sh manages its unit
- Install direwolf and kiwix through a staging directory with
  install_staged, so nothing in ~/.local ends up owned by root; hand
  back any root-owned files left by older builds
- Use private temp directories instead of fixed /tmp paths

Code quality
- Shared lib.sh: conf parser, variable expansion, version records,
  install tracking, staged installs, sudo keepalive
- bats tests covering first install and update paths, Makefile with
  lint/test/hooks, pre-commit hook
- patch-potacat.sh uses jq; drop stale kiwix version entries

README: fill in what gets installed, uninstall and graywolf notes,
development section, typo and Matrix link fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:55:13 -07:00
David YoungandClaude Opus 5.5 ebda32d567 Fix kiwix-tools rebuilds, failed-build handling, and config expansion
- compile.conf: kiwix-tools never installs kiwix-lib, so it was rebuilt
  on every update; detect it by kiwix-serve instead
- install-compiled.sh: stop at the first failing build step, report the
  app as failed, and don't record its version so the next update retries
- install-binaries.sh, install-compiled.sh: expand only $HOME,
  $HAMPACK_DIR and $USER in config values instead of `eval echo`, which
  dropped semicolons (e.g. categories=HamRadio;) and mangled quotes and
  spacing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:24:58 -07:00
David Young 52f043d0b5 not1mm desktop file 2026-10-22 13:09:48 -06:00
David Young 097502bd2e remove hampack app builds 2026-10-20 07:24:40 -06:00
David Young 1a8bdda0aa sibling requirements 2026-10-20 06:21:18 -06:00
David Young b7c7b6f6e8 Conform to sibling requirements 2026-10-20 06:21:10 -06:00
David Young 7d9bdfcb35 set updates 2026-08-31 06:52:48 -06:00
David Young 34806ad470 updates 2026-08-24 07:12:03 -06:00
David Young fc55527acb remove hampack binary 2026-08-14 05:53:19 -06:00
David Young ce83572994 remove hampack app 2026-08-13 14:29:48 -06:00
David Young c05aa07115 not1mm upgrade fix 2026-08-13 14:17:35 -06:00
David Young 2b5c8f898a update potacat 2026-08-08 19:21:46 -06:00
David Young ba49271a0f updates 2026-07-27 07:26:43 -06:00
David Young fd25fa274f updates 2026-07-20 09:45:56 -06:00
David Young 773dda820d update versions 2026-07-13 06:47:03 -06:00
David Young 81b9a88673 compile updates 2026-06-29 07:08:36 -06:00
David Young 6c1d4942e7 updates for compiled 2026-06-24 17:19:32 -06:00
David Young f61918e6e4 update update scripts 2026-06-20 08:43:17 -06:00
David Young 88c9b26be4 compile updates 2026-06-20 08:19:42 -06:00
David Young b543a6dd36 hampackupdate fix 2026-06-18 12:41:27 -06:00
David Young bfc7ffaf83 update compiled packages 2026-06-15 12:14:46 -06:00
David Young 9ad0d0720d update update process 2026-06-15 12:08:23 -06:00
David Young 6dd0358c5f fit updates in to new system 2026-06-11 10:46:18 -06:00
David Young 3b43a11cf1 requirements 2026-06-10 15:35:34 -06:00
David Young d479426826 bring windows windows forward 2026-06-05 15:51:42 -06:00
David Young 305b90755b fix graywolf 2026-06-05 15:40:10 -06:00
David Young 49b34452d8 fix graywolf 2026-06-05 15:36:48 -06:00
David Young 77c9022052 fix sudo 2026-06-05 15:26:46 -06:00
David Young 2dd6986b8c various fixes 2026-06-05 15:23:07 -06:00
David Young 3f8ef14bb2 improve readme. add license. 2026-05-30 07:33:30 -06:00
David Young 723f1eee34 more fixes for graywolf 2026-05-30 07:03:56 -06:00
David Young cf3e3ab8db fix graywolf install 2026-05-30 06:48:07 -06:00
David Young 9f5abe4cf6 fix graywolf version 2026-05-30 06:35:57 -06:00
David Young 725b1a9b18 add dialout group 2026-05-30 06:32:21 -06:00
David Young 401bdda2ad add graywolf 2026-05-30 06:29:33 -06:00
David Young 372d1d2408 more fixes 2026-05-23 16:48:20 -06:00
David Young 1ec77821b1 fix qtcompile 2026-05-23 16:39:51 -06:00
David Young 7c8e6db848 add libraries 2026-05-23 08:36:50 -06:00
David Young 3b3a120f77 another fix for desktop files 2026-05-20 10:34:07 -06:00
David Young 9d79b618b1 fix js8call 2026-05-20 10:31:44 -06:00
David Young 82f4f72f60 fix desktop files 2026-05-20 10:24:23 -06:00
David Young e3c154b9e0 fix js8call install 2026-05-20 09:14:53 -06:00
David Young 1a73e341f5 fix js8call desktop file installation 2026-05-20 09:11:05 -06:00
David Young 970a0d5de8 fix update and refresh 2026-05-20 09:04:13 -06:00
David Young 5b24401407 fix js8call 2026-05-19 11:07:02 -06:00
David Young 68dd17f712 remove js8call flatpak 2026-05-19 08:46:33 -06:00
David Young ba40228125 add boost 2026-05-19 08:32:53 -06:00
David Young 487ec122f1 add boost-libs 2026-05-19 08:31:09 -06:00
David Young aa05ce35f4 fix js8call 2026-05-19 08:25:36 -06:00
David Young bc732216ea improve the update function 2026-05-19 07:26:31 -06:00
David Young fd20f3919d add JS8Call 2026-05-19 05:58:35 -06:00
David Young 16d3f332a8 update not1mm 2026-05-15 13:50:55 -06:00
David Young 1dafb90386 potacat version update 2026-05-13 12:08:50 -06:00
David Young 17a2db099e update potacat 2026-05-11 06:27:18 -06:00
David Young 0b366fc383 compile fixes 2026-04-30 07:20:14 -06:00
David Young 73a6b7a83b various updates 2026-04-30 07:12:15 -06:00
David Young 78b1d32e69 fix versions 2026-04-29 15:00:05 -06:00
David Young c8d25e1dbf fix hampack icon 2026-04-02 18:33:15 -06:00
David Young 675ddd1570 icon changes again 2026-04-02 18:26:02 -06:00
David Young 9abdcd3c80 change icon 2026-04-02 18:19:46 -06:00
David Young 7b10bf77b8 more fixes to hampack app 2026-04-02 13:58:24 -06:00
David Young fb9b129f06 update potacat 2026-04-02 13:54:42 -06:00
David Young 90d9ddcd32 further fixes for HamPack 2026-04-02 13:52:52 -06:00
David Young 453e7a7a9c hampack app fixes 2026-04-02 09:27:22 -06:00
David Young 5afd4c077d further fixes to hampack-manager 2026-03-31 16:14:43 -06:00
David Young 3187dd3c79 more fixes to go program 2026-03-31 16:03:57 -06:00
David Young 1ff38b34e4 go app fixes 2026-03-31 15:09:05 -06:00
David Young a649fdd1e2 hampack-manager 2026-03-31 14:56:14 -06:00
David Young 5483d413da more various more fixes 2026-03-26 14:10:28 -06:00
David Young 512b22916e fix kiwix-desktop 2026-03-26 13:39:09 -06:00
David Young 137395c0ce install direwolf.conf 2026-03-26 13:35:03 -06:00
David Young 5d88c7a750 fixed direwolf and explained compile.conf 2026-03-26 13:27:16 -06:00
David Young eb69f1876c installing direwolf fixes 2026-03-26 13:17:15 -06:00
David Young f7569179bf fix yaac config 2026-03-25 14:34:14 -06:00
David Young f9dd75938d further direwolf fixes 2026-03-25 14:28:14 -06:00
David Young 483d73689d another fix for direwolf 2026-03-25 14:22:54 -06:00
David Young f9014a837c fix direwolf 2026-03-25 14:18:16 -06:00
David Young 3abf4ea6c2 direwolf 2026-03-25 14:15:58 -06:00
David Young 9e1c024415 fix sudo error 2026-03-25 13:26:35 -06:00
David Young c224ae4b6c fix sudo capture 2026-03-25 12:54:25 -06:00