All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 22 posts ] 
Author Message
 Post subject: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:05 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
Click on the options to see detailed instructions.
Alternatively, scroll down to see all these options


OPTION-1 :
Piaware 3.5 image with integral dump1090-fa and Piaware data feeder

OPTION-2:
Raspbian Jessie Lite + dump1090-fa + Piaware 3.5 (add on) feeder

OPTION-3:
Raspbian Jessie Lite + dump1090-mutability + Piaware 3.5 (add on) feeder

ADDITIONAL DATA FEEDERS
1) Flightradar24
2) Planefinder
3) Adsbexchange


Last edited by abcd567 on Mon Jul 17, 2017 2:01 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:07 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
OPTION-1:
Piaware 3.5 image with integral dump1090-fa and Piaware data feeder


1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
2) Format microSD Card
3) Download Piaware 3.5 image (zip) on your Desktop/Laptop and unzip downloaded file
4) Write the unzipped Piaware 3.5 image to microSD Card.

5) After image is written, and microSD card is still in card reader of Desktop/Laptop, (a) Enable ssh (b) Configure WiFi

    (a) To enable SSH:
      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/piaware/ssh

    (b) To enable Wifi on first boot (if required):
      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. Open file "piaware-config.txt" using a text editor like Notepad.

      Mac: Open the Finder program. Select the Micro SD card device labeled piaware. Open the file "piaware-config.txt". The file will open in TextEdit.

      In the opened file "piaware-config.txt", scroll down till you see this text:

      wireless-ssid MyWifiNetwork
      wireless-password s3cr3t99

      Replace MyWifiNetwork by your router’s wifi ssid, and s3cr3t99 by your router’s wifi password

    (c) For retaining existing station number and it's stats

    First find and note down existing station's "Unique Identifier" which is in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". You can find it from any of these three places:

    Easiest method, from your stats page: https://flightaware.com/adsb/stats/user/yourusername
    Before re-imaging, from Pi: cat /var/log/piaware.log
    Before re-imaging, from Pi: cat /var/cache/piaware/feeder_id

    Once you have Site Identifier, use any of the following 2 methods:
    Method 1: While the microSD Card is still in Desktop/Laptop's card reader, open file /boot/piaware-config.txt by a text editor like Notepad, and add following line at the end of file:

    feeder-id 12345678-1234-1234-1234-123456789abc

    (replace “12345678-1234-1234-1234-123456789abc” by Unique Identifier of your existing station)

    Method 2: After booting and SSH,
    Code:
    #delete the Unique Identifier in cache (which was assigned automatically at boot)
    sudo rm /var/cache/piaware/feeder_id

    #assign Unique Identifier by piaware-config command below
    # replace “12345678-1234-1234-1234-123456789abc” by Unique Identifier of your existing station

    piaware-config feeder-id 12345678-1234-1234-1234-123456789abc

    #restart piaware
    sudo systemctl restart piaware



7) For a new station, claim your Pi by logging in to your account and go to page:
https://flightaware.com/adsb/piaware/claim


8 ): ADD TERRAIN LIMIT RINGS (OPTIONAL)
Dump1090-fa can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

    (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
    What is the Maximum Range I can Get?

    (b) 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.


    Image


    (c) 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-fa/html" (replace XXXXXXXX in the command below by your panorama's ID).
    Code:
    sudo wget -O /usr/share/dump1090-fa/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.

    (d) Reload your browser. Clear browser cache if necessary



Last edited by abcd567 on Wed Jul 19, 2017 2:24 am, edited 8 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:13 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
OPTION-2:
Jessie Lite image + dump1090-fa + Piaware data feeder


1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
2) Format microSD Card
3) Download Jessie Lite image (zip) on your Desktop/Laptop and unzip downloaded file
4) Write the unzipped Jessie Lite image to microSD Card.

