anything
AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Feed RB24 & FR25 from one RPi ?  (Read 18114 times)

0 Members and 1 Guest are viewing this topic.

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #15 on: April 13, 2018, 07:15:16 PM »
Ok, just installed FR24, working fine and Dump1090 on local IP :8080

receiver="dvbt"
fr24key="xxxxxxx"
path="/usr/lib/fr24/dump1090"
bs="yes"
raw="no"
logmode="0"
procargs="--net --net-http-port 8080"
logpath="/var/log/fr24feed"
mlat="yes"
mlat-without-gps="yes"

But get the following from rb24 result:

pi@raspberrypi:~ $ cat /etc/rbfeeder.ini
cat: /etc/rbfeeder.ini: No such file or directory
pi@raspberrypi:~ $ sudo rbfeeder --showkey
sudo: rbfeeder: command not found
pi@raspberrypi:~ $ sudo systemctl restart rbfeeder
Failed to restart rbfeeder.service: Unit rbfeeder.service not found.

This is the same as where I got to last weekend, which prompted my first question. The install log is as follows:

pi@raspberrypi:~ $ sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"
--2018-04-13 18:48:00--  http://apt.rb24.com/inst_rbfeeder.sh
Resolving apt.rb24.com (apt.rb24.com)... 104.25.103.118, 104.25.104.118, 2400:cb00:2048:1::6819:6876, ...
Connecting to apt.rb24.com (apt.rb24.com)|104.25.103.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1753 (1.7K) [text/x-sh]
Saving to: ‘STDOUT’

-                   100%[===================>]   1.71K  --.-KB/s    in 0s

