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 26967 times)

0 Members and 2 Guests are viewing this topic.

Millsey

  • New Member
  • *
  • Posts: 20
Feed RB24 & FR25 from one RPi ?
« on: April 11, 2018, 06:33:57 AM »
I have two RPi's currently feeding ADSB data, one to FR24 and one to RB24. I wondered if I could feed both from one RPi, so downloaded the img for FR24 and installed on an SD card for a spare RPi. I then added the RB24 software from https://www.radarbox24.com/raspberry-pi/guide and followed the install path for an existing DUMP1090 running. However RB24 just refuses to run, I wonder if the FR24 software has a block built in ? I can see the dump1090 output @ :8080 on my local network, so I know data is available.
Anyone done this sucessfully ?

John

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: Feed RB24 & FR25 from one RPi ?
« Reply #1 on: April 11, 2018, 07:50:07 AM »
Yes indeed, I'm feeding 4 site from each of my 3 Raspberry Pi's

I was guided through the setup here on the forum.  Take a look at this thread:

https://www.airnavsystems.com/forum/index.php?topic=16971.0

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #2 on: April 11, 2018, 08:33:02 AM »
@Millsey
Most likely wrong settings.
post output of following commands: 
(1) cat /etc/rbfeeder.ini
(2) cat /etc/fr24feed.ini

I have Pi24-2.0.0 img from FlightRadar24 written to my microSD card, and have installed rbfeeder, flightaware, and planefinder feeders on it. All work perfectly well.

Below are outputs from my RPi. Compare with your outputs.

Code: [Select]
cat /etc/rbfeeder.ini

[client]
network_mode=true
log_file=/var/log/rbfeeder.log

key=C E N S O R E D

sn=EXTRPI000008

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



Code: [Select]
cat /etc/fr24feed.ini

receiver="dvbt"
fr24key="C E N S O R E D"
bs="no"
raw="no"
logmode="1"
procargs="--net  --net-bi-port 30104  --lat 43.xxxx --lon -79.xxxx --gain 42"
windowmode="0"
logpath="/var/log/fr24feed"
mpx="no"
mlat="yes"
mlat-without-gps="yes"

NOTE:
When FR24 feeder is set to "receiver=dvbt" mode, it installs and uses dump1090-mutability v1.14. The entries in field "procargs" then control dump1090-mutability v1.14.

Adding --lat and --lon of receiver will show on map range circles at 100, 150, and 200 nm, centered at receiver location.
Adding --net-bi-port 30104 will enable MLAT feedback planes from Flightaware to be displayed on map
Adding --gain xx will control gain of Dongle through dump1090-mutability v1.14
« Last Edit: April 11, 2018, 09:12:39 AM by abcd567 »

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #3 on: April 11, 2018, 12:02:27 PM »
Thanks Allocator and abcd567 for your swift response. 
I will post command outputs as requested once I have a chance to get time - probably at the weekend now.
abcd567 - you have also helped me to learn more arguments in procargs - thanks

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: Feed RB24 & FR25 from one RPi ?
« Reply #4 on: April 11, 2018, 12:52:08 PM »
The post on the form here suggests setting the receiver to (4) Mode-s Beast and this works for me.

https://forum.flightradar24.com/threads/10232-How-to-Install-dump1090-mutability_1-15-dev-on-RPi

Is it better to select (1) DVBT USB) to get other options via procargs?

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

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #5 on: April 11, 2018, 01:40:25 PM »
The post on the form here suggests setting the receiver to (4) Mode-s Beast and this works for me.

https://forum.flightradar24.com/threads/10232-How-to-Install-dump1090-mutability_1-15-dev-on-RPi

The above instruction are for those who have installed dump1090-mutability v1.15~dev and therefore will NOT use FR24 supplied dump1090-mutability v1.14.

In case of @Millsey, he mentioned he is using the FR24 supplied dump1090. The settings "receiver=dvbt" I have shown in my above post are for this situation, as the FR24 supplied dump1090 will now use the DVB-T dongle.

The setting "Beast, 127.0.0.1:30005" are required when the user has installed a decoder software (dump1090) of his own choice, and DVB-T will be used by that software. FR24 feeder will get data from that decoder software on port 30005, format beast.



Quote
Is it better to select (1) DVBT USB) to get other options via procargs?

If you select DVBT (USB), FR24 feeder will start its own dump1090 at startup and grab the DVBT. Your dump1090-mutability will become orphan - no dongle left for it.

The FR24 feeder starts/stops and passes these arguments at startup ONLY to the dump1090 provided by FR24.
The FR24 feeder has no control over user installed dump1090, and does NOT start/stop it or pass any process arguments to it.
The FR24feeder in this case only "listens" to the data from user installed dump1090.
User has to make configuration settings of his dump1090 by editing the file /etc/default/dump1090-mutability.
« Last Edit: April 11, 2018, 01:42:00 PM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: Feed RB24 & FR25 from one RPi ?
« Reply #7 on: April 12, 2018, 08:00:37 AM »
Thanks for the update and the clarification of the use of dump1090 and the USB stick receiver.

