From 8555938f524eedba3b13b7fbe2458c73e5f04a16 Mon Sep 17 00:00:00 2001 From: Smittix Date: Tue, 6 Jan 2026 20:46:36 +0000 Subject: [PATCH] Add readsb warning for HackRF/LimeSDR ADS-B tracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enhanced /adsb/tools endpoint to detect SoapySDR hardware and check for readsb - Added UI warning in aircraft dashboard when HackRF/LimeSDR is detected but readsb is missing - Warning includes expandable installation instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- instance/intercept.db | Bin 32768 -> 32768 bytes routes/adsb.py | 25 +++++++++++++++-- templates/adsb_dashboard.html | 50 ++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 3 deletions(-) diff --git a/instance/intercept.db b/instance/intercept.db index 123a5aed16e17ddf867aa44ded5791afd178fc75..15137ad5eefec838d0fa0e09058b15db5101f2ec 100644 GIT binary patch delta 41 rcmZo@U}|V!njp=XKT*b+F@IwMpFER^+2jIw0}!7N2pFESX#pD8c0}! r.json()) + .then(data => { + if (data.needs_readsb) { + showReadsbWarning(data.soapy_types); + } + }) + .catch(() => {}); + } + + function showReadsbWarning(sdrTypes) { + const typeList = sdrTypes.join(', ') || 'SoapySDR device'; + const warning = document.createElement('div'); + warning.id = 'readsbWarning'; + warning.style.cssText = ` + position: fixed; + bottom: 80px; + left: 50%; + transform: translateX(-50%); + background: rgba(245, 158, 11, 0.95); + color: #000; + padding: 15px 25px; + border-radius: 8px; + font-size: 12px; + z-index: 10000; + box-shadow: 0 4px 20px rgba(0,0,0,0.5); + max-width: 500px; + text-align: left; + font-family: 'Inter', sans-serif; + `; + warning.innerHTML = ` +
⚠️ ${typeList} Detected - readsb Required
+
ADS-B tracking with ${typeList} requires readsb compiled with SoapySDR support.
+
+ Installation Instructions +
+ sudo apt install build-essential libsoapysdr-dev librtlsdr-dev +git clone https://github.com/wiedehopf/readsb.git +cd readsb +make HAVE_SOAPYSDR=1 +sudo make install +
+
+ + `; + document.body.appendChild(warning); + } + function updateClock() { const now = new Date(); document.getElementById('utcTime').textContent =