fbpx

Most orders for IN STOCK items placed by 12PM CST M-F ship SAME DAY. Orders for custom items and prints may take additional time to process.

ADS-B Using a Raspberry Pi Flightradar24

If you’re not familiar with Flightradar24, you should be! It’s a fantastic service that tracks flights all over the world using ADS-B data. You can track ADS-B using a Raspberry Pi and send the data automatically to Flightradar24. In return for your service they will give you a $499 professional business subscription for FREE to access all of their data and services.  That’s win-win.

Tracking ADS-B Using a Raspberry Pi for Flightradar24 is also fun! With a Mini DVB-T Digital TV USB Dongle connected to your Pi and some free and open source software you can track flights up to about 275 miles from your home (or location of the antenna). Of course that depends on a lot of variable such whether you have radiant barrier in your attic or other structures that block radio signals near by such as tall office buildings. Line of site without obstructions is always the best location.

Parts List for this Project

To help you get started, here’s a quick parts list for this project:

ADS-B Using a Raspberry Pi Flightradar24

So let’s walk through the steps of setting up a Raspberry Pi to capture ADS-B and transmit it to FlightRadar24.  It’s even easier than you might think!

Get a Flightradar24 Account

First things first, you’re going to need a free Flightradar24 account. For now just sign up for the free account. It’s all you need to get started.

Install the Flightradar Pi24 Image on your Micro-SD Card

There are two ways to install Flightradar24 services on your Raspberry Pi.  The first way is by far the simplest, and that’s to install the Flightradar Pi24 image on your Micro-SD card and just boot your Raspberry Pi from the image. We’ll cover this method first. If you already have a Raspberry Pi running Raspian and just want to install the Flightradar24 services, skip to the next section.

Step 1: Download the latest Pi24 image from Flightradar24.

Step 2: Download and install Balena Etcher on your Mac or PC if you don’t already have it.  Etcher is the simplest way to flash your Micro-SD card. There’s even a version for Linux desktops too!

RELATED ARTICLE: Boot a Raspberry Pi without an SD Card

Open Ethcher and select the image you downloaded from Flightradar24.

Now select your micro-SD card as the destination drive.

And finally, click the ‘Flash!’ button to begin the imaging process.  Balena Etcher is free, so it will show you some advertisements in the window while the flash in progress.

Step 3: Eject the newly Pi24 imaged micro-SD card from your computer, place it in your Raspberry Pi and boot it up! We’re almost ready to track ADS-B using a Raspberry Pi!

