Skip to content

Instantly share code, notes, and snippets.

@FabienLavocat
Last active November 5, 2023 03:05
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save FabienLavocat/c6f4b2572aa2da0ba6cda7332e728f71 to your computer and use it in GitHub Desktop.
Save FabienLavocat/c6f4b2572aa2da0ba6cda7332e728f71 to your computer and use it in GitHub Desktop.
Install FlightAware and FlightRadar24 on a Raspberry Pi
#!/bin/bash -e
sudo apt-get update
sudo apt-get -y install dirmngr
# Add the package for FlightAware
wget https://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_5.0_all.deb
sudo dpkg -i piaware-repository_5.0_all.deb
# Add the server for FlightRadar24
gpg --keyserver keyserver.ubuntu.com --recv-keys 40C430F5
gpg --armor --export 40C430F5 | sudo apt-key add -
sudo sh -c 'echo "deb http://repo.feed.flightradar24.com flightradar24 raspberrypi-stable" >> /etc/apt/sources.list'
# Install Required Packages
sudo apt-get update
sudo apt-get -y install piaware dump1090-fa fr24feed
# Upgrade the system
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# FlightAware
# This will enable automatic and manual (web-based, via your request) PiAware software updates.
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes
### Flight Radar 24
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
fr24feed --signup
@dome2048
Copy link

dome2048 commented Jan 24, 2019

@FabienLavocat Thank you for this helpful and simple explanation on how to make this work.

I forked your gist and made a small update to make piaware install now under raspbian stretch. Full disclosure: I found someone else's solution here.

Unless I'm missing something, I can't make a pull request on a gist.

https://gist.github.com/dome2048/bb8c0f413c6efcb669c3754e23e6237d/revisions

@e29mfi
Copy link

e29mfi commented May 11, 2021

Good

@ggeorgiev2001
Copy link

Line 11: pool.sks-keyservers.net seems to be dead, replaced with keyserver.ubuntu.com to be able to continue

@FabienLavocat
Copy link
Author

@dome2048 I updated to the latest piaware version 5.0
@ggeorgiev2001 Thanks, I updated the URL

@spinko101
Copy link

Thanks for this script, both FA and FR24 are working within less then 15 minutes :-).

It is necessary to finish the configuration of PiAware by entering the feeder ID by typing the following in the console

sudo piaware-config feeder-id your-feeder-id-here

I noticed that MLAT is not active on the FL24 installation. Is there a way to activate it ?

@FabienLavocat
Copy link
Author

@spinko101 for MLAT you will need to provide your coordinates when setting up your account with the command sudo fr24feed --signup

@spinko101
Copy link

spinko101 commented Jul 20, 2021 via email

@Flums
Copy link

Flums commented Jan 12, 2022

I am getting trouble when installing both, due to fighting about the dump-connection. I use a fr24-raspberry-image, maybe I should use clean raspberry?

@FabienLavocat
Copy link
Author

@Flums I haven't touched that script in ages, maybe the installation bits have changed. Try to go over the steps one by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment