OPTION-1Raspbian Lite image + dump1090-mutability + Data feeders 1 - Download Raspbian Lite image (zip) on your Desktop/Laptop
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."
Give following commands to remove this bugsudo 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.
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? 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.
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).
.
.