AirNav RadarBox
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 100224 times)

0 Members and 5 Guests are viewing this topic.

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • 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 Lite image
- dump1090-mutability EB_VER
- Radarbox24 data feeder
- Additional data feeders.


OPTION-2
- Raspbian 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-mutability EB_VER and FR24 data feeder)
- Radarbox24 data feeder
- Additional data feeders.
  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: December 29, 2020, 10:57:43 PM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #1 on: June 23, 2017, 10:03:58 PM »
Last update: Feb 29, 2024

OPTION-1
RaspberryPi OS Lite image + dump1090-mutability + Radarbox24 data feeder


STEP-1:  Write Image to microSD card

Alternate-1: Using Raspberry Pi Imager (Recommended)
This method has advantage that you can configure user name, user password, Wifi SSID, Wifi Password, and enable SSH in the Raspberry Pi imager, and when the microSD card is inserted in Pi and Pi is powered up, the WiFi and SSH are available right from first boot.

Download Imager from here:
https://www.raspberrypi.com/software/





Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port) and follow instructions here:
https://www.raspberrypi.com/documentation/computers/getting-started.html#installing-the-operating-system


Alternate-2: Using Win32DiskImager or BalenaEtcher
This option requires that a Monitor, Keyboard and Mouse is connected to RPi on First Boot, in order to configure (a) username (b) user password (c) Wifi SSID (d) WiFi password (e) Enable SSH.

(2.1) Download Raspbian Lite image (zip) on your Desktop/Laptop
Download page:
]https://www.raspberrypi.com/software/operating-systems/]


(2.2) Unzip downloaded file to get .img file.

(2.3) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).

(2.4) Write the unzipped Raspbian Lite image to microSD Card using Win32DiskImager or Balena Etcher.

(2.5) Connect a Monitor, Keyboard and Mouse to RPi.

(2.6) Remove microSD card from card reader, insert into Pi, power up
The OS will boot, and ask you to enter username (for example pi), and user password.

(2.7) Issue following command
Code: [Select]
sudo raspi-config   

Above command will open a dialog box. Follow steps shown in attached screenshots below to (1) Configure WiFi and (2) Enable SSH

Configure WiFi





Enable SSH





(7) Install dump1090-mutability EB_VER v1.15
  • 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/

If your OS is Debian/Raspbian BUSTER, BULLSEYE, or BOOKWORM

Code: [Select]
sudo apt install dump1090-mutability

sudo usermod -a -G plugdev dump1090

## After above commands, you must reboot RPi so that dump1090-mutability
## can detect and use the Dongle (DVB-T/FA Prostick etc)
sudo reboot


To set your latitude and longitude, give following command. Accept all other default settings by pressing Enter key.

When asked "address to bind", remove default value "127.0.0.1" to make it blank, then press Enter key.

Code: [Select]
sudo dpkg-reconfigure dump1090-mutability 


For most settings, accept default settings by pressing "Enter".
For following settings, enter values as shown:

(a) Your receiver's Latitude (in decimal format): xx.xxxx
(b) Your receiver's  Longitude (in decimal format): yy.yyyy 
(c) 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   



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

.

(9) 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

Code: [Select]
[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]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.5 /usr/bin/mlat-client

[dump978]
#dump978_enabled=true



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
    .

(10) 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=12192"

To keep map un-cluttered, I have used only 1 rings in the wget command above. i.e. the  40,000 feet (12192 meters).

However, 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"


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: February 29, 2024, 02:13:58 AM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #2 on: June 23, 2017, 10:04:23 PM »
Last update: Feb 29, 2024

OPTION-2
RaspberryPi OS Lite image + dump1090-fa + Radarbox24 data feeder


STEP-1:  Write Image to microSD card

Alternate-1: Using Raspberry Pi Imager (Recommended)
This method has advantage that you can configure user name, user password, Wifi SSID, Wifi Password, and enable SSH in the Raspberry Pi imager, and when the microSD card is inserted in Pi and Pi is powered up, the WiFi and SSH are available right from first boot.

Download Imager from here:
https://www.raspberrypi.com/software/





Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port) and follow instructions here:
https://www.raspberrypi.com/documentation/computers/getting-started.html#installing-the-operating-system


Alternate-2: Using Win32DiskImager or BalenaEtcher
This option requires that a Monitor, Keyboard and Mouse is connected to RPi on First Boot, in order to configure (a) username (b) user password (c) Wifi SSID (d) WiFi password (e) Enable SSH.

(2.1) Download Raspbian Lite image (zip) on your Desktop/Laptop
Download page:
]https://www.raspberrypi.com/software/operating-systems/]