I'm also feeding to 360Radar now making it 5 feeds from the one Rpi.  Installation of the 360Radar on top of the existing 4 feed installation was simple and straightforward, only requiring the MLAT and ADSB install using the instructions on their website.

I just have't got enough monitors to watch all the feeds :)

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #8 on: April 12, 2018, 12:14:02 PM »
Thanks abcd567 for the guide, but even more confused by which bits to ignore. I have just asked FR24 for another key, so I can experiment further without taking my 24/7 feed down. I'll then be able to try the various options suggested to find what works for me. Rest assured I will doubtless be in more trouble and posting here again soon

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #9 on: April 12, 2018, 04:33:31 PM »
...but even more confused by which bits to ignore.
You dont have to. Simply give following 2 commands and post their outputs. Hopefully after seeing the outputs, I will be able to tell you the remedy.

Note: Remove the actual values of fr24 and rb24 keys when posting.

Code: [Select]

cat /etc/fr24feed.ini

cat /etc/rbfeeder.ini


« Last Edit: April 12, 2018, 04:35:53 PM by abcd567 »

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #10 on: April 12, 2018, 06:53:32 PM »
Ok, abcd567, so should I do the following steps on a new card:

Burn FR24 img and run setup (will get new FR24 key)
Add extra Dump1090 args:  --net --net-http-port 8080
Download RB software:  sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"
Then do I add:  sudo rbfeeder --set-network-mode on --set-network-host ‹host› --set-network-port ‹port› --set-network-protocol ‹beast/raw› --no-start

Sorry but this is where I am getting confused with all the talk of Beast protocols and ports
My current RPi feeding FR24 is set:
RAW data: No
SBS Feed: No
Decoded data: Yes

From this I can view Dump1090 on my browser as well as through VRS

Idiot guide would be much appreciated



abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #11 on: April 12, 2018, 08:39:17 PM »
@Millsey

In my previous posts, I have twice asked you to post output generated by two commands (cat /etc/fr24feed.ini and cat /etc/rbfeeder.ini). Instead of doing so, you again asked for a solution of your problem.

This is equivalent to refusing to take blood test, urine test, and x-ray prescribed by your doctor, and insisting that the doctor diagnose the disease and prescribe medication without these tests.
« Last Edit: April 12, 2018, 09:03:04 PM by abcd567 »

Millsey

  • New Member
  • *
  • Posts: 20
Re: Feed RB24 & FR25 from one RPi ?
« Reply #12 on: April 13, 2018, 06:18:24 AM »
I was intending to start with a clean slate and start again from scratch on a new SD card. I have every intention of posting as requested the outputs from the .ini files, but thought it would be a good idea to install both FR24 and RB24 correctly on the new card first. As I have two working feeds on two Rpi's I might just leave well alone and stick with them. Just seemed a good idea to run all from one.
Sorry I have seemed to have angered you.

Allocator

  • RadarBox24.com Beta Testers
  • Hero Member
  • *
  • Posts: 3568
Re: Feed RB24 & FR25 from one RPi ?
« Reply #13 on: April 13, 2018, 07:48:46 AM »
Millsey, just take your time to work through the instructions at the link posted by abcd567 and concentrate initially on getting dump1090 mutability working.  That's half of the battle.  You can then concentrate on adding one  feed at a time and checking that that feed is actually being received by viewing the appropriate online page.  I've setup 3 Rpi's using the guide.  Once I had one working I copied the image and flashed that to the other two SD cards.  I did then struggle a bit to edit the ini/conf files so that I had 3 lots of feeds and not 3 Rpi's all feeding the same, but I got there in the end.

I do understand abcd567's frustration.  He's trying to help and you might be very close, but if you don't answer his questions then he might as well not bother :0

He's been very patient with me and has answered my silly questions and I wouldn't have got my setup running without his help.  Stick with it and let us know how you get on - and do take notes as you go through the process, it really helps at a later date.

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Feed RB24 & FR25 from one RPi ?
« Reply #14 on: April 13, 2018, 01:42:54 PM »
@Millsey:

For Existing microSD card
I cannot tell you anything unless you post output of following commands, as most likely these no longer are at default settings.
cat /etc/fr24feed.ini
cat /etc/rbfeeder.ini

For NEW microSD card
FR24 feeder:
Setting you have mentioned is OK.
You did not mention the MOST IMPORTANT setting "Receiver: DVBT"

RB feeder:
You have asked: "Then do I add:  sudo rbfeeder --set-network-mode on --set-network-host ‹host› --set-network-port ‹port› --set-network-protocol ‹beast/raw› --no-start"

You do NOT have to issue any command for rbfeeder. It is by default set to get data from a running dump1090 (in your case the dump1090 provided by FR24 feeder).

After installation of rbfeeder, you have to go to following page and complete claim procedure.

https://www.radarbox24.com/raspberry-pi/claim



« Last Edit: April 13, 2018, 04:53:40 PM by abcd567 »