Tweaks

TWEAK-2: REPLACING TWO-CLOCK MAP (DUMP1090-MUTABILITY) BY SKYVIEW MAP (DUMP1090-FA)

This can be achieved in two ways:
(a) Keeping dump1090-mutability, but replacing Map only (Skin/GUI replacement)
(b) Unistalling dump1090-mutability, and in its place installing dump1090-fa

(a) Keeping dump1090-mutability, but replacing Map only (Skin/GUI replacement)



#download the dump1090-fa files from github
cd ~
git clone https://github.com/flightaware/dump1090.git

#the above command will download a folder dump1090, which contains another folder public_html
#copy the folder public_html to folder /usr/share/dump1090-mutability
sudo cp -r dump1090/public_html  /usr/share/dump1090-mutability/public_html

#now go to folder dump1090-mutability
cd /usr/share/dump1090-mutability

#first change name of folder html to original-html 
#this preserves the original html folder, and enables revert in case something goes wrong
sudo mv html original-html

#now change the name of folder public_html to html
sudo mv public_html html

#now go to folder html
cd html

#change the name of file index.html to gmap.html
sudo mv index.html gmap.html

#now reboot for changes to take effect
sudo reboot

#after reboot, reload the browser. If new map does not show, clear browser's cache.


IMAGE 1 OF 2: BEFORE ABOE MODIFICATIONS

IMAGE 2 OF 2: AFTER ABOVE MODIFICATIONS


.
.
.
.
.
.

(b) Unistalling dump1090-mutability, and in its place installing dump1090-fa

STEP-1: Uninstall dump1090-mutability

Stop Piaware and dump1090-mutability
pi@raspberrypi:~ $ sudo systemctl stop piaware
pi@raspberrypi:~ $ sudo systemctl stop dump1090-mutability

Remove and Purge installed dump1090-mutability
pi@raspberrypi:~ $ sudo dpkg --remove dump1090-mutability
pi@raspberrypi:~ $ sudo dpkg --purge dump1090-mutability

Manually remove /usr/share/dump1090-mutability / folder and its content (folder html)
pi@raspberrypi:~ $ sudo rm -rf /usr/share/dump1090-mutability

STEP-2: Install dump1090-fa



pi@raspberrypi:~ $ wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.5.0_all.deb
pi@raspberrypi:~ $ sudo dpkg -i piaware-repository_3.5.0_all.deb
pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get install dump1090-fa


Reboot Pi



pi@raspberrypi:~ $ sudo reboot


Clear cache of your browser and see the map on page /dump1090-fa/

NOTE:
If you hae installed Web Portal / Graphs by JProchazka’s script then
(1) The Map link on your adsb project page will bring a page “Not found” as it is pointing to dump1090-mutability which is no more there. See map at /dump1090-fa/
(2) Graphs will stop populating, as these will try to get data from dump1090-mutability which is no more there. To make the graphs work again, do the following modification

Edit file collectd.conf
pi@raspberrypi:~ $ sudo nano /etc/collectd/collectd.conf

Press Ctrl+w and type “Module dump1090” (without quotes " "), then press Enter key. The cursor will jump to line containing “Module dump1090”.
Add -fa as shown in red below. Save file and exit editor.

    <Module dump1090>
            <Instance localhost>
                    URL "http://localhost/dump1090**-fa**"
            </Instance>
    </Module>

After saving file “collectd.conf”, restart collectd
pi@raspberrypi:~ $ sudo systemctl restart collectd

AFTER REMOVAL OF MUT & INSTALLATION OF FA

2 Likes