Advanced and scientific Python

Logo

Materials to brush up your Python skills

View the Project on GitHub xoolive/pyclass

Data visualization of collected ADS-B signals

Use jet1090 to capture ADS-B data. It decodes Mode S/ADS-B messages from an RTL-SDR USB dongle, displays nearby aircraft, and writes the received messages directly to a JSON Lines file.

Install jet1090

Follow the jet1090 installation instructions. The recommended commands are:

Operating system Command
Linux curl --proto '=https' --tlsv1.2 -LsSf https://github.com/xoolive/jet1090/releases/latest/download/jet1090-installer.sh \| sh
macOS brew install xoolive/homebrew/jet1090
Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://github.com/xoolive/jet1090/releases/latest/download/jet1090-installer.ps1 \| iex"
Windows: before using the RTL-SDR dongle, install its driver with Zadig. This requires administrator rights. Plug in the dongle, select it in Zadig, then install the WinUSB driver.

Check that reception works

Plug in the antenna and run the following command. The --verbose option prints decoded JSON messages in the terminal; stop it with Ctrl+C once messages arrive.

jet1090 --verbose rtlsdr:///@LFPO

LFPO is the reference location for Paris-Orly. A reference location also lets jet1090 decode messages sent by aircraft on the ground. Replace it with the ICAO code for your nearest airport, or with latitude and longitude separated by a comma.

Record and display data

Use this command during the recording:

jet1090 -o output.jsonl --interactive rtlsdr:///@LFPO

output.jsonl uses the JSON Lines format: each line contains one decoded message. You can analyse it later with Python, Pandas, or Polars. See the jet1090 documentation for data sources and output options.

Next ยป