anything
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 100225 times)

0 Members and 5 Guests are viewing this topic.

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #15 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)"



« Last Edit: September 14, 2017, 07:36:14 PM by abcd567 »

m24andrew

  • New Member
  • *
  • Posts: 2
Re: Bake a Pi
« Reply #16 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.


abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #17 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


.
.
.
.

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


« Last Edit: September 18, 2017, 04:04:33 PM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #18 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
« Last Edit: September 18, 2017, 04:02:43 PM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #19 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.
« Last Edit: September 18, 2017, 04:05:42 PM by abcd567 »

elTrauko

  • New Member
  • *
  • Posts: 12
Re: Bake a Pi
« Reply #20 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
« Last Edit: October 01, 2017, 05:48:01 PM by elTrauko »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #21 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 to install dump1090-mutability.
« Last Edit: October 03, 2017, 03:34:30 AM by abcd567 »

elTrauko

  • New Member
  • *
  • Posts: 12
Re: Bake a Pi
« Reply #22 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

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #23 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

elTrauko

  • New Member
  • *
  • Posts: 12
Re: Bake a Pi
« Reply #24 on: October 03, 2017, 11:58:46 PM »
Abcd456, you are great, thank you

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #25 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

.
.
.
.

IMAGE 2 OF 2: AFTER ABOVE MODIFICATIONS


« Last Edit: October 04, 2017, 05:52:09 PM by abcd567 »

TomNJerry

  • New Member
  • *
  • Posts: 6
Re: Bake a Pi
« Reply #26 on: March 16, 2019, 06:47:55 PM »
Good guide for Raspberry Pi users.

dirkpitt

  • New Member
  • *
  • Posts: 7
Re: Bake a Pi
« Reply #27 on: September 17, 2019, 11:46:31 PM »
can you run both  radarbox24 and flightaware on same pi ? if so how do i do this and do I need 2 dongles?

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Bake a Pi
« Reply #28 on: September 18, 2019, 12:21:45 AM »
can you run both  radarbox24 and flightaware on same pi ?

YES, sure.
On same Pi I run following:
(1) RadarBox24 feeder
(2) Flightaware feeder
(3) Flightradar24 feeder
(4) Planefinder feeder
(5) OpenSky network feeder
(6) Adsbexchange feeder

if so how do i do this and do I need 2 dongles?

No, you dont need two dongles. Only one dongle is enough, which will be used by dump1090-mutability (or dump1090-fa). The single (dongle+dump1090) will feed data to all the feeders you install.

Go to FIRST POST of this thread.

(1) Click on either OPTION-1, or OPTION-2, or OPTION-3 and follow steps. You being a new user, I will recommend you use OPTION-3 (Piaware image), as it is the easiest.

(2) After completing steps in OPTION-1, or OPTION-2, or OPTION-3, go back to FIRST POST of this thread, scroll down, and click on "HOW TO INSTALL ADDITIONAL DATA FEEDERS", and follow steps.
« Last Edit: September 18, 2019, 12:33:43 AM by abcd567 »

dirkpitt

  • New Member
  • *
  • Posts: 7
Re: Bake a Pi
« Reply #29 on: September 18, 2019, 12:58:33 AM »
ok I have done that , my radarbox24 is feeding fine
but i still have nothing going to flightaware
client]
network_mode=false
log_file=/var/log/rbfeeder.log

key=

sn=EXTRPI002091

lat=edited

lon=-edited

alt=90

sat_used=0

sat_visible=0

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