Bake a Pi

ADDITIONAL DATA FEEDERS

  1. INSTALLATION OF PLANEFINDER DATA FEEDER:
    To install Plane Finder Client, enter these commands in console:


wget http://client.planefinder.net/pfclient_3.7.20_armhf.deb
sudo dpkg -i pfclient_3.7.20_armhf.deb


The above version is current as on June 10, 2017.
For latest version check this page: https://planefinder.net/sharing/client

CONFIGURE
After installation is complete as above, type *http: //:30053/setup.html *in your browser, and follow instructions on the page opened. The 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:// :30053/map.html (shows planes on Google Map)
http:// :30053/stats.html (shows stats of your receiver)
http:// :30053/logs.html (shows logs of your receiver)

( will be something like 192.168.2.15 . Obtain exact value from your router settings)
.
.
.
2) INSTALLATION OF FR24 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 - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"


The above method is current as on April 08, 2017.
For latest instructions, please visit this page: https://www.flightradar24.com/raspberry-pi.

Post Install configuration/Re-configuration of FR24 feeder
METHOD-1: The FR24 Feeder can be configured on the page http://: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

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


3) INSTALLATION OF ADSBEXCHANGE DATA FEEDER

(1) Install required packages to build and to fulfil dependencies



sudo apt-get install -y git curl build-essential debhelper
sudo apt-get install -y python-dev
sudo apt-get install -y python3-dev
sudo apt-get install -y netcat


(2) Create a new directory and clone the source of mlat-client



sudo mkdir ~/adsbexchange
cd ~/adsbexchange
sudo git clone https://github.com/mutability/mlat-client.git


(3) Move into source directory and build the .deb package



cd ~/adsbexchange/mlat-client
sudo dpkg-buildpackage -b -uc


(4) Move to the directory where built .deb package is located, and install the package



cd ~/adsbexchange
sudo dpkg -i  mlat-client_*_armhf.deb


To check mlat client has been installed



dpkg-query -W  mlat-client

#above command will give following output
mlat-client     version number


(5) To start a connection for ads-b feed from Pi to adsbexchange:

(a) Create a new file “netcat.sh”.



sudo nano ~/adsbexchange/netcat.sh


(b) Download Word document “netcat.sh.docx” from link below, and copy-paste code from it to new blank file “netcat.sh” in nano editor.
https://www.dropbox.com/s/cubqjrb2bm3rnz6/netcat.sh.docx?dl=1

(c) Save the file and exit editor

(d) Make the file executable by changing permission.



sudo chmod +x ~/adsbexchange/netcat.sh


(6) To start a connection for mlat feed & feedback between Pi and adsbexchange:

(a) Create a new file “mlat.sh”.



sudo nano ~/adsbexchange/mlat.sh


(b) Download Word document “mlat.sh.docx” from link below, and copy-paste code from it to new blank file “mlat.sh” in nano editor.
https://www.dropbox.com/s/fl4lqxvjor9gkex/mlat.sh.docx?dl=1

NOTE: Replace xx.xxxx, yy.yyyy and zzz by your receiver’s latitude, longitude, and elevation above sea (meters).
Also replace your-user-name by the user name you want to assign to your feed.

(c) Save the file and exit editor

(d) Make the file executable by changing its permission



sudo chmod +x ~/adsbexchange/mlat.sh


(7) For automatic start of adsbexchange feed at boot:

(a) Open file “rc.local” for editing



sudo nano /etc/rc.local


(b) In file “rc.local” add these two lines ABOVE last line (above exit 0)



/home/pi/adsbexchange/netcat.sh &

/home/pi/adsbexchange/mlat.sh &


(c) Save the file and exit.

(d) Reboot for adsbexchange feed to start



sudo reboot


(8) Segregation of MLAT Feedbacks of Flightaware and Adsbexchange

Both Flightaware & Adsbexchange MLAT feedback are connected to port 30104. This results in duplicate display of planes, and sometimes jumping also.

In order to segregate Adsbexchange and Flightaware feedbacks, and to independently watch MLAT feed from Adsbexchange, the MLAT feedback of adsbexchange can be disconnected from dump1090 and re-directed to VRS on Windows/Mac Desktop by editing the file “mlat. sh”


sudo nano ~/adsbexchange/mlat.sh

Change following part:
–results beast,connect,127.0.0.1:30104
to:
–results beast,connect,192.168.xx.xx:30104
where 192.168.xx.xx is Local IP of Windows/Mac Desktop running VRS.

A “push” receiver is then to be configured on VRS on Windows/Mac Desktop to receive Adsbexchange’s mlat feed at port 30104
.
.
.
.

[list]
AND THAT IS ALL… ENJOY!

[/list:u]

.
.

2 Likes