Step 4: Make sure you have an Ethernet cable attached to your Raspberry Pi and connected to your network router or switch (you can also connect it to your Wi-Fi network.

Step 5: Open a new terminal window and enter the following command:

sudo fr24feed --signup

Now skip to passed the next section to the Flighradar24 configuration section of this article to proceed!

Installing FlightRadar24 on an existing Install of Raspbian

If you’d prefer not to use the Pi24 Flightradar24 image and instead install Flightradar24 services on Raspbian yourself, just follow these simple steps.

Step 1: Enter the following command to install the required Flightradar24 services.

sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

Step 2: You will be asked some questions by the Flightradar install, proceed to the next section before answering them.

Configuring Flightradar24 on the Raspberry Pi

Now we’re ready to start configuring the Flightradar24 services on your Pi.

Email Address: This will of course be the email address you signed up to the Flightradar24 website.

FR24 Key: Since this is our first time using Flightradar24, we won’t have a key.  Leave this blank.

MLAT Calculations: You will answer yes for this question.

Latitude & Longitude: You will need to enter the Latitude and Longitude of your location. If you don’t know it, you can find it using this site.

Altitude: You need to enter your altitude. For Flightradar to have accurate results we need to know how far above sea-level we are. If you don’t know your altitude, you can find it using this site.

Receiver Selection: Select 1, since we’re using the DVB-T USB stick.

Dump1090 Arguments: Leave this question blank.

Raw Data Feed: Enter no here.

Basestation data feed: Enter no here.

Logfile mode: Select 48-hour, 24 rotation for this question.

Logfile path: Leave this blank and press enter.

Finishing the Flightradar24 Setup

Now that we’ve completed the questions, its time finish the configuration and start sending data.

Step 1: You’ll be presented with a Flightradar24 sharing key. Write this key down. You may need it in the future.

Step 2: We’re ready to start tracking ADS-B Using a Raspberry Pi, so let’s turn on the data feed using the following command:

sudo systemctl restart fr24feed

You can  verify this worked and check the status using the following status command.  You should also be able to see your feed show up in the data sharing page on the Flightradar24 website.

fr24feed-status

To see the local status of your Pi24, just go to its web page by browsing to it in your browser.  If you don’t know the IP address of your Pi24 you can get it by typing Hostname -I in a terminal window.  In my case its http://192.168.1.105/

That’s all there is to it!  You’re now sharing flight data with the Flightradar24 service on your own custom built Pi24 box!  Congratulations and welcome to the team!

 

Feel free to leave a comment below with your results!


Upgrade to Premium

If you like our content maybe consider upgrading to Premium. You’ll get access to

  • Free access to all plans
  • Member only videos
  • Early access to content
  • Ad free Experience
  • Discounts on store merch
  • Direct hotline contact form

18 Responses

  1. I imagine that antenna placement is important? The most convenient place for me to put something like this is the center of my wood-frame-no-radiant-barrier house. Would it be better to figure out a way to move it near a wall or higher in the house (or get an extension for the antenna)? Or does the signal travel decently well through a “normal” house?

    1. Remember these are digital signals much like TV and FM Radio. They’ll pass through normal walls pretty easily. But of course line of sight is much better. Having the antenna outside would be better when possible.

  2. Sir, actually i am asking to send me a link so that i can buy it. i am not familiar with Raspberry Pi. I need this now only to use in Flightradar24. thanks

  3. shall i need an ethernet cable for internet access or it has a wif inbuilt in Raspberry Pi 3 Model B+?
    thanks..

  4. i am getting below error Trying to install software for Pi 3 b+ and am getting error message gpg: keyserver receive failed: Server indicated a failure
    Hit:1 http://archive.raspberrypi.org/debian buster InRelease
    Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
    Reading package lists… Done
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    dirmngr is already the newest version (2.2.12-1+rpi1).
    0 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
    Executing: /tmp/apt-key-gpghome.UQnEdW9kTE/gpg.1.sh –recv-key –keyserver pool.sks-keyservers.net 40C430F5
    gpg: keyserver receive failed: Server indicated a failure
    Executing: /tmp/apt-key-gpghome.325MzvmuVS/gpg.1.sh –recv-key –keyserver pgp.mit.edu 40C430F5
    gpg: keyserver receive failed: Server indicated a failure

  5. Just run it again. Mine failed on the first attempt as well. Am now pushing data up, but only 14 nautical mile range so far. Would like to consider a large antenna to increase my range.

  6. Great article. Really helped me get going quickly.

    I’m unclear on a couple of points though. Is there a graphical menu that comes with this image? I found this much more convoluted than getting going with FlightAware on the same Pi. Ad can I configure the dump1090 display I can pull out of the running Pi? What I see so far is quite lacking.

  7. Loaded flightradar24 on my pi4. I’m using a Logilink VS0002A for the dvbt. As per below status output it reports the receiver as down and MLAT not running. Any suggestions as to what the problem might be and what I should check?

    pi@raspberrypi:~ $ fr24feed-status
    [ ok ] FR24 Feeder/Decoder Process: running.
    [ ok ] FR24 Stats Timestamp: 2020-04-27 23:56:16.
    [ ok ] FR24 Link: connected [UDP].
    [ ok ] FR24 Radar: T-CYOW88.
    [ ok ] FR24 Tracked AC: 0.
    [FAIL] Receiver: down … failed!
    [FAIL] FR24 MLAT: not running … failed!

  8. I built this project with the NooElec antenna and get about 900 aircraft a day, most within 100nm. My antenna is sitting in a south facing window and mostly “sees” south. Thinking about going with an outdoor antenna, but know little about ADS-B, FlightRadar24, and Pi Computers, I’m reluctant to just buy an antenna that says ADS-B for Flightaware, and think that I can plug and play. Would an antenna like this the FlightAware 1090MHz ADS-B Antenna + 25 Foot Cable + PRO USB Stick Plus from Flight Aware work on this setup? Or can you recommend a suitable alternative?

    1. Just saw some action on this site, so I thought that I should follow up on my antenna question above. Any recommendations?

Leave a Reply