5) After image is written, and microSD card is still in card reader of Desktop/Laptop, (a) Enable ssh (b) Configure WiFi

    (a) To enable SSH:
      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

    (b) To enable Wifi on first boot (if required):
      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 labeled piaware. Open the file "wpa_supplicant.conf" in TextEdit.

      Windows & Mac: In the opened blank file wpa_supplicant.conf, copy paste following text:
      Code:
      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.

      6) Remove microSD card from card reader, insert into Pi, and power up.

      7) Install Piaware 3.5 data feeder (add-on package install)
      Code:
      wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.5.0_all.deb
      sudo dpkg -i piaware-repository_3.5.0_all.deb
      sudo apt-get update
      sudo apt-get install piaware
      sudo piaware-config allow-auto-updates yes
      sudo piaware-config allow-manual-updates yes


      8 ) Install dump1090-fa (add-on package install)
      Code:
      sudo apt-get install dump1090-fa
      sudo reboot


      (9) For retaining existing station number and it's stats

      First find and note down exixting station's "Unique Identifier" which is in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". You can find it from any of these three places:

      Easiest method, from your stats page: https://flightaware.com/adsb/stats/user/yourusername
      Before re-imaging, from Pi: cat /var/log/piaware.log
      Before re-imaging, from Pi: cat /var/cache/piaware/feeder_id

      Once you have "Unique Identifier", give following command after booting and SSH,
      Code:
      #delete the Unique Identifier in cache (which was assigned automatically at boot)
      sudo rm /var/cache/piaware/feeder_id

      #assign existing "Unique Identifier" by piaware-config command below
      # replace “12345678-1234-1234-1234-123456789abc” by Unique Identifier of your existing station

      piaware-config feeder-id 12345678-1234-1234-1234-123456789abc

      #Restart piaware
      sudo systemctl restart piaware


      10) For a new station, claim your Pi by logging in to your account and go to page:
      https://flightaware.com/adsb/piaware/claim


      11): ADD TERRAIN LIMIT RINGS (OPTIONAL)
      Dump1090-fa can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

        (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
        What is the Maximum Range I can Get?

        (b) 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.


        Image


        (c) 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-fa/html" (replace XXXXXXXX in the command below by your panorama's ID).
        Code:
        sudo wget -O /usr/share/dump1090-fa/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.

        (d) Reload your browser. Clear browser cache if necessary



Last edited by abcd567 on Wed Jul 19, 2017 2:41 am, edited 6 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 9:41 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
OPTION-3:
Jessie Lite image + dump1090-mutability + Piaware data feeder


(1) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).
(2) Format microSD Card.
(3) Download Jessie Lite image (zip) on your Desktop/Laptop and unzip downloaded file.
(4) Write the unzipped Jessie Lite image to microSD Card.
5) After image is written, and microSD card is still in card reader of Desktop/Laptop, (a) Enable ssh (b) Configure WiFi

    (a) To enable SSH:
      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

    (b) To enable Wifi on first boot (if required):
      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 labeled piaware. Open the file "wpa_supplicant.conf" in TextEdit.

      Windows & Mac: In the opened blank file wpa_supplicant.conf, copy paste following text:
      Code:
      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.

    (6) Remove microSD card from card reader, insert into Pi, power up, and SSH.

    (7) Install dump1090-mutability v1.15~dev

      Below is a step-by-step method to built & install dump1090-mutability_1.15~dev from source code, and then steps to install data feeders FR24, FA, and PF.
        STEP-1: UPDATE THE OPERATING SYSTEM
        Code:
        sudo apt-get update


        STEP-2: INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
        Code:
        sudo apt-get install -y git
        sudo apt-get install -y build-essential
        sudo apt-get install -y debhelper
        sudo apt-get install -y rtl-sdr
        sudo apt-get install -y librtlsdr-dev
        sudo apt-get install -y libusb-1.0-0-dev
        sudo apt-get install -y pkg-config
        sudo apt-get install -y fakeroot
        sudo apt-get install -y curl
        sudo apt-get install -y cron
        sudo apt-get install -y lighttpd


        STEP-3: DOWNLOAD / CLONE THE SOURCE FILES TO YOUR RPi
        Code:
        cd ~/
        sudo mkdir install-dump
        cd install-dump
        sudo git clone https://github.com/mutability/dump1090.git


        STEP-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.
        Code:
        cd ~/install-dump/dump1090
        sudo dpkg-buildpackage -b


        STEP-5: INSTALL THE DUMP1090-MUTABILITY PACKAGE
        Code:
        cd ~/install-dump
        sudo dpkg -i dump1090-mutability_1.15~dev_*.deb


        STEP-6: CONFIGURE THE WEB SERVER
        Code:
        sudo lighty-enable-mod dump1090
        sudo systemctl force-reload lighttpd


        STEP-7: DUMP1090-MUTABILITY POST INSTALLATION CONFIGURATION
        Code:
        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:
        Code:
        sudo nano /etc/default/dump1090-mutability
        #after making changes, save file and exit
        #restart dump1090-mutability
        sudo systemctl restart dump1090-mutability



    (8) Install Piaware 3.5 data feeder (add-on package install)
    Code:
    wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.5.0_all.deb
    sudo dpkg -i piaware-repository_3.5.0_all.deb
    sudo apt-get update
    sudo apt-get install piaware
    sudo piaware-config allow-auto-updates yes
    sudo piaware-config allow-manual-updates yes
    #now restart piaware
    sudo systemctl restart piaware


    (9) For retaining existing station number and it's stats

    First find and note down existing station's "Unique Identifier" which is in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx". You can find it from any of these three places:

    Easiest method, from your stats page: https://flightaware.com/adsb/stats/user/yourusername
    Before re-imaging, from Pi: cat /var/log/piaware.log
    Before re-imaging, from Pi: cat /var/cache/piaware/feeder_id

    Once you have "Unique Identifier", give following command after booting and SSH,
    Code:
    #delete the "Unique Identifier" in cache (which was assigned automatically at boot)
    sudo rm /var/cache/piaware/feeder_id

    #assign existing "Unique Identifier" by piaware-config command below
    # replace “12345678-1234-1234-1234-123456789abc” by Unique Identifier of your existing station

    piaware-config feeder-id 12345678-1234-1234-1234-123456789abc

    #Restart piaware
    sudo systemctl restart piaware


    (10) For a new station, claim your Pi by logging in to your account and go to page:
    https://flightaware.com/adsb/piaware/claim



    11) ADD TERRAIN LIMIT RINGS (OPTIONAL)
    Dump1090-mutability v1.15~dev can display terrain limit rings using data obtained from the website http://www.heywhatsthat.com.

      (a) First you have to generate a panorama for your location. To do this, follow the steps in first post of the following thread:
      What is the Maximum Range I can Get?

      (b) 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.


      Image


      (c) 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).
      Code:
      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.

      (d) RESTART dump1090-mutability
      Code:
      sudo systemctl restart dump1090-mutability



