Setting Up Aircraft tracking on your Raspberry Pi
Are you an aircraft enthusiast or just someone who wants to setup an aircraft tracker for cheap? Here is how to do it with a Raspberry Pi. We will be using FlightRadar24 aircraft tracking software.
- Raspberry Pi 2 or later
- Wifi dongle (unless your Pi already has wifi inbuilt into it)
- Ethernet Cable (Optional)
- ADS B compatible dongle or FlightAware dongle
- ADS B antenna or FlightAware antenna
- Good power supply
- Etcher (renamed as BalenaEtcher)
- 8 GB Micro SD card or more
- Have signed up for an account on FlightRadar24
- Download Raspbian Stretch with Desktop
- Plug your MicroSD card into your computer and open the Etcher Application.
- Choose the Raspbian image to flash and your MicroSD card.
- After Etcher has finished, plug the Micro SD card, HDMI cable, keyboard, mouse and power cable into your Raspberry Pi.
- After the Pi boots up, connect to your WiFi or plug your Ethernet cable into your Raspberry Pi and router.
- Run through the first time setup choosing your wifi country, updating Raspbian, etc.
- Open terminal and copy paste:
sudo bash -c "$(wget -O - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"
- You will be asked to enter your email address, antenna position and other details.
FlightRadar24 Aircraft Tracking Setup
- Email address: Use the same one you used to signup for flightradar24
- FR24 Key: If you have never used flightradar’s software before, leave this empty.
- MLAT Calculations: Type “yes” for this.
- Latitude and longitude: Use a website something like latlong.net to calculate your latitude and longitude. You should try to be as accurate as possible. Latitude and longitude is in the format of xx.xxxx . Leave out any extra numbers.
- Altitude: Find your elevation using whatismyelevation.com
- Receiver selection: If you are using the DVB-T stick, choose option 1. Otherwise look at the options available.
- Dump1090: Keep this blank by pressing enter.
- Raw Data and basestation data feed: Type no (unless you are sure you need it)
- Logfile mode: 48hour, 24hour rotation
- Logfile path: Press enter, or choose a location.
- The FlightRadar24 aircraft tracking software should be completed. It will give you a sharing key. Copy and keep this key in a safe place for future use.
- Start sending data
sudo systemctl restart fr24feed
- Wait 5 minutes and check to see everything is working:
- Check your data sharing on FlightRadar24
- If you want to goto your Raspberry Pi web interface, enter a web browser on your local network
- Replace RpiIPaddress with your Raspberry Pi IP address.
- You should have everything up and work now. If you have any problems, goto FlightRadar24 forum page.
If you want to get the most out of your Receiver and antenna, you need to place your antenna in an optimal location. If it is a indoor antenna, you need to place it at a window upstairs. If you are using an external antenna, make sure it is on your house roof and make sure that the cabling is as short as possible. You need to use a high quality cable with a low impedance. For runs for 25-50 feet, you should use RG6 cabling. If you want to make your own DIY antenna, search the web for “ADS-B Cantenna” or ” ADS-B Spider antenna” or check out this post.
I hope you enjoy your aircraft tracker and your free FlightRadar24 Business account! If you have any feedback, comment below.