No description
  • Python 54.1%
  • HTML 43%
  • Dockerfile 2.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jake Gaylor d648e9ac87
All checks were successful
build / build (push) Successful in 55s
Band Watch history in Postgres; fall back to Band Watch when idle (#5)
2026-11-01 04:39:36 +00:00
.forgejo/workflows radioman: RTL-SDR web app, FM Explorer, container image 2026-10-20 21:42:22 -04:00
radioman Band Watch history in Postgres; fall back to Band Watch when idle (#5) 2026-11-01 04:39:36 +00:00
.dockerignore radioman: RTL-SDR web app, FM Explorer, container image 2026-10-20 21:42:22 -04:00
.gitignore radioman: RTL-SDR web app, FM Explorer, container image 2026-10-20 21:42:22 -04:00
Dockerfile Band Watch history in Postgres; fall back to Band Watch when idle (#5) 2026-11-01 04:39:36 +00:00
README.md Band Watch history in Postgres; fall back to Band Watch when idle (#5) 2026-11-01 04:39:36 +00:00

radioman

A web app for an RTL-SDR (built for the RTL-SDR Blog V4) or an Airspy R2/Mini: one page to switch the radio between modes, each an existing decoder.

  • Planes: dump1090's live map of ADS-B at 1090 MHz
  • Tower audio: AM airband with Boston Logan presets
  • FM / weather radio: broadcast FM and NOAA weather radio, streamed to the browser
  • Sensors: rtl_433 (weather stations, tire sensors, utility meters, ...)
  • FM Explorer (/fm.html): scans the band, names stations from RDS, shows the FM multiplex live; change stations by swiping, by voice (hold Space) or by keyboard
  • Band Watch (/watch.html, Airspy only): every station in the busiest 8.6 MHz of the last scan at once, from one 10 MS/s capture split into per-station multiplexes for one redsea -c N. Shows what each is playing (RadioText+ artist/title, else RadioText) and a timeline of it. With DATABASE_URL set, everything it hears goes to Postgres (radioman/store.py has the tables: segments, watch_sessions, station_names); without one, to watch.jsonl, which is imported into Postgres the first time there is one

Only one decoder can hold the radio, so starting a mode stops the last one.

Radios

RADIOMAN_SDR picks the radio; each mode's commands and gain scale follow it (radioman/modes.py). The default, auto, uses whichever radio is on the USB bus at a device node the process can see (in a pod, the one it was given), so one image runs either; with neither (or no sysfs, as on macOS) it assumes an RTL-SDR.

Mode rtlsdr airspy
Audio (AM, NFM, FM multiplex) rtl_fm radioman.airspy demod: airspy_rx I/Q at 2.5 MS/s, filtered and demodulated in numpy
FM band scan rtl_power radioman.airspy scan: three 10 MS/s hops, same CSV
Sensors rtl_433 rtl_433 -d driver=airspy (SoapySDR)
Planes dump1090 airspy_adsb pushing Beast frames into a network-only dump1090
Gain tuner dB, 0–50 linearity steps, 0–21 (~3 dB each)
Squelch rtl_fm -l level dB above the noise floor

Browsers remember settings separately for each radio, and the server swaps a gain that's off the radio's scale for its default.

Run locally (macOS)

brew install librtlsdr rtl_433 ffmpeg meson ninja liquid-dsp libsndfile nlohmann-json
brew install airspy                     # for RADIOMAN_SDR=airspy (no airspy_adsb on macOS)
git clone --depth 1 https://github.com/flightaware/dump1090.git
make -C dump1090 RTLSDR=yes BLADERF=no HACKRF=no LIMESDR=no SOAPYSDR=no dump1090
git clone --depth 1 https://github.com/windytan/redsea.git
(cd redsea && meson setup build && meson compile -C build)
python3 -m venv .venv && .venv/bin/pip install numpy "psycopg[binary]"
.venv/bin/python -m radioman.app        # http://localhost:8080

Container

Dockerfile builds every tool against the RTL-SDR Blog driver fork and adds Debian's airspy and SoapyAirspy packages plus the pinned airspy_adsb binary. Settings:

Env Default in the image
RADIOMAN_HOST / RADIOMAN_PORT 0.0.0.0 / 8080 listen address
RADIOMAN_DATA /data scan results, station names, aircraft JSON
RADIOMAN_SDR auto auto, rtlsdr or airspy
RADIOMAN_IDLE_MODE unset a mode to start when the radio has been idle (and at boot); watch keeps Band Watch collecting
RADIOMAN_IDLE_AFTER 60 seconds idle before that
DATABASE_URL unset Postgres for Band Watch's history

The container needs the radio's USB device node (/dev/bus/usb/BBB/DDD) and permission to open it. For an RTL-SDR (USB 0bda:2838) the host must not have its DVB-T driver (dvb_usb_rtl28xxu) bound to the dongle; an Airspy (1d50:60a1) has no kernel driver. In home-cloud that's platform/device-plugins (home-cloud/rtlsdr) and ansible's rtlsdr role; the app is apps/radioman. Pushes to main build git.inevitable.fyi/jhgaylor/radioman (.forgejo/workflows/build.yml).