Last edited by abcd567 on Wed Jul 19, 2017 2:44 am, edited 9 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sat Apr 08, 2017 10:01 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
ADDITIONAL DATA FEEDERS

1) INSTALLATION OF PLANEFINDER DATA FEEDER:
To install Plane Finder Client, enter these commands in console:
Code:
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: //<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 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 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.
Code:
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://<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
Code:
~ $ 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
Code:
~$ sudo service fr24feed restart




3) INSTALLATION OF ADSBEXCHANGE DATA FEEDER

(1) Install required packages to build and to fulfil dependencies
Code:
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
Code:
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
Code:
cd ~/adsbexchange/mlat-client
sudo dpkg-buildpackage -b -uc


(4) Move to the directory where built .deb package is located, and install the package
Code:
cd ~/adsbexchange
sudo dpkg -i  mlat-client_*_armhf.deb


To check mlat client has been installed
Code:
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, create a new file "netcat.sh"
Code:
sudo nano ~/adsbexchange/netcat.sh


Copy-paste the code below in new file "netcat.sh"
Note: In the code below I was forced to add spaces between ! and # and before and after all slashes / , else the post will not go through (Forbidden).
Please remove these spaces after copy-paste.
Code:
# ! / bin / sh
while true
  do
    sleep 30
     / bin / nc 127.0.0.1 30005 |  / bin / nc feed.adsbexchange.com 30005
  done

Save the file and exit editor


(6) To start a connection for mlat feed & feedback between Pi and adsbexchange, create a new file "mlat.sh"
Code:
sudo nano ~/adsbexchange/mlat.sh


Copy-paste the code below in new file "mlat.sh"
Note:
(a) In the code below I was forced to add spaces between ! and # and before and after all slashes / , else the post will not go through (Forbidden).
Please remove these spaces after copy-paste.