2018-04-13 18:48:00 (30.6 MB/s) - written to stdout [1753/1753]

Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Get:3 http://repo.feed.flightradar24.com flightradar24 InRelease [13.0 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:5 http://repo.feed.flightradar24.com flightradar24/raspberrypi-stable armhf Packages [605 B]
Get:6 http://archive.raspberrypi.org/debian stretch/main armhf Packages [145 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian stretch/contrib armhf Packages [56.8 kB]
Get:8 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [28.2 kB]
Fetched 11.9 MB in 24s (496 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
dirmngr is already the newest version (2.1.18-8~deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
Executing: /tmp/apt-key-gpghome.XARqrDQIeF/gpg.1.sh --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 1D043681
gpg: keyserver receive failed: Cannot assign requested address
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:3 http://repo.feed.flightradar24.com flightradar24 InRelease
Get:4 https://apt.rb24.com rpi-stable InRelease [3,812 B]
Ign:4 https://apt.rb24.com rpi-stable InRelease
Get:5 https://apt.rb24.com rpi-stable/main armhf Packages [499 B]
Fetched 4,311 B in 3s (1,338 B/s)
Reading package lists... Done
W: GPG error: https://apt.rb24.com rpi-stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F2A8428D3C354953
W: The repository 'https://apt.rb24.com rpi-stable InRelease' 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.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rbfeeder
0 upgraded, 1 newly installed, 0 to remove and 84 not upgraded.
Need to get 78.1 kB of archives.
After this operation, 204 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  rbfeeder
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
!!!! IMPORTANT !!!!
By default, RBFeeder is configured to connect to your local dump1090 instance (localhost,
port 30005). If you want to use a USB RTL-SDR dongle instead, please run this command:
sudo rbfeeder --set-network-mode off --no-start
Then, restart the daemon:
sudo systemctl restart rbfeeder
After a few seconds, RBFeeder will connect to the AirNav servers and you can view your
sharing-key with this command:
sudo rbfeeder --showkey
If you already have a sharing-key from preivous a installation, you can set the same
key using this command:
sudo rbfeeder --setkey ‹your sharing key›
Installation finished.

Looks like the RB24 software failed to install but I have no idea why not ??

I need to go out now, so I'll check back for your answers first thing in the morning (UK Time)

abcd567

  • Hero Member
  • *****
  • Posts: 844
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #16 on: April 13, 2018, 07:38:12 PM »
@Millsey

After running the bash script, if rbfeeder is not installed, run following commands and it will be installed

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

The installation process will start.
After few minutes, it will stop and display:
"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 claim: https://www.radarbox24.com/raspberry-pi/claim


See this thread:
Bake a Pi
« Last Edit: April 13, 2018, 08:57:18 PM by abcd567 »

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #17 on: April 14, 2018, 09:21:08 AM »
@abcd567

Getting there now, but now no feed to RB24 on the same Rpi as FR24. Installed current key to RB24 but got this:

pi@raspberrypi:~ $ sudo rbfeeder --setkey xxxxxxxxxxxxxxxxxxxxxxx
[2018-04-14 09:11:01]  Starting RBFeeder Version 0.2.6 (build 20180313082038)
[2018-04-14 09:11:01]  Using configuration file: /etc/rbfeeder.ini
[2018-04-14 09:11:01]  Network-mode enabled.
[2018-04-14 09:11:01]           Remote host to fetch data: 127.0.0.1
[2018-04-14 09:11:01]           Remote port: 30005
[2018-04-14 09:11:01]           Remote protocol: BEAST
Error opening the listening port 32008 (Beast TCP input): bind: Address already in use
pi@raspberrypi:~ $ cat /etc/rbfeeder.ini
[client]
network_mode=true
log_file=/var/log/rbfeeder.log

key=xxxxxxxxxxxxxxxxxxxxxxxxx
sn=EXTRPI006014

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

[mlat]

FR24 is as follows:

receiver="dvbt"
fr24key="xxxxxxxxxxxxxxx"
path="/usr/lib/fr24/dump1090"
bs="yes"
raw="no"
logmode="0"
procargs="--net --net-http-port 8080 --lat xx.xxxx --lon x.xxxx"
windowmode="0"
logpath="/var/log/fr24feed"
mpx="no"
mlat="yes"
mlat-without-gps="yes"

Maybe turn off bs="yes" in FR24 ?? If so what do I edit ?

« Last Edit: April 14, 2018, 09:26:21 AM by Millsey »

abcd567

  • Hero Member
  • *****
  • Posts: 844
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #18 on: April 14, 2018, 10:12:48 AM »
To edit config of fr24
Method 1
Open file in nano editor
sudo nano /etc/fr24feed.ini

Change bs="yes" to bs="no"
After editing, Save (Ctrl+o) and close (Ctrl+x)

Then restart fr24feed
sudo systemctl restart fr2feed

Method 2

In browser go to page  ip-of-pi:8754/settings.html

Change settings, then click "Save" button, then click Restart button.
Both these buttons are at bottom right of settings page.

This is my setting which works perfectly well with (1) fr24feed (2) rbfeeder, (3) flightaware feeder (4) planefinder feeder, and (5) VRS on my Windows Desktop.

Please note that saving the settings on "ip-of-pi:8754/settings.html" actually saves these in file /etc/fr24feed.ini





« Last Edit: April 14, 2018, 10:39:15 AM by abcd567 »

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #19 on: April 14, 2018, 11:31:41 AM »
@abcd567

Thanks for all your patience, that has done the trick, just burning img of card now for backup and then I'll take both existing RPi's offline to replace with the single one which is the faster RPi2 as well.

Millsey

abcd567

  • Hero Member
  • *****
  • Posts: 844
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #20 on: April 14, 2018, 11:56:40 AM »
@Millsey
Glad to know your problem is solved. The problem was beneficial to you, as you learned that settings are saved in files /etc/fr24feed.ini and /etc/rbfeeder.ini

Just now realized that the rbfeeder was already running when you gave the command
 "sudo rbfeeder --setkey xxxxxxxxxxxxxxxxxxxxxxx"

This command not only sets the key, but also tries to start rbfeeder. As rbfeeder was already running, you got the error message "Error opening the listening port 32008 (Beast TCP input): bind: Address already in use".

Check if rbfeeder is healthy and running by following command

Code: [Select]
sudo systemctl status rbfeeder 
If it is running, it will give output like this

Code: [Select]
● rbfeeder.service - RBFeeder Service
   Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor pre   Active: active (running) since Sat 2018-04-14 06:28:01 EDT; 1h 7min ago
 Main PID: 450 (rbfeeder)

Now give following single-worded command, and you will again get the same error message "Error opening the listening port 32008 (Beast TCP input): bind: Address already in use"

Code: [Select]
rbfeeder
.

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #21 on: April 14, 2018, 12:04:56 PM »
@abcd567

Thanks for the heads up, but it's fine thanks, I'm seeing my usual feed on RB24, oh just remembered I need to change my FR24 sharing key now .....

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #22 on: April 15, 2018, 10:03:52 AM »
@abcd567

Just did it all again on my earlier RPi B+ with a new SD and all up and running 100%.
Just one question, can you have more than one net process arg ? I am running --net-http-port 8080 can I also add the line you use --net-bi-port 30104 or is only one arg allowed ?

Millsey

abcd567

  • Hero Member
  • *****
  • Posts: 844
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #23 on: April 16, 2018, 05:41:39 PM »
    can you have more than one net process arg ? I am running --net-http-port 8080 can I also add the line you use --net-bi-port 30104 or is only one arg allowed ?
    • You can add as many arguments as you need.
    • Try to see map at http://<IP of Pi>/dump1090/gmap.html
    • No need for --net-http-port 8080.  You can see map at http://<IP of Pi>:8080 without this argument.
    • The argument   --net   is essential to feed data to other sites like RadarBox24. Keep it.
    • Please see this post
      How to Feed Data to Multiple Sites - A Brief Guide  >> Scroll down to "FR24 FEEDER CONFIGURATION".
    [/list]
    « Last Edit: April 16, 2018, 07:12:54 PM by abcd567 »

    Millsey

    • New Member
    • *
    • Posts: 20
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #24 on: April 16, 2018, 07:20:09 PM »
    @abcd567

    Great, thanks for the info, guess my port 8080 is left over from my first forays with Dump1090 years ago ?
    But how about external access, I have my router set to forward port 8080 ?
    Mind you unless I can understand how to add the Google Api key I cannot see it now anyway :-(

    Millsey

    abcd567

    • Hero Member
    • *****
    • Posts: 844
    • CYYZ - Toronto
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #25 on: April 17, 2018, 03:31:28 PM »
    But how about external access, I have my router set to forward port 8080 ?

    In dump1090-mutability v 1.14 installed by FR24feeder installation, BY DEFAULT the port 8080 redirects to /dump1090/gmap.html which is Map page. Hence you do NOT need to add process argument  --net-http-port 8080 
    Because of this redirect, you can see the map on your Desktop on same Local Network as Pi, as well as from an external network.

    You can test this by deleting proc arg --net-http-port 8080 and saving the settings, then check:
    (1) From local network < IP OF PI >:8080
    (2) From local network < IP OF PI >/dump1090/gmap.html
    (3) From external network http:// < YOUR-INTERNET-IP > with and without :8080 at the end.
    I have done this test by first port forwarding 8080 in my router. For me it worked without :8080 at the end of address, IP only. When I added :8080 at the end of IP, it said "Unable to connect". 


    Quote from: Millsey
    Mind you unless I can understand how to add the Google Api key I cannot see it now anyway :-(

    You have to add Google API Key in file gmap.html

    1. Give following command to open file gmap.html in editor nano:
    Code: [Select]
    sudo nano /usr/share/dump1090-mutability/html/gmap.html

    2. Above command will open file gmap.html for editing. ADD script line shown in red, and in it replace YOUR_KEY_HERE by your actual Google Key.
    3. Save changes (Ctrl+o) and close file (Ctrl+x).
    4. Reboot Pi (not necessary but preferable).
    5. Go to map page. If it gives problems, try Clear browser cache (Ctrl+Shift+Delete) and browser force reload (Ctrl+F5).


    <html>
      <head>
        <meta charset="utf-8"/>
          <link rel="stylesheet" type="text/css" href="style.css" />
          <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
          <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
          <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
          <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=geometry"></script>
          <script type="text/javascript" src="config.js"></script>
          <script type="text/javascript" src="planeObject.js"></script>
          <script type="text/javascript" src="script.js"></script>
          <script type="text/javascript" src="coolclock/excanvas.js"></script>
          <script type="text/javascript" src="coolclock/coolclock.js"></script>
          <script type="text/javascript" src="coolclock/moreskins.js"></script>
          <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE&libraries=geometry"></script>

      <title>DUMP1090</title>
      </head>
    « Last Edit: April 17, 2018, 04:31:40 PM by abcd567 »

    Millsey

    • New Member
    • *
    • Posts: 20
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #26 on: April 21, 2018, 10:19:21 AM »
    @abcd567

    Odd - when I added the Api key script line it refuses to save the script saying the file is read only ?

    Millsey

    abcd567

    • Hero Member
    • *****
    • Posts: 844
    • CYYZ - Toronto
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #27 on: April 21, 2018, 03:28:16 PM »

    Odd - when I added the Api key script line it refuses to save the script saying the file is read only ?


    The file opens as "read only" if you dont use sudo at the start of the command.

    Code: [Select]
    sudo nano /usr/share/dump1090-mutability/html/gmap.html

    Millsey

    • New Member
    • *
    • Posts: 20
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #28 on: April 21, 2018, 06:04:57 PM »
    Thanks but I did copy your first command which started sudo as well, I was also trying to install another private tracking site with similar problems and this guy suggested I run fsck.mode=force as he said it looked like my file system was read only, but I didn't fancy that, so I just rebooted the RPi and hey presto it has now accepted the APi key and the external IP is working through my 4G connection as you suggested to try.

    Weird

    Millsey

    abcd567

    • Hero Member
    • *****
    • Posts: 844
    • CYYZ - Toronto
    Re: Feed RB24 & FR25 from one RPi ?
    « Reply #29 on: April 23, 2018, 12:43:13 PM »
    ...so I just rebooted the RPi and hey presto it has now accepted the APi key and the external IP is working through my 4G connection as you suggested to try.

    Weird

    Millsey

    Weird, yes, but I am glad finally your problems are solved and you are up and running. :)

    Pi do misbehave sometimes, and often gets right when rebooted.