mirror of
https://github.com/smittix/intercept.git
synced 2026-06-13 08:13:32 -07:00
f4282cb608
Major improvements to APRS decoding reliability: Process piping fixes (prevent deadlocks): - rtl_fm stderr -> DEVNULL (was blocking on unbuffered stderr) - decoder stderr -> STDOUT (merged, single stream to read) - decoder uses text=True, bufsize=1 for line-buffered reading - Proper EOF detection in stream thread rtl_fm command improvements: - Use -M nfm (narrowband FM) for APRS - Add -E dc (DC blocking filter) for cleaner audio - Add -A fast (fast AGC) for packet bursts - Sample rate 22050 Hz matches direwolf -r 22050 Parsing robustness: - Strip direwolf bracket prefixes like "[0.4] " before parsing - Handle multimon-ng "AFSK1200:" prefix - Better error handling for early process exit New /aprs/spectrum endpoint: - Runs rtl_power to scan around APRS frequency - Returns peak detection, noise floor, signal analysis - Provides advice for antenna/signal debugging - Supports region selection and custom frequency Also added UK to region list (same freq as Europe: 144.800 MHz) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>