(2.2) Unzip downloaded file to get .img file.

(2.3) Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).

(2.4) Write the unzipped Raspbian Lite image to microSD Card using Win32DiskImager or Balena Etcher.

(2.5) Connect a Monitor, Keyboard and Mouse to RPi.

(2.6) Remove microSD card from card reader, insert into Pi, power up
The OS will boot, and ask you to enter username (for example pi), and user password.

(2.7) Issue following command
Code: [Select]
sudo raspi-config   

Above command will open a dialog box. Follow steps shown in attached screenshots below to (1) Configure WiFi and (2) Enable SSH

Configure WiFi





Enable SSH





(6) 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>/skyaware/

(a) Installation of dump1090-fa
Code: [Select]
wget https://www.flightaware.com/adsb/piaware/files/packages/pool/piaware/f/flightaware-apt-repository/flightaware-apt-repository_1.2_all.deb   

sudo dpkg -i flightaware-apt-repository_1.2_all.deb

sudo apt-get update 

sudo apt-get install dump1090-fa   

sudo reboot

To check latest version, please go to item "3 - Download and Install PiAware" on this page:
http://flightaware.com/adsb/piaware/install.

.
(b) Configure dump1090-fa:
The following command will open settings file for viewing/editing.
Code: [Select]
sudo nano /etc/default/dump1090-fa

Receiver Location:
To this file, add your receiver's Latitude and longitude (in decimal format) . By default these values are left blank, which I have filled by xx.xxxx and yy.yyyy as shown below.

Code: [Select]
# Receiver location, used for some types of position decoding. Provide the location as
# signed decimal degrees. If not given here, dump1090 will also try to read a receiver
# location from /var/cache/piaware/location.env (written automatically by PiAware, if installed)
RECEIVER_LAT=xx.xxxx
RECEIVER_LON=yy.yyyy


Gain:
The initial gain value by default is set 60 as shown below.
Code: [Select]
# Initial receiver gain, in dB. If adaptive gain is enabled (see below) the actual gain
# may change over time
RECEIVER_GAIN=60

If you want to change gain setting, replace 60 by the gain value you desire. The possible gain value range is from 0 to 49.6 and 58.6
All gain values should be positive


Adaptive Gain
By default Adaptive Gain is enabled.
Code: [Select]
# Adjust gain to try to achieve optimal dynamic range / noise floor?
ADAPTIVE_DYNAMIC_RANGE=yes

Adaptive gain automatically adjust the gain to value required according to signal strength. It starts with default value 60, tries different values and sets at a value suiting to current sinal level. It repeats this at regular intervals.

If you want to turn-off adaptive Gain Control, change "yes" to "no" as shown below:
Code: [Select]
# Adjust gain to try to achieve optimal dynamic range / noise floor?
ADAPTIVE_DYNAMIC_RANGE=no

After making changes, save file and exit
Code: [Select]
#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>/skyaware/


.

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


(8) 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/skyaware/html" (replace XXXXXXXX in the command below by your panorama's ID).
[/list]
Code: [Select]
sudo wget -O /usr/share/skyaware/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=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"