(b) 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.
Code:
# ! / bin / sh
while true
  do
    sleep 30
    / usr / bin / mlat-client --input-type dump1090 --input-connect 127.0.0.1:30005 --lat [xx.xxxx] --lon [yy.yyyy] --alt [zzz] --user [your-user-name] --server feed.adsbexchange.com:31090 --no-udp --results beast,connect,127.0.0.1:30104
  done

Save the file and exit editor


(7) For automatic start of adsbexchange feed at boot, open file "rc.local" for editing
Code:
sudo nano /etc/rc.local


In file "rc.local" add these two lines above last line (exit 0)
Code:
/home/pi/adsbexchange/netcat.sh &

/home/pi/adsbexchange/mlat.sh &

Save the file and exit.

#reboot for adsbexchange feed to start
Code:
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"
Code:
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
.
.
.
.

        AND THAT IS ALL....... ENJOY!





.
.


Last edited by abcd567 on Tue Jul 18, 2017 4:12 pm, edited 14 times in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun Apr 09, 2017 3:22 am 
Offline
jluebbe - FlightAware user avatar

Joined: Mon Dec 12, 2016 12:26 pm
Posts: 11
A tutorial how to feed OpenSky Network can be found here:
https://opensky-network.org/community/p ... 090-feeder

For an existing dump1090 installation you just need these two commands:
Code:
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

Then enter your position, altitude and your OpenSky user name.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Mon Apr 10, 2017 10:40 am 
Offline
FlightAware Member
conligwx - FlightAware user avatar

Joined: Sat Mar 18, 2017 8:00 pm
Posts: 90
Location: EGAC/EGAD
jluebbe wrote:
Then enter your position, altitude and your OpenSky user name.


Thanks for this. looks like it could do with some more stations up north in the UK.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Thu Apr 13, 2017 1:15 pm 
Offline
TomNJerry - FlightAware user avatar

Joined: Sat Mar 19, 2016 7:58 pm
Posts: 26
Location: Canada
Very easy step by step instructions to prepare a new Pi from scratch.
Tried all three options (option-1, option-2 & option-3).
All installs worked like a charm.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Apr 25, 2017 11:18 am 
Offline
FlightAware Member
conligwx - FlightAware user avatar

Joined: Sat Mar 18, 2017 8:00 pm
Posts: 90
Location: EGAC/EGAD
could the Admins make this thread Sticky?


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 6:45 am 
Offline
BERspotterDE - FlightAware user avatar

Joined: Mon Mar 04, 2013 4:54 pm
Posts: 15
Hello my friends ;)

Is it possible to take the following USB sticks?

- Terratec Cinergy T-Stick (/lib/firmware/dvb-usb-af9015.fw)
- (noname) DVB-T USB Stick (/lib/firmware/af9005.fw)


I'm an owner of a RaspberryPi and I still have a couple of DVB-T sticks and since Germany replaced the old MPEG2 standard by MPEG4, I can't use the old sticks no longer for my local TV receiption. So I bought a newer DVB-T2 stick therefor.

And then I had an idea to try the old sticks inside the Raspberry to check some ADS-B receiption. I'm living close to the Berlin-Schoenefeld SXF airport (some people still believe in the bigger Berlin-Brandenburg airport BER right beside the old SXF) and would like to see and transmit my data to the FlightAware server.

But it doesn't work as it seems :'(
I always get the following message about the wrong hardware :(

$ dump1090-fa
Sun May 7 13:43:50 2017 CEST dump1090-fa 3.5.0 starting up.
rtlsdr: no supported devices found.


Eventually, somebody could help me to find the failure. So here you can see some informations about my hardware and software:

Hardware
RaspberryPi 3 Model B with 1GB RAM

$ uname -a
Linux RASPI 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux

$ lsusb
Bus 001 Device 005: ID 0ccd:0097 TerraTec Electronic GmbH Cinergy T RC MKII

$ dmesg | grep usb
[ 2.824195] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[ 2.959314] usb 1-1.4: New USB device found, idVendor=0ccd, idProduct=0097
[ 2.959336] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.959347] usb 1-1.4: Product: USB2.0 DVB-T TV Stick
[ 2.959355] usb 1-1.4: Manufacturer: NEWMI
[ 2.959363] usb 1-1.4: SerialNumber: 010101010600001
[ 2.966084] input: NEWMI USB2.0 DVB-T TV Stick as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:0CCD:0097.0003/input/input2
[ 3.035125] hid-generic 0003:0CCD:0097.0003: input,hidraw2: USB HID v1.01 Keyboard [NEWMI USB2.0 DVB-T TV Stick] on usb-3f980000.usb-1.4/input1
[ 3.315350] usbcore: registered new interface driver brcmfmac
[ 3.462779] usb 1-1.4: dvb_usb_v2: found a 'TerraTec Cinergy T Stick RC' in cold state
[ 3.483004] usb 1-1.4: dvb_usb_v2: downloading firmware from file 'dvb-usb-af9015.fw'
[ 3.565543] usb 1-1.4: dvb_usb_v2: found a 'TerraTec Cinergy T Stick RC' in warm state
[ 4.084373] usb 1-1.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 4.121696] usb 1-1.4: DVB: registering adapter 0 frontend 0 (Afatech AF9013)...
[ 4.204806] input: TerraTec Cinergy T Stick RC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/rc/rc0/input4
[ 4.205802] rc rc0: TerraTec Cinergy T Stick RC as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/rc/rc0
[ 4.205817] usb 1-1.4: dvb_usb_v2: schedule remote query interval to 500 msecs
[ 4.205833] usb 1-1.4: dvb_usb_v2: 'TerraTec Cinergy T Stick RC' successfully initialized and connected
[ 4.205970] usbcore: registered new interface driver dvb_usb_af9015

and the other stick...

$ lsusb
Bus 001 Device 005: ID 15a4:9020 Afatech Technologies, Inc.

$ dmesg | grep usb
[ 2.644247] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[ 2.790127] usb 1-1.4: New USB device found, idVendor=15a4, idProduct=9020
[ 2.790145] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.790153] usb 1-1.4: Product: DVBT
[ 2.790161] usb 1-1.4: Manufacturer: Afatech
[ 3.324314] usbcore: registered new interface driver brcmfmac
[ 4.435557] dvb-usb: found a 'Afatech DVB-T USB1.1 stick' in cold state, will try to load a firmware
[ 4.437582] dvb-usb: downloading firmware from file 'af9005.fw'
[ 4.807940] dvb-usb: found a 'Afatech DVB-T USB1.1 stick' in warm state.
[ 4.808453] dvb-usb: will use the device's hardware PID filter (table count: 32).
[ 4.815565] usb 1-1.4: DVB: registering adapter 0 frontend 0 (AF9005 USB DVB-T)...
[ 4.821406] dvb-usb: Afatech DVB-T USB1.1 stick successfully initialized and connected.
[ 4.821579] usbcore: registered new interface driver dvb_usb_af9005

thanks =)


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 6:59 am 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3676
BERspotterDE wrote:
Hello my friends ;)

Is it possible to take the following USB sticks?

- Terratec Cinergy T-Stick (/lib/firmware/dvb-usb-af9015.fw)
- (noname) DVB-T USB Stick (/lib/firmware/af9005.fw)

Unlikely. librtlsdr knows how to talk to a 2832 only.

(It is not the "DVB" part of the dongle that is interesting; someone worked out that the DAB digital radio support on 2832s was done by putting the 2832 into a basic SDR mode and doing the decoding in software, and it went from there)


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 7:15 am 
Offline
BERspotterDE - FlightAware user avatar

Joined: Mon Mar 04, 2013 4:54 pm
Posts: 15
thank you =)

that means, both my sticks do not work, I guess :(


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun May 07, 2017 11:46 am 
Offline
FlightAware Member
biekerc - FlightAware user avatar

Joined: Sat Jul 16, 2016 2:17 am
Posts: 65
BERspotterDE wrote:
thank you =)

that means, both my sticks do not work, I guess :(


I had an old msi stick with an af9015 and a terratec cinema xs stick, both did not work. This lead to buying a cheap usb stick on amazon marketplace, decided I liked flight tracking and have never looked back since...


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Mon Jun 12, 2017 1:43 pm 
Offline
FlightAware Member
cy80rg - FlightAware user avatar

Joined: Sun Feb 08, 2015 7:46 am
Posts: 431
I used option 3 from your really nice details, but i'm having trouble getting the webserver to start... ?

Code:
systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-06-12 19:35:28 BST; 5min ago
  Process: 1589 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)


