RASPBERRY PI
HOW TO INSTALL OPERATING SYSTEM, DECODER, AND DATA FEEDERS.
Click on the options to see detailed instructions.
Alternatively, scroll down to see all these options
OPTION-1 (https://radarspotting.com/forum/index.php/topic,9623.msg40974.html#msg40974)
- Raspbian Lite image
- dump1090-mutability ver 1.15~dev
- Data feeders.
OPTION-2 (https://radarspotting.com/forum/index.php/topic,9623.msg40975.html#msg40975)
- Raspbian Lite image
- dump1090-fa
- Data feeders.
OPTION-3 (https://radarspotting.com/forum/index.php/topic,9623.msg40976.html#msg40976)
- Piaware image (this image has integral dump1090-fa and Piaware data feeder)
- Additional Data feeders
OPTION-4 (https://radarspotting.com/forum/index.php/topic,9623.msg40977.html#msg40977)
- Pi24 image (this image has integral dump1090-mutability ver1.14 and FR24 data feeder)
- Additional data feeders.
Note:
Pi24 image has "read-only file system", and wont allow installation of any other data feeder. Give following command to make it read & write file system
sudo mount -o remount,rw /
After completion of feeder installation, reboot Pi to restore defaults.
HOW TO INSTALL DATA FEEDERS (https://radarspotting.com/forum/index.php/topic,9623.msg40978.html#msg40978)
1) Planefinder
2) Flightaware
3) Flightradar24
4) Radarbox24
OPTION-1Raspbian Lite image + dump1090-mutability + Data feeders 1 - Download Raspbian Lite image (zip) on your Desktop/Laptop
https://www.raspberrypi.org/downloads/raspbian/ (https://www.raspberrypi.org/downloads/raspbian/)
2 - Unzip downloaded file.
3 - Insert microSD Card in your Desktop/Laptop's card slot (or use a card reader plugged into USB Port).
4 - Write the unzipped Raspbian
Lite image to microSD Card using "Wi32DiskImager" or "Etcher".
5 - Enable SSH:After image is written, in Windows Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders.
- Windows: In File Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders. Right click in /boot folder, and create a new blank file named ssh or ssh.txt
- Mac: Open terminal and give following command
touch /Volumes/boot/ssh
6 - Enable Wifi on first boot:
Note: Do this only if you are going to use it. otherwise if you will use wired connection, dont do it
- Windows: In File Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders. Right click in /boot folder and create a new blank file named wpa_supplicant.conf. If your Desktop/Laptop does not show file extensions, configure Windows File explorer to show file extensions. If the file has a hidden extension .txt, it will not enable wifi.
Alternatively you can create this file by giving following command in Windows command prompt console, which will create file with correct extension:
C:\Windows\System32>echo > M:\wpa_supplicant.conf
(Replace letter M by drive letter of your microSD Card in Windows)
- Mac: Open terminal and give following command
touch /Volumes/boot/wpa_supplicant.conf
Open the Finder program. Select the Micro SD card device labelled "boot". Open the file "wpa_supplicant.conf" in TextEdit.
- Windows & Mac: In the opened blank file wpa_supplicant.conf, copy paste following text:
network={
ssid="YOUR_SSID"
psk="YOUR_PASSWORD"
}
Replace YOUR_SSID by your router's wifi ssid, and YOUR_PASSWORD by your router's wifi password.
Save file. On boot, wifi login info will be automatically copied into file /etc/wpa_supplicant/wpa_supplicant.conf, enabling wifi on first boot.
7 - Remove microSD card from card reader, insert into Pi, power up, and SSH.
8 - Install dump1090-mutability v1.15~dev
- It is important that first dump1090-mutability is installed, and data feeders are installed after dump1090-mutability has been installed.
- To see the map, type in address bar of your browser:
http://<IP of Pi>/dump1090/
On Raspian BUSTER:
sudo apt install dump1090-mutability
On Raspbian STRETCH:
Follow the step-by-step method given below to built & install dump1090-mutability_1.15~dev from source code.8.1 - UPDATE THE OPERATING SYSTEM
sudo apt-get update
8.2 - INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
sudo apt-get install -y git build-essential debhelper rtl-sdr
sudo apt-get install -y librtlsdr-dev libusb-1.0-0-dev pkg-config
sudo apt-get install -y fakeroot curl cron lighttpd
8.3 - DOWNLOAD / CLONE THE SOURCE FILES TO YOUR RPi
cd ~/
sudo mkdir install-dump
cd install-dump
sudo git clone -b unmaintained https://github.com/mutability/dump1090.git
8.4 - BUILD THE DUMP1090-MUTABILITY PACKAGE
Note: This is a lengthy process, and seems to freez at several occasions. Please be patient, and let the process take it's time to finish.
cd ~/install-dump/dump1090
sudo dpkg-buildpackage -b
8.5 - INSTALL THE DUMP1090-MUTABILITY PACKAGE
cd ~/install-dump
sudo dpkg -i dump1090-mutability_1.15~dev_*.deb
8.6 - CONFIGURE THE WEB SERVER
sudo lighty-enable-mod dump1090
sudo systemctl force-reload lighttpd
8.7 - DUMP1090-MUTABILITY POST INSTALLATION CONFIGURATION
sudo dpkg-reconfigure dump1090-mutability
For most settings, accept default settings by pressing "Enter".
For following settings, enter values as shown:
(a) RTL-SDR dongle to use: 0
(b) Your receiver's Latitude (in decimal format): xx.xxxx
(c) Your receiver's Longitude (in decimal format): yy.yyyy
(d) Interface address to bind to (blank for all interfaces): remove default 127.0.0.1 and leave blank.
For advance users:Alternatively, you can change the settings by editing the configuration file shown below:
sudo nano /etc/default/dump1090-mutability
#after making changes, save file and exit
#restart dump1090-mutability
sudo systemctl restart dump1090-mutability
8.8 - BUG FIX - RASPBIAN STRETCH:In Raspbian Stretch dump1090-mutability doed not provide output data.
The map in browser (ip-of-pi/dump1090/gmap.html), will show following warning:
"Problem fetching data from dump1090."
(https://farm2.staticflickr.com/1814/30097025408_4758ab5582_o.png)
Give following commands to remove this bug
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
sudo reboot
8.9 - See Map in your browser at following address
http://<IP of Pi>/dump1090/
.
9 - ADD TERRAIN LIMIT RINGSDump1090-mutability v1.15~dev can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com (http://www.heywhatsthat.com).
9.1 - First you have to generate a panorama for your location. To do this, follow the steps in the
first post of the following thread:
What is the Maximum Range I can Get? (https://radarspotting.com/forum/index.php/topic,9621.0.html)
9.2 - Once your panorama is generated, look near the top left of your newly created panorama page. You will see URL of your panorama there. The URL will be
http: // www . heywhatsthat . com/?view=XXXXXXXX where XXXXXXXX is the ID for your panorama.
See screenshot below.
(https://farm2.staticflickr.com/1552/25216701711_7b4b71130d.jpg)
9.3 - Use following command to download the generated panorama's JSON file "upintheair.json" to your RPi, and save it in the folder "/usr/share/dump1090-mutability/html" (replace XXXXXXXX in the command below by your panorama's ID).
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=3048,12192"
You can create as many rings as you want by adding elevations (in meters) at the end of URL given in the wget command above after "&alts=", separated by commas.
10,000 ft = 3048 m
20,000 ft = 6096 m
25,000 ft = 7620 m
30,000 ft = 9144 m
40,000 ft = 12192 m
Hence if you want to add all the 5 elevation rings noted above, the string at the end of wget URL will become "&alts=3048,6096,7620,9144,12192"
To keep map un-cluttered, I have used only 2 rings in the wget command above. i.e. the 10,000 feet (3048 meters), and 40,000 feet (12192 meters).
Important: Use altitude in meters in the wget URL above.
Do NOT use feet.
9.4 - RESTART dump1090-mutability
sudo systemctl restart dump1090-mutability
10 - Install Data Feeders (CLICK HERE (https://radarspotting.com/forum/index.php/topic,9623.msg40978.html#msg40978)).
.
.
OPTION-2Raspbian Lite image + dump1090-fa + Data feeders 1 - Download Raspbian Lite image (zip) on your Desktop/Laptop
https://www.raspberrypi.org/downloads/raspbian/ (https://www.raspberrypi.org/downloads/raspbian/)
2 - Unzip downloaded file.
3 - Insert microSD Card in your Desktop/Laptop's card slot (or use a card reader plugged into USB Port).
4 - Write the unzipped Raspbian
Lite image to microSD Card using "Wi32DiskImager" or "Etcher".
5 - Enable SSH:After image is written, in Windows Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders.
- Windows: In File Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders. Right click in /boot folder, and create a new blank file named ssh or ssh.txt
- Mac: Open terminal and give following command
touch /Volumes/boot/ssh
6 - Enable Wifi on first boot:
Note: Do this only if you are going to use it. otherwise if you will use wired connection, dont do it
- Windows: In File Explorer, double click the drive letter of microSD card. This will open the folder /boot and show lots of files and some folders. Right click in /boot folder and create a new blank file named wpa_supplicant.conf. If your Desktop/Laptop does not show file extensions, configure Windows File explorer to show file extensions. If the file has a hidden extension .txt, it will not enable wifi.
Alternatively you can create this file by giving following command in Windows command prompt console, which will create file with correct extension:
C:\Windows\System32>echo > M:\wpa_supplicant.conf
(Replace letter M by drive letter of your microSD Card in Windows)
- Mac: Open terminal and give following command
touch /Volumes/boot/wpa_supplicant.conf
Open the Finder program. Select the Micro SD card device labelled "boot". Open the file "wpa_supplicant.conf" in TextEdit.
- Windows & Mac: In the opened blank file wpa_supplicant.conf, copy paste following text:
network={
ssid="YOUR_SSID"
psk="YOUR_PASSWORD"
}
Replace YOUR_SSID by your router's wifi ssid, and YOUR_PASSWORD by your router's wifi password.
Save file. On boot, wifi login info will be automatically copied into file /etc/wpa_supplicant/wpa_supplicant.conf, enabling wifi on first boot.
7 - Remove microSD card from card reader, insert into Pi, power up, and SSH.8 - Install dump1090-fa
- It is important that first dump1090-fa is installed, and data feeders are installed after dump1090-fa has been installed.
- Issue following commands to install dump1090-fa:
wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.2_all.deb
sudo dpkg -i piaware-repository_3.7.2_all.deb
sudo apt-get update
sudo apt-get install dump1090-fa
sudo reboot
The above version is current as on December 18, 2019.
For latest version number, check this page:
https://flightaware.com/adsb/piaware/install (https://flightaware.com/adsb/piaware/install)9 - Configure dump1090-fa9.1 - Open config file for editing
sudo nano /etc/default/dump1090-fa
9.2 - Must Do: Set Location of your receiver To this file, add your receiver's Latitude and longitude (in decimal format) as shown in red below.
9.3 - Optional: Set gain value The gain value by default is set "--gain -10" as shown in blue below. The gain value -10 is a special value and sets gain to AGC.
If you want to change gain setting, replace -10 by the gain value you desire. The possible gain value range is from 0 to 49.6
All gain values should be positive, for example "--gain 38".
The only negative gain value used is -10, which is a special gain value and sets gain to AGC (automatic gain control).
Quote
# dump1090-fa configuration
# This is read by the systemd service file as an environment file,
# and evaluated by some scripts as a POSIX shell fragment.
# If you are using a PiAware sdcard image, this config file is regenerated
# on boot based on the contents of piaware-config.txt; any changes made to this
# file will be lost.
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
DECODER_OPTIONS="--max-range 360 --lat xx.xxxx --lon yy.yyyy"
NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005"
JSON_OPTIONS="--json-location-accuracy 1"
#after making changes, save file and exit
#restart dump1090-fa
sudo systemctl restart dump1090-fa
#check status of dump1090-fa
sudo systemctl status dump1090-fa -l
10 - See Map in your browser at following address http://<IP of Pi>/dump1090-fa/
11 - Install Data Feeders (CLICK HERE (https://radarspotting.com/forum/index.php/topic,9623.msg40978.html#msg40978)).
.
.
PLACE HOLDER FOR OPTION-3
PLACE HOLDER FOR OPTION-4
INSTALLATION OF DATA FEEDERS(1) INSTALLATION OF PLANEFINDER DATA FEEDER:To install Plane Finder Client, enter these commands in console:
This version of Planefnder Feeder has Open Street Map by default, but has option to switch to Google Map
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb
The above version is current as on December 18, 2019.
For latest version number, check this page:
https://planefinder.net/sharing/client (https://planefinder.net/sharing/client) CONFIGUREAfter installation is complete as above, type
http: //<ip address of RPi on your network>:30053/setup.html in your browser, and follow instructions on the page opened. The
<ip address of RPi on your network> will be something like 192.168.2.12 and can be found from your router setup.
Choose option to request sharecode, if you don't already have one. Planefinder will send it to you by email. After you receive sharecode, you can enter it on above page and complete your configuration.
During configuration,enter:
Sharecode
Receiver Lat: Your Latitude in decimal format
Receiver Lon: Your Longitude in decimal format
Click "Assign Share Code"
This will open a new page. On this page enter:
Receiver Data Format: Beast
How are you connecting to your receiver: Network
IP Address: 127.0.0.1
Port Number: 30005
Click "Complete configuration"
PF Client web interfaces:After SETUP is complete and pfclient is up & running, you can see following in your computer's browser.
http:// <ip-address-of-RPi>:30053/map.html (shows planes on Open Street Map/Google Map)
http:// <ip-address-of-RPi>:30053/stats.html (shows stats of your receiver)
http:// <ip-address-of-RPi>:30053/logs.html (shows logs of your receiver)
(<ip-address-of-RPi> will be something like 192.168.2.15 . Obtain exact value from your router settings).
.
.
(2) INSTALLATION OF FLIGHTAWARE DATA FEEDER:
wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.2_all.deb
sudo dpkg -i piaware-repository_3.7.2_all.deb
sudo apt-get update
sudo apt-get install piaware
#The above command will run for a while and install piaware.
#After installation is completed, give following commands.
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes
The above version is current as on December 18, 2019.
To check latest version number, go to item "2 - Download and Install PiAware" on this page:
http://flightaware.com/adsb/piaware/install (http://flightaware.com/adsb/piaware/install).
Configuration:If you already have a feeder-id (UUID), give following commands
Replace xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx by your actual feeder UUID.
You can find your UUID from this page (You should be logged-in to your Flightaware account):
https://flightaware.com/adsb/stats/user/ (https://flightaware.com/adsb/stats/user/)
sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
sudo systemctl restart piaware
If you dont have a feeder-id and this is a new station, go to this page and claim new station (You should be logged-in to your Flightaware account):
https://flightaware.com/adsb/piaware/claim (https://flightaware.com/adsb/piaware/claim)
.
.
.
(3) INSTALLATION OF FLIGHTRADAR24 DATA FEEDER:Install FR24 feeder using command below.
After installation is done, it will present a signup wizard, asking for email, sharing key, latitude, longitude, antenna height etc.
sudo bash -c "$(wget -O - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"
The above method is current as on December 18, 2019.
For latest instructions, please visit this page:
https://www.flightradar24.com/raspberry-pi (https://www.flightradar24.com/raspberry-pi).
Post Install configuration/Re-configuration of FR24 feederMETHOD-1: The FR24 Feeder can be configured on the page
http://<IP of RPi>:8754/settings.html.
The "Receiver" and "Host/IP" setting should be either "ModeS Beast(TCP), 127.0.0.1:30005" or "AVR(TCP), 127.0.0.1:30002"
METHOD-2: Re-configuration can also be done through SSH
~ $ sudo fr24feed --reconfigure
It will ask choice for receiver configuration. ENTER VALUES SHOWN IN RED BELOW
Quote
Step 4.1 - Receiver selection:
1 - DVBT Stick (USB)
-----------------------------------------------------
2 - SBS1/SBS1er (USB/Network)
3 - SBS3 (USB/Network)
4 - ModeS Beast (USB/Network)
5 - AVR Compatible (DVBT over network, etc)
6 - microADSB (USB/Network)
7 - SBSx via Basestation (localhost:30006)
Enter your receiver type (1-7)$: 4
Step 4.2 - Please select connection type:
1 - Network connection
2 - USB directly to this computer
Enter your connection type (1-2)$: 1
Step 4.3A - Please enter your receiver's IP address/hostname
$: 127.0.0.1
Step 4.3B - Please enter your receiver's data port number
$: 30005
Step 5.1 - Would you like to enable RAW data feed on port 30002 (yes/no)$:no
Step 5.2 - Would you like to enable Basestation data feed on port 30003 (yes/no)$:no
Step 6A - Please select desired logfile mode:
0 - Disabled
1 - 48 hour, 24h rotation
2 - 72 hour, 24h rotation
Select logfile mode (0-2)$:0
Step 6B - Please enter desired logfile path (/var/log):
$:/var/log
After reconfiguration, restart fr24feed
~$ sudo service fr24feed restart
.
(4) INSTALLATION OF RADARBOX24 DATA FEEDER(a) Install Radarbox24 Feeder
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"
The above method is current as on December 18, 2019.
For latest instructions, please visit this page:
https://www.radarbox24.com/raspberry-pi/guide (https://www.radarbox24.com/raspberry-pi/guide).
(b) Configure Radarbox FeederAfter installation is complete, the rbfeeder will automatically obtain a feeder-key and station number.
To claim your station and link to your email address, go to: https://www.radarbox24.com/raspberry-pi/claim
Your feeder-key and station numbers are stored in file rbfeeder.ini.
You can check your station number and key by following command
sudo cat /etc/rbfeeder.ini
#above command will display following text
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sn=EXTRPIxxxxxx
[network]
mode=beast
external_port=30005
external_host=127.0.0.1
[mlat]
If you already have a feeder key, you can set it by following commands
sudo rbfeeder --no-start --setkey ‹your sharing key›
sudo systemctl restart rbfeeder
#check what key has been set
sudo rbfeeder --showkey --no-start
#check status
sudo systemctl status rbfeeder -l
AND THAT IS ALL....... ENJOY!.
.
[/list]