NOTE: To keep map un-cluttered, I have used only 1 ring in the wget command above. i.e. the 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: February 29, 2024, 02:00:14 AM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #3 on: June 23, 2017, 10:04:55 PM »
    Last update: Feb 29, 2024

    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) Go to following page:
    http://flightaware.com/adsb/piaware/build

    (3) Scroll down to "2 - Install PiAware on your SD card" on above page


    (4) Using link given on above page, download Piaware image (zip) on your Desktop/Laptop, and unzip downloaded file.

    (5) Write the unzipped Piaware image to microSD Card.

    (6) 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 text file and name it ssh

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

    (8) See Map in your browser at following address
    http://<IP of Pi>/skyaware/


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

    (8) 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/skyaware/html" (replace XXXXXXXX in the command below by your panorama's ID).
    [/list]
    Code: [Select]
    sudo wget -O /usr/share/skyaware/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=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 1 ring in the wget command above. i.e. the 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: February 29, 2024, 01:56:44 AM by abcd567 »

    abcd567

    • Hero Member
    • *****
    • Posts: 890
    • CYYZ - Toronto
    Re: Bake a Pi
    « Reply #4 on: June 23, 2017, 10:05:21 PM »
      OPTION - 4:

      1.1 - Download PI24 image (zip) on your Desktop/Laptop.

      Download page:   https://www.flightradar24.com/build-your-own

      Direct download link: http://repo.feed.flightradar24.com/rpi_images/fr24-raspberry-pi-latest.img.zip

      1.2 - Unzip downloaded file to get .img file.

      1.3 - Insert microSD Card in your Desktop/Laptop’s card slot (or use a card reader plugged into USB Port).

      1.4 - Write the unzipped PI24 image to microSD Card using Win32DiskImager or Etcher.


      1.5 - Enable WiFi on first boot (Do NOT execute this step if you are using a wired network connection to RPi):
      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 scroll down to find a file named wpa_supplicant.conf. Open this file in Notepad.

      Mac: 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, you will see following text:
      [/list]
      Code: [Select]
      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1

      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.

      In some countries, wifi wont work without specifying the country. Add following line at top of file wpa_supplicant.conf

      country=XX

      Replace XX by two letter code for your country e.g. GB for UK, US for USA, DE for Germany, FR for France, SE for Sweden, CH for Switzerland, NL for Netherland, AU for Australia, NZ for New Zealand, etc etc. (click here for complete list)

      Save file.

      On first boot, the WiFi will be enabled, and the file wpa_supplicant.conf will be moved from folder /boot to folder /etc/wpa_supplicant/. Any changes in WiFi settings after first boot is to be done in the file /etc/wpa_supplicant/wpa_supplicant.conf


      1.6 - Remove microSD card from card reader, insert into Pi, power up, and SSH.


      2 - Configure FR24 Feeder

      Note: You dont have to install FR24 feeder, as it is pre-installed in PI24 image. You have only to signup and configure. Also during configuration, if you choose Receiver "1 - DVB Stick", then dump1090-mutability ver 1.14 will be installed automatically.


      2.1 - Plug-in your DVB-T dongle in USB port of RPi

      2.2 - SSH to RPi and give following command to install fr24feed:

      Code: [Select]
      sudo fr24feed --signup
        2.3 - During execution of above command, fr24feed will present a signup wizard, asking for email, sharing key, latitude, longitude, antenna height etc. Provide all these details.

        2.4 - After sign-up details, it will ask choice for receiver configuration details, as shown below.
        Select option 1  DVBT Stick (USB)


        Quote
        Step 4.1 - Receiver selection (in order to run MLAT please use DVB-T stick with dump1090 utility bundled with fr24feed):

         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)$: 1
        Checking for dump1090...FOUND

        Step 4.3 - Enter your additional dump1090 arguments or leave empty
        $:   --net    --gain  -10    --lat  xx.xxxx   --lon  yy.yyyy

        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/fr24feed):
        $:

        Submitting form data...

        Saving settings to /etc/fr24feed.ini...OK
        Settings saved, please run "sudo systemctl restart fr24feed" to use new configuration.

        pi@raspberrypi:~ $ sudo systemctl restart fr24feed



        3 - Install Radarbox24 data feeder

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

        3.2 - 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
          .
        « Last Edit: December 04, 2020, 06:22:00 PM by abcd567 »

        abcd567

        • Hero Member
        • *****
        • Posts: 890
        • CYYZ - Toronto
        Re: Bake a Pi
        « Reply #5 on: June 24, 2017, 06:03:31 AM »
        Last update: Feb 19, 2022

        ADDITIONAL FEEDERS

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

        This version of Planefnder Feeder has Open Street Map by default, but has option to switch to Google Map
        Code: [Select]
        wget http://client.planefinder.net/pfclient_5.0.161_armhf.deb
        sudo dpkg -i pfclient_5.0.161_armhf.deb

        The above versions are current as on February 19, 2022.
        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 Open Street Map/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 https://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_7.1_all.deb
        sudo dpkg -i piaware-repository_7.1_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 above version (7.1) is current as on February 19, 2022.
        To check latest version number, go to item "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 - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"
        The above method is current as on February 19, 2022.
        For latest instructions, please visit this page:
        https://www.flightradar24.com/raspberry-pi.

        After instal;ling the fr24feed package, the installer will start signup procedure. After getting from you email, fr24 share key, latitude, longitude, elevation, it will ask you this question:

        Would you like to use autoconfig (*yes*/no)$:

        Type yes and press Enter key


        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: February 20, 2022, 01:28:23 AM by abcd567 »

        anorak

        • Hero Member
        • *****
        • Posts: 978
        • 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

        • Hero Member
        • *****
        • Posts: 890
        • 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: 978
        • 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

        • Hero Member
        • *****
        • Posts: 890
        • 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: 978
        • 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

        • Hero Member
        • *****
        • Posts: 890
        • 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

        • Hero Member
        • *****
        • Posts: 890
        • 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: 978
        • 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!