How district47/skywatch works
SkyWatch is a FastAPI/Leaflet monitoring application whose main dashboard workflow starts an aircraft or drone receiver, merges observations into a shared target tracker, and exposes the resulting map data and status through the web API. The repository also retains backend-only AIS, APRS, and NOAA capabilities. The graph preserves those documented branches; some internal details are represented at their source-file level because their implementations were not excerpted.
Main entry points: manager.py Module lifecycle manager · server.py REST and WebSocket API · tracker.py Unified target tracker · sbs.py SBS and OpenSky feeds
Components 26
Dashboard and control
- Map interface
skywatch/web/static/js/app.js - REST and WebSocket API
skywatch/web/server.py - Module lifecycle manager
skywatch/web/manager.py - Alert zones
skywatch/alerts.py
Aircraft monitoring
- Native ADS-B receiver
skywatch/adsb/native.py - SBS and OpenSky feeds
skywatch/adsb/sbs.py - Aircraft metadata
skywatch/adsb/aircraft_db.py - Aircraft classification
skywatch/adsb/classify.py
Drone Remote ID
- Onboard BLE scanner
skywatch/remoteid/ble.py - Realtek raw-HCI scanner
skywatch/remoteid/ble_hci.py - WiFi Remote ID parser
skywatch/remoteid/remoteid.py
AIS and APRS
- AIS radio receiver
skywatch/ais/nmea.py - AISStream feed
skywatch/ais/aisstream.py - Vessel reference lookups
skywatch/ais/lookups.py - APRS-IS gateway
skywatch/aprs/is_client.py - APRS radio receiver
skywatch/aprs/rf.py - APRS packet parser
skywatch/aprs/parser.py - APRS station store
skywatch/aprs/store.py - APRS transmit
skywatch/aprs/tx.py
NOAA and shared state
- Unified target tracker
skywatch/tracker.py - Satellite pass tracking
skywatch/noaa/tracking.py - APT image capture
skywatch/noaa/apt.py - Weather radio
skywatch/noaa/weather_radio.py - Weather.gov API
skywatch/noaa/weather_api.py
Other components
- Dashboard user
- External data services
Connections 42
- Dashboard user → Map interface: operates
- Map interface → REST and WebSocket API: requests data
- REST and WebSocket API → Module lifecycle manager: dispatches modules
skywatch/web/server.py - REST and WebSocket API → Unified target tracker: reads targets
skywatch/web/server.py - Module lifecycle manager → Native ADS-B receiver: starts receiver
skywatch/web/manager.py - Module lifecycle manager → SBS and OpenSky feeds: starts feeds
skywatch/web/manager.py - Module lifecycle manager → Aircraft metadata: loads metadata
skywatch/web/manager.py - Module lifecycle manager → Onboard BLE scanner: starts scanner
skywatch/web/manager.py - Module lifecycle manager → Realtek raw-HCI scanner: starts scanner
- Module lifecycle manager → WiFi Remote ID parser: starts scanner
- Module lifecycle manager → AIS radio receiver: starts receiver
skywatch/web/manager.py - Module lifecycle manager → AISStream feed: starts feed
skywatch/web/manager.py - Module lifecycle manager → APRS-IS gateway: starts gateway
skywatch/web/manager.py - Module lifecycle manager → APRS radio receiver: starts receiver
skywatch/web/manager.py - Native ADS-B receiver → Aircraft metadata: looks up aircraft
skywatch/adsb/native.py - Native ADS-B receiver → Aircraft classification: classifies aircraft
skywatch/adsb/native.py - Native ADS-B receiver → Unified target tracker: upserts targets
skywatch/adsb/native.py - SBS and OpenSky feeds → Aircraft metadata: uses metadata
skywatch/adsb/sbs.py - SBS and OpenSky feeds → Aircraft classification: classifies aircraft
skywatch/adsb/sbs.py - SBS and OpenSky feeds → Unified target tracker: upserts targets
skywatch/adsb/sbs.py - Onboard BLE scanner → WiFi Remote ID parser: uses RID decoder
skywatch/remoteid/ble.py - Onboard BLE scanner → Unified target tracker: upserts targets
skywatch/remoteid/ble.py - Realtek raw-HCI scanner → Unified target tracker: upserts targets
skywatch/remoteid/ble_hci.py - WiFi Remote ID parser → Unified target tracker: upserts targets
skywatch/remoteid/remoteid.py - AIS radio receiver → Vessel reference lookups: uses reference data
skywatch/ais/nmea.py - AIS radio receiver → Unified target tracker: upserts targets
skywatch/ais/nmea.py - AISStream feed → Vessel reference lookups: uses reference data
skywatch/ais/aisstream.py - AISStream feed → Unified target tracker: upserts targets
skywatch/ais/aisstream.py - APRS-IS gateway → APRS packet parser: parses packets
skywatch/aprs/is_client.py - APRS-IS gateway → APRS station store: stores messages
skywatch/aprs/is_client.py - APRS radio receiver → APRS packet parser: parses packets
skywatch/aprs/rf.py - APRS radio receiver → APRS station store: stores stations
skywatch/aprs/rf.py - REST and WebSocket API → APRS transmit: routes transmissions
skywatch/web/server.py - REST and WebSocket API → Alert zones: serves alert events
skywatch/web/server.py - Unified target tracker → Alert zones: notifies observers
skywatch/tracker.py - REST and WebSocket API → Satellite pass tracking: serves tracking
skywatch/web/server.py - REST and WebSocket API → APT image capture: dispatches capture
skywatch/web/server.py - REST and WebSocket API → Weather radio: serves radio
skywatch/web/server.py - REST and WebSocket API → Weather.gov API: requests forecasts
skywatch/web/server.py - SBS and OpenSky feeds → External data services: queries OpenSky
- AISStream feed → External data services: connects AISStream
- Weather.gov API → External data services: queries weather.gov