AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: abcd567 on June 23, 2017, 10:03:27 pm

Title: Bake a Pi
Post by: abcd567 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 (https://www.airnavsystems.com/forum/index.php?topic=10201.msg187841#msg187841)
- Raspbian Jessie Lite image
- dump1090-mutability
- Radarbox24 data feeder
- Additional data feeders.


OPTION-2 (https://www.airnavsystems.com/forum/index.php?topic=10201.msg187851#msg187851)
- Raspbian Jessie Lite image
- dump1090-fa
- Radarbox24 data feeder
- Additional data feeders.


OPTION-3 (https://www.airnavsystems.com/forum/index.php?topic=10201.msg187861#msg187861)
- Piaware image (this image has integral dump1090-fa and Piaware data feeder)
- Radarbox24 data feeder
- Additional data feeders


OPTION-4 : (http://www.airnavsystems.com/forum/index.php?topic=10201.msg187871#msg187871)
- 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 (https://forum.flightradar24.com/threads/11137-How-to-Feed-Data-to-Multiple-Sites-A-Brief-Guide)


HOW TO INSTALL ADDITIONAL DATA FEEDERS (http://www.airnavsystems.com/forum/index.php?topic=10201.msg187901#msg187901)
1) Planefinder
2) Flightaware
3) Flightradar24
Title: Re: Bake a Pi
Post by: abcd567 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/ (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.

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

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 (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? (https://www.airnavsystems.com/forum/index.php?topic=9251.0)

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


(https://farm2.staticflickr.com/1552/25216701711_7b4b71130d.jpg)


(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



Title: Re: Bake a Pi
Post by: abcd567 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/ (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.
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

(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 (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? (https://www.airnavsystems.com/forum/index.php?topic=9251.0)

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


(https://farm2.staticflickr.com/1552/25216701711_7b4b71130d.jpg)


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


Title: Re: Bake a Pi
Post by: abcd567 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 (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.
.
(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 (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? (https://www.airnavsystems.com/forum/index.php?topic=9251.0)

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


(https://farm2.staticflickr.com/1552/25216701711_7b4b71130d.jpg)


(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





Title: Re: Bake a Pi
Post by: abcd567 on June 23, 2017, 10:05:21 pm
OPTION - 4:
Will be added shortly
Title: Re: Bake a Pi
Post by: abcd567 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 (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 (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 (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!






.
.
.
Title: Re: Bake a Pi
Post by: anorak 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.
Title: Re: Bake a Pi
Post by: abcd567 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.

Title: Re: Bake a Pi
Post by: anorak 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.
Title: Re: Bake a Pi
Post by: abcd567 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
Title: Re: Bake a Pi
Post by: anorak 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.
Title: Re: Bake a Pi
Post by: abcd567 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
Title: Re: Bake a Pi
Post by: abcd567 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 (https://developer.microsoft.com/en-us/windows/iot/getstarted)
Title: Re: Bake a Pi
Post by: anorak 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.
Title: Re: Bake a Pi
Post by: m24andrew 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!
Title: Re: Bake a Pi
Post by: abcd567 on September 14, 2017, 07:27:31 pm
@m24andrew:

Dont worry about this. It is a bug in rbfeeder (rbfeedee's GPG signature in Raspbian repository), which prevents update of apt cache, and update of rbfeeder. Your rbfeeder will still work normally.

The problem is more severe with latest version of Raspbian i.e. "Raspbian Stretch" image.

The bash script below fails to install the rbfeeder on "Raspbian Stretch" .
Code: [Select]
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"



Title: Re: Bake a Pi
Post by: m24andrew on September 14, 2017, 07:30:48 pm
Thanks for the reply!

I do have stretch and noticed it failed to install the feeder...I installed it via apt-get.

Title: Re: Bake a Pi
Post by: abcd567 on September 18, 2017, 02:29:25 pm
Workaround for Failure of rbfeeder installation bash script When Run on Raspbian STRETCH

I have sent an email to AirNav System's Andre Brandao and Jonis Ceara about this issue in Raspbian STRETCH, and they are looking after this bug. Hope it will be resolved soon.

Meanwhile there are two workarounds, one easy, other difficult.

Workaround - 1 (Easy, For Novice):
Thanks to m24andrew who pointed out to this easy solution

Code: [Select]
sudo apt-get update
sudo apt-get install rbfeeder
The installation process will start.
After few minutes, it will stop and display:

Quote
WARNING: The following packages cannot be authenticated!
  rbfeeder
Install these packages without verification? [y/N]


Type "y" and press Enter key. The installation process will continue and complete the installation in a minute or two.
Now go ahead with configuration and claim as shown in installation guide, STEP-2 onward Click Here (https://www.radarbox24.com/raspberry-pi/guide)


.
.
.
.

Workaround - 2 (Difficult, Only For Code Lovers):
Code: [Select]
wget -O inst_rbfeeder.sh "http://apt.rb24.com/inst_rbfeeder.sh"

sudo nano inst_rbfeeder.sh

Now scroll down to following lines, and delete -y as shown in red, and save the file (Ctrl+O) and close editor (Ctrl+x).
Quote
# Update and install RBFeeder
apt-get update
apt-get install rbfeeder -y


Now make the file " inst_rbfeeder.sh" executable, then execute it as follows
Code: [Select]
sudo chmod +x inst_rbfeeder.sh
sudo ./inst_rbfeeder.sh

The script will start installation process.
After few minutes, it will stop and display:
Quote
WARNING: The following packages cannot be authenticated!
  rbfeeder
Install these packages without verification? [y/N]


Type "y" and press Enter key. The installation process will continue and complete the installation in a minute or two.

Now go ahead with configuration and claim as shown in installation guide, STEP-2 onward Click Here (https://www.radarbox24.com/raspberry-pi/guide)


Title: Re: Bake a Pi
Post by: abcd567 on September 18, 2017, 02:48:07 pm
Workaround for Failure of dump1090-mutability When Installed on Raspbian STRETCH

In Raspbian STRETCH, the dump1090-mutability fails to open the DVB-T dongle.
As a result:
(a) It does not have any data available for the feeders, which fail to feed the Radarbox24 and other sites.
(b) The Map at < IP of Pi >/dump1090/gmap.html gives error message:

Quote

    Problem fetching data from dump1090.
    AJAX call failed (error: Not Found). Maybe dump1090 is no longer running?
    The displayed map data will be out of date.


The problem is caused by missing file "rtl-sdr.rules".
A very easy, one step solution is below:

Code: [Select]
sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"

sudo reboot
Title: Re: Bake a Pi
Post by: abcd567 on September 18, 2017, 03:00:20 pm
Workaround for Failure of FlightRadar24 installation bash script When Run on Raspbian STRETCH


Flightradar24 Feeder fails to install on Raspbian STRETCH by automated script/bash script.
Reason is missing package "dirmngr"
Workaround is given below:

Code: [Select]
sudo apt-get update
sudo apt-get install dirmngr

sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"
#Enter details when prompted.
Title: Re: Bake a Pi
Post by: elTrauko on October 01, 2017, 05:43:27 pm
Hi Abcd567,
I am trying to install dump1090-fa with Piaware and Fr24feed in a C.H.I.P. (http://getchip.com), the two feeders report being active, dump1090-fa gives me the messages I put below, how can I fix this?
Thank you

xxxx@xxxx:~$ sudo systemctl status dump1090-fa -l
● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
   Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled)
   Active: activating (auto-restart) (Result: exit-code) since dom 2017-10-01 14:19:08 -03; 11s ago
     Docs: https://flightaware.com/adsb/piaware/
  Process: 567 ExecStart=/usr/bin/dump1090-fa $RECEIVER_OPTIONS $DECODER_OPTIONS $NET_OPTIONS $JSON_OPTIONS
  $PIAWARE_DUMP1090_LOCATION_OPTIONS --write-json /run/dump1090-fa --quiet (code=exited, status=1/FAILURE)
 Main PID: 567 (code=exited, status=1/FAILURE)


oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: --json-location-accuracy <n>  Accuracy of receiver location in json metadata: 0=no location, 1=approximate, 2=exact
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: --dcfilter               Apply a 1Hz DC filter to input data (requires more CPU)
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: --help                   Show this help
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: Debug mode flags: d = Log frames decoded with errors
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: D = Log frames decoded with zero errors
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: c = Log frames with bad CRC
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: C = Log frames with good CRC
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: p = Log frames with bad preamble
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: n = Log network debugging info
oct 01 14:19:08 SCPQ-4 dump1090-fa[567]: j = Log frames to frames.js, loadable by debug.html
Title: Re: Bake a Pi
Post by: abcd567 on October 03, 2017, 01:21:51 am
Hi Abcd567,
I am trying to install dump1090-fa with Piaware and Fr24feed in a C.H.I.P. (http://getchip.com), the two feeders report being active, dump1090-fa gives me the messages I put below, how can I fix this?

How did you install dump1090-fa? If you used method given in Option-2 of this thread, i.e. package install, then it will not work on CHIP, as that package has been built for Raspberry Pi, not for C.H.I.P. 

For this reason I have installed dump1090-mutability on my CHIP using Option-1 of this thread. In this method, a pre-built package, like dump1090-fa, is not used. Instead the package is built on the computer (RPi or CHIP) and matches it and works fine.

I will suggest you flash your CHIP with fresh copy of Operating System, then install dump1090-mutability on it using Option-1.

A fresh install of Operating System and all software is the cleanest and trouble free method. However if you dont want fresh install of Operating system, you have to first remove dump1090-fa, then install dump1090-mutability. Installing dump1090-mutability without first removing dump1090-fa means trouble. Here is command to remove dump1090-fa
Code: [Select]
sudo dpkg --purge dump1090-fa
sudo dpkg --purge lighttpd
sudo rm -rf /var/www/html
sudo reboot

Now follow procedure in OPTION-1 (https://www.airnavsystems.com/forum/index.php?topic=10201.msg187841#msg187841) to install dump1090-mutability.
Title: Re: Bake a Pi
Post by: elTrauko on October 03, 2017, 10:31:37 pm
Thanks Abcd567, the installation of dump1090-mutability is perfect. I only need to solve <mi-ip>: 8080, which does not finish loading the page, but it may not be necessary. I'm going to try other feeders.
Gracias
Title: Re: Bake a Pi
Post by: abcd567 on October 03, 2017, 11:28:05 pm
I only need to solve <mi-ip>: 8080, which does not finish loading the page, but it may not be necessary.
Use
<mi-ip>/dump1090/ 
or
<mi-ip>/dump1090/gmap.html
Title: Re: Bake a Pi
Post by: elTrauko on October 03, 2017, 11:58:46 pm
Abcd456, you are great, thank you
Title: Re: Bake a Pi
Post by: abcd567 on October 04, 2017, 05:31:38 pm
I am trying to install dump1090-fa .....
As installation of dump1090-fa fails on C.H.I.P. , you have installed dump1090-mutability.
Functionally dump1090-fa is actually dump1090-mutability customized for Flightaware. Their receiver-decoder software is same, but the GUI/Skin (i.e. Map) is different. The reason most user want to install dump1090-fa is that its SkyView Map looks much attractive than Map of dump1090-mutability.

Since the receiver-decoder software of both these dumps are same, it is possible to change the skin of dump1090-mutability by skin of dump1090-fa, so that you get map of dump1090-fa, while dump1090-mutability is running in the background. Here is the "HOW TO" do this:

REPLACING TWO-CLOCK MAP OF DUMP1090-MUTABILITY BY SKYVIEW MAP OF DUMP1090-FA

(1) Download the dump1090-fa files from github.


Code: [Select]
cd ~
sudo git clone https://github.com/flightaware/dump1090.git

(2) The above command will download a folder dump1090, which contains another folder public_html. Copy the folder public_html to folder /usr/share/dump1090-mutability.

Code: [Select]
sudo cp -r dump1090/public_html  /usr/share/dump1090-mutability/public_html

(3) Now go to folder dump1090-mutability.

Code: [Select]
cd /usr/share/dump1090-mutability

(4) First change name of folder html to original-html
This preserves the original html folder, and enables to revert to original in case something goes wrong.

Code: [Select]
sudo mv html original-html

(5) Now change the name of folder public_html to html.

Code: [Select]
sudo mv public_html html

(6) Now go to folder html and change name of file index.html to gmap.html.

Code: [Select]
cd html
sudo mv index.html gmap.html

(7) Now reboot for changes to take effect.

Code: [Select]
sudo reboot

(8) After reboot, reload the browser. If new map does not show, clear browser's cache (Ctrl+Shift+Delete) and then hard reload the browser (Ctrl+F5).






IMAGE 1 OF 2: BEFORE ABOVE MODIFICATIONS
(https://farm5.staticflickr.com/4310/35318277953_594aa032a3_b.jpg)
.
.
.
.

IMAGE 2 OF 2: AFTER ABOVE MODIFICATIONS
(https://farm5.staticflickr.com/4327/35993093331_8665d49fe9_b.jpg)