Any thoughts?


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Mon Jun 12, 2017 3:56 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
cy80rg wrote:
I used option 3 from your really nice details, but i'm having trouble getting the webserver to start... ?

Code:
systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-06-12 19:35:28 BST; 5min ago
  Process: 1589 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)


Any thoughts?

If you faced this problem while installing on Orange Pi / Armbian 5.25, here is the workaround:

http://discussions.flightaware.com/post207576.html#p207576

.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Jun 13, 2017 6:03 am 
Offline
FlightAware Member
cy80rg - FlightAware user avatar

Joined: Sun Feb 08, 2015 7:46 am
Posts: 431
Hi abcd567,

Yup, saw that in your reply to my other thread re installing to HDD - did that when I first installed.
The fact that I still got the 403 etc leads me to think:

1. Something changed it back / reset it
2. That's not the solution in this case

Unfortunately, cant check as I've now flattened that SD and started again.

NB - I'm installing JP's ADSBReceiver scripts on top of your Mutability instructions - I take it there's no conflict there?

C


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Jun 13, 2017 3:50 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
cy80rg wrote:
Yup, saw that in your reply to my other thread re installing to HDD - did that when I first installed.
The fact that I still got the 403 etc leads me to think:

1. Something changed it back / reset it
2. That's not the solution in this case

Unfortunately, cant check as I've now flattened that SD and started again.

In Orange Pi/Armbian 5.25, the ramlog need to be disabled BEFORE installation of lighttpd.
If lighttpd was already installed, lighttpd should be removed first, then ramlog disabled, and then lighttpd reinstalled.
Code:
sudo dpkg --remove lighttpd
sudo dpkg --purge lighttpd
#now disable ramlog by changing Enabled=true to Enabled=false in file /etc/default/log2ram
sudo apt-get install lighttpd


In case of dump1090-fa, the lighttpd is installed with it to fulfill dependency. Hence removal of lighttpd is not allowed, and dump1090-fa is to be removed first, then lighttpd, then ramlog disabled, then dump1090-fa reinstalled.


Last edited by abcd567 on Tue Jun 13, 2017 4:09 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Jun 13, 2017 4:03 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
cy80rg wrote:
NB - I'm installing JP's ADSBReceiver scripts on top of your Mutability instructions - I take it there's no conflict there?

Only few days ago, I made a fresh install exactly as Option-3, then installed data feeders of fr24 & planefinder as in my post "Additional Feeders" (located just after Option-3 post).

I then run Joe Prochazka's script to install Web Portal / Graphs only, and said no to all offers to upgrade already installed mutability and data feeders. The install was successful.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun Jul 16, 2017 5:58 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
UPDATED on 2017/07/16, in accordance with following update:

How PiAware feeders are identified (updated 2017/07/16)


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Sun Jul 16, 2017 8:07 pm 
Offline
FlightAware Member
Jranderson777 - FlightAware user avatar

Joined: Tue Sep 22, 2015 1:13 pm
Posts: 112
Don't forget about feeding to adsbexchange.com too.


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Mon Jul 17, 2017 11:47 am 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
Jranderson777 wrote:
Don't forget about feeding to adsbexchange.com too.

Thanks for reminding. I have now added manual installation of adsbexchange feeder.

Click here ADDITIONAL DATA FEEDERS
When above post opens, scroll down to item: "3) INSTALLATION OF ADSBEXCHANGE DATA FEEDER"


Top
 Profile  
 
 Post subject: Re: Bake a Pi
PostPosted: Tue Jul 18, 2017 1:28 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2148
Location: Toronto CYYZ
I have now added Segregation of MLAT feedback of Adsbexchange and Flightaware.

(a) Click here:
ADDITIONAL DATA FEEDERS

(b) Scroll down to item: "3) INSTALLATION OF ADSBEXCHANGE DATA FEEDER"

(c) Scroll down to last step "(8) Segregation of MLAT Feedbacks of Flightaware and Adsbexchange"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], PBero and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: