1-800-401-2474 | support@airnavsystems.com
Forum| About| Support| Contact
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Bake a Pi  (Read 3099 times)

0 Members and 1 Guest are viewing this topic.

abcd567

  • Full Member
  • ***
  • Posts: 103
  • CYYZ - Toronto
Bake a Pi
« on: June 23, 2017, 10:03:27 pm »
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
- Raspbian Jessie Lite image
- dump1090-mutability
- Radarbox24 data feeder
- Additional data feeders.


OPTION-2
- Raspbian Jessie Lite image
- dump1090-fa
- Radarbox24 data feeder
- Additional data feeders.


OPTION-3
- Piaware image (this image has integral dump1090-fa and Piaware data feeder)
- Radarbox24 data feeder
- Additional data feeders


OPTION-4 :
- Pi24 image (this image has integral dump1090 MR and FR24 data feeder)
- Radarbox24 data feeder
- Additional data feeders Flightaware and Planefinder feeders do not work on Pi24 image unless some workaround is done.
  See this thread: How to Feed Data to Multiple Sites - A Brief Guide


HOW TO INSTALL ADDITIONAL DATA FEEDERS
1) Planefinder
2) Flightaware
3) Flightradar24
« Last Edit: July 09, 2017, 05:46:29 pm by abcd567 »

abcd567

  • Full Member
  • ***
  • Posts: 103
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #1 on: June 23, 2017, 10:03:58 pm »
OPTION-1
Raspbian Jessie Lite image + dump1090-mutability + Radarbox24 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.
Download from here:  https://www.raspberrypi.org/downloads/
(4) Write the unzipped Jessie Lite image to microSD Card.

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

  • 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


  • 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 labelled "boot". Open the file "wpa_supplicant.conf" in TextEdit.

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

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.

STEP-1: UPDATE THE OPERATING SYSTEM
Code: [Select]
sudo apt-get update

STEP-2: INSTALL PRE REQUISIT PACKAGES (needed to build, and needed to fulfill dependencies)
Code: [Select]
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: [Select]
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: [Select]
cd ~/install-dump/dump1090
sudo dpkg-buildpackage -b

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

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

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

See Map in your browser at following address
http://<IP of Pi>/dump1090/

.

(8) Install Radarbox24 data feeder

(a) Install Radarbox24 Feeder
Code: [Select]
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

(b) Configure Radarbox Feeder
After 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
Code: [Select]
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
Code: [Select]
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
    .

(9) ADD TERRAIN LIMIT RINGS
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 the 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.





(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).
[/list]
Code: [Select]
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: [Select]
sudo systemctl restart dump1090-mutability



« Last Edit: July 21, 2017, 05:57:42 pm by abcd567 »

abcd567

  • Full Member
  • ***
  • Posts: 103
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #2 on: June 23, 2017, 10:04:23 pm »
OPTION-2
Raspbian Jessie Lite image + dump1090-fa + Radarbox24 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.
Dowload from this page
https://www.raspberrypi.org/downloads/
(4) Write the unzipped Jessie Lite image to microSD Card.

(5) 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.
  • 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


  • 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 labelled "boot". Open the file "wpa_supplicant.conf" in TextEdit.

    Windows & Mac: In the opened blank file wpa_supplicant.conf, copy paste following text:
Code: [Select]
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-fa
  • It is important that first dump1090-fa is installed, and data feeders are installed after dump1090-fa has been installed.
  • To see the map, type in address bar of your browser:
    http://<IP of Pi>/dump1090-fa/

(a) Installation of dump1090-fa
Code: [Select]
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 dump1090-fa
sudo reboot

(b) Configure dump1090-fa: Set Location of your receiver
Code: [Select]
sudo nano /etc/default/dump1090-fa

The above command will open settings file for viewing/editing.

Must Do:
To this file, add your receiver's Latitude and longitude (in decimal format) as shown in red below.

Optional:
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"

Code: [Select]
#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

See Map in your browser at following address
http://<IP of Pi>/dump1090-fa/


.

(8) Install Radarbox24 data feeder

(a) Install Radarbox24 Feeder
Code: [Select]
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

(b) Configure Radarbox Feeder
After 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
Code: [Select]
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
Code: [Select]
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
    .


(9) ADD TERRAIN LIMIT RINGS
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 the 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.





(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).
[/list]
Code: [Select]
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) RESTART dump1090-fa
Code: [Select]
sudo systemctl restart dump1090-fa

Reload your browser (Ctrl+F5). If terrain rings do not appear, clear browser cache (Ctrl+Shift+Delete)


« Last Edit: July 21, 2017, 05:56:03 pm by abcd567 »

abcd567

  • Full Member
  • ***
  • Posts: 103
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #3 on: June 23, 2017, 10:04:55 pm »
    OPTION-3
    Piaware image (this image has integral dump1090-fa and flightaware data feeder) + Radarbox24 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.0 image (zip) on your Desktop/Laptop, and unzip downloaded file.
          Download link: http://piaware.flightcdn.com/piaware-sd-card-3.5.0.img.zip
    (4) Write the unzipped Piaware 3.5.0 image to microSD Card.

    The above version 3.5.0 is current as on June 26, 2017.
    For latest version number, check "2 - Install PiAware on your SD card" on this page:
    http://flightaware.com/adsb/piaware/build

    (5) 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.
    • 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



    • 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
    .
    (6) Remove microSD card from card reader, insert into Pi, and power up.

    (7) See Map in your browser at following address
    http://<IP of Pi>/dump1090-fa/


    (8) Install Radarbox24 data feeder

    (a) Install Radarbox24 Feeder
    [/list]
    Code: [Select]
    sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

    (b) Configure Radarbox Feeder
    After 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
    Code: [Select]
    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
    Code: [Select]
    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
      .

    (9) ADD TERRAIN LIMIT RINGS
    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 the 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.





    (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).
    [/list]
    Code: [Select]
    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) RESTART dump1090-fa
    Code: [Select]
    sudo systemctl restart dump1090-fa





    « Last Edit: July 21, 2017, 06:05:46 pm by abcd567 »

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #4 on: June 23, 2017, 10:05:21 pm »
    OPTION - 4:
    Will be added shortly
    « Last Edit: June 24, 2017, 06:03:18 am by abcd567 »

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #5 on: June 24, 2017, 06:03:31 am »
    ADDITIONAL FEEDERS


    (1) INSTALLATION OF PLANEFINDER DATA FEEDER:
    To install Plane Finder Client, enter these commands in console:
    Code: [Select]
    wget http://client.planefinder.net/pfclient_3.7.20_armhf.deb
    sudo dpkg -i pfclient_3.7.20_armhf.deb

    The above version 3.7.20 is current as on June 26, 2017.
    For latest version number, 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 FLIGHTAWARE DATA FEEDER:

    Code: [Select]
    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

    #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 version 3.5.0 used above is current as on June 26, 2017.
    To check latest version number, go to "2 - Download and Install PiAware" on this page:
    http://flightaware.com/adsb/piaware/install.

    .
    .
    .
    (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.
    Code: [Select]
    sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
    The above method is current as on June 26, 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: [Select]
    ~ $ 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: [Select]
    ~$ sudo service fr24feed restart
    .
    .
    .
    .


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






    .
    .
    .
    « Last Edit: June 26, 2017, 04:18:56 pm by abcd567 »

    anorak

    • Hero Member
    • *****
    • Posts: 880
    • support The Devon Air Ambulance Trust
    Re: Bake a Pi
    « Reply #6 on: June 26, 2017, 08:17:24 pm »
    Thanks very much for all the effort put in to getting the dongles working with Pi, but you can`t rest on your laurels yet, what about gettig the boxes to run through the Pi kit.  Pretty please............ ;-))
    Dave.
    Dave. Exmoor, North Devon.

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #7 on: July 04, 2017, 03:11:38 pm »
    ....what about gettig the boxes to run through the Pi kit....
    I dont have Radarbox ComStation or Micro RadarBox, so cannot answer your question.

    Aparently Micro RadarBox, being a DVB-T USB receiver, should work with RPi in the same way as any other DVB-T works with RPi.


    anorak

    • Hero Member
    • *****
    • Posts: 880
    • support The Devon Air Ambulance Trust
    Re: Bake a Pi
    « Reply #8 on: July 05, 2017, 08:21:51 am »
    I was thinking about the original boxes to save my poor old laptop from expiring from heat exhaustion!  (Yes even in England  ;-) )
    Dave.
    Dave. Exmoor, North Devon.

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #9 on: July 20, 2017, 01:18:54 am »
    I was thinking about the original boxes to save my poor old laptop from expiring from heat exhaustion!  (Yes even in England  ;-) )
    Dave.
    Hi Dave
    I don't have Radarbox hardware. Can you tell me which cable your Radarbox uses to connect to your Windows computer (USB,  Serial,  Parallel,  com port,  or Ethernet)?

    If the Radarbox is connected to router by an Ethernet cable,  and Windows computer connects to it on network,  I may find a way to feed data to airnav through Pi instead of Windows computer.
    Regards
    abcd567

    anorak

    • Hero Member
    • *****
    • Posts: 880
    • support The Devon Air Ambulance Trust
    Re: Bake a Pi
    « Reply #10 on: July 20, 2017, 06:23:34 am »
    Morning, the box connects with a USD cable to the computer and then the data is fed to the network, but I fed my laptop via a Silex box. Perhaps there might be a clue in that.
    Good luck as a few others are looking for a solution,  Dave.
    Dave. Exmoor, North Devon.

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #11 on: July 20, 2017, 07:42:54 am »
    Morning, the box connects with a USD cable to the computer and then the data is fed to the network, but I fed my laptop via a Silex box. Perhaps there might be a clue in that.
    Good luck as a few others are looking for a solution,  Dave.
    The method given below is untested.
    Unfortunately I dont have a Radarbox, otherwise I will first test it myself, and post only if found successful.
    Untill I have tested it myself, I cannot give any guarantee of its success.
    You have to test it yourself. It may work, it may not.



    STEP-1
    If you already have a RPi+DVB-T feeding data to AirNav, do following:
    (1) Plug-out DVB-T from Raspberry Pi.
    (2) Plug-out Radarbox's USB cable from your Windows Computer, and plug it in the USB port of RPi.
    (3) Reboot RPi

    Now check the status of feed
    Code: [Select]
    pi@raspberrypi:~ $ sudo systemctl status rbfeeder -l
    The Radarbox should now feed to the RPi station you have (EXTRPI0000aaa).

    If STEP-1 is successful, go to STEP-2


    STEP-2

    If you want to feed the same station number (PGANRB000bbb) you were already feeding by Radarbox, then you have to edit RPi's file "rbfeeder.ini" and replace the existing key (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) by your Radarbox's key (yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy). Leave the station number "EXTRPI000aaa" unchanged. On restart/reboot, correct station number (based on key) will be assigned automatically.


    Code: [Select]
    pi@raspberrypi:~$ sudo nano /etc/rbfeeder.ini
    Quote
    [client]
    network_mode                   = true
    log_file                       = /var/log/rbfeeder.log
    key                            = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx   (Replace it by Radabox's key)
    sn                             = EXTRPI000aaa


    [network]
    mode                           = beast
    external_port                  = 30005
    external_host                  = 127.0.0.1


    [mlat]

    Save the file Ctrl+o, exit editor Ctrl+x

    Now restart the rbfeeder
    Code: [Select]
    sudo systemctl restart rbfeeder
    Alternatively you can reboot the RPi
    Code: [Select]
    sudo reboot


    Now check "rbfeeder.ini" to make sure it has now set itself to your Radarbox's key and Station number

    Code: [Select]
    pi@raspberrypi:~$ cat /etc/rbfeeder.ini
    Quote
    [client]
    network_mode                   = true
    log_file                       = /var/log/rbfeeder.log
    key                            = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    sn                             = PGANRB000bbb


    [network]
    mode                           = beast
    external_port                  = 30005
    external_host                  = 127.0.0.1


    [mlat]

    Now check the status of feed
    Code: [Select]
    pi@raspberrypi:~ $ sudo systemctl status rbfeeder -l


    Please post the results of your test for benefit of others. Thanks
    « Last Edit: July 20, 2017, 08:16:41 am by abcd567 »

    abcd567

    • Full Member
    • ***
    • Posts: 103
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #12 on: July 21, 2017, 07:01:25 pm »
    Radarbox requires a driver, which is installed with Radarbox Software installation on WINDOWS. Driver for LINUX is NOT available. All OS for RPi are Linux based, except Windows 10 IoT core.

    Windows 10 IoT is available from Microsoft for installation on RPi. The Radarbox may work with it. Has anyone tried it?

    https://developer.microsoft.com/en-us/windows/iot/getstarted

    anorak

    • Hero Member
    • *****
    • Posts: 880
    • support The Devon Air Ambulance Trust
    Re: Bake a Pi
    « Reply #13 on: July 27, 2017, 04:08:05 pm »
    Hi abcd, sorry step 1 doesn`t work, green power light comes on and blue USB light flashes once thats all that happens.
    Dave.
    PS, still running Vista on my laptop so unable to download W10.
    « Last Edit: July 27, 2017, 04:18:57 pm by anorak »
    Dave. Exmoor, North Devon.

    m24andrew

    • New Member
    • *
    • Posts: 2
    Re: Bake a Pi
    « Reply #14 on: September 13, 2017, 06:16:31 pm »
    I have followed all the instructions and I have FR24, Flightaware, Radarbox and planefinder all working on a Pi 3 model B using the Flightaware new blue dongle.  When I try to update using sudo apt-get update, I receive the following error...

    W: GPG error: http://apt.rb24.com jessie Release: The following signatures were invalid: A7E7D5E3786CA2212A3A5F4769D62C99357DF51A
    W: The repository 'http://apt.rb24.com jessie Release' is not signed.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    W: No Hash entry in Release file /var/lib/apt/lists/partial/apt.rb24.com_dists_jessie_Release which is considered strong enough for security purposes
    W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/apt.rb24.com_dists_jessie_Release

    What can I do to solve this?
    Many thanks and great post!