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

Login with username, password and session length
 


Author Topic: Updated config file?  (Read 21927 times)

0 Members and 2 Guests are viewing this topic.

GlynH

  • Hero Member
  • *****
  • Posts: 612
Updated config file?
« on: May 19, 2021, 08:27:24 PM »
Hi there,

I just updated the Pi that runs rbfeeder, FR24feed, FA & ADSBx and was prompted whether to overwrite my existing config file with the new one from RadarBox.

I chose to keep my existing one as I didn't want to upset a perfectly working system!

Does anybody know what might have changed in the latest config file?

Obviously I have my lat/lon, asl etc modified in mine so there will be those differences but has anything else changed do we know?

Thanks & kind regards,
-=Glyn=-

DZpower

  • New Member
  • *
  • Posts: 29
Re: Updated config file?
« Reply #1 on: May 20, 2021, 12:18:45 AM »
the MLAT has vanished and no longer inside the ini files after the update

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Updated config file?
« Reply #2 on: May 20, 2021, 06:41:18 AM »
Hi GlynH
Anytime you want to check contents of a .deb package, follow this procedure:

STEP-1: Download .deb package
Code: [Select]
$ sudo apt-get download rbfeeder
Get:1 https://apt.rb24.com buster/main armhf rbfeeder armhf 0.4.1-20210414164501 [130 kB]
Fetched 130 kB in 1s (171 kB/s)
W: Download is performed unsandboxed as root as file '/home/pi/rbfeeder_0.4.1-20210414164501_armhf.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Check full name of .deb package downloaded
Code: [Select]
$ ls
rbfeeder_0.4.1-20210414164501_armhf.deb

STEP-2: Create folder humpty-dumpty to hold extracted files from .deb package.
Code: [Select]
$ sudo mkdir humpty-dumpty


STEP-3: Extract files from .deb package into folder humpty-dumpty
Code: [Select]
$ sudo dpkg-deb -xv rbfeeder_0.4.1-20210414164501_armhf.deb  humpty-dumpty

./
./etc/
./etc/rbfeeder.ini
./lib/
./lib/systemd/
./lib/systemd/system/
./lib/systemd/system/rbfeeder.service
./opt/
./opt/radarbox/
./opt/radarbox/specs/
./opt/radarbox/specs/cat21_2.1.json
./opt/radarbox/specs/cat21_2.4.json
./usr/
./usr/bin/
./usr/bin/dump1090-rb
./usr/bin/rbfeeder
./usr/share/
./usr/share/doc/
./usr/share/doc/rbfeeder/
./usr/share/doc/rbfeeder/changelog.Debian.gz
./usr/share/doc/rbfeeder/copyright


Code: [Select]
$ ls humpty-dumpty
etc  lib  opt  usr

$ ls humpty-dumpty/etc
rbfeeder.ini


STEP-4: Open file humpty-dumpty/etc/rbfeeder.ini to see it's contents
Code: [Select]
$ cat humpty-dumpty/etc/rbfeeder.ini

Code: [Select]
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
disable_log=0

[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


« Last Edit: May 20, 2021, 10:39:22 AM by abcd567 »

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Updated config file?
« Reply #3 on: May 20, 2021, 07:26:49 AM »
the MLAT has vanished and no longer inside the ini files after the update

In latest ver (0.4.1-20210414164501):
(1) MLAT is still in rbfeeder.ini file
(2) MLAT has vanished from "http://www.radarbox24.com/stations/EXTRPI000035"

I have saved the old version's .deb package:
rbfeeder_0.3.5-20200727132301_armhf.deb

I will remove new version 0.4.1 and re-install the old version 0.3.5 using the .deb package I have saved.

EDIT:
Had to do following, and MLAT working OK with new version 0.4.1

(1) In rbfeeder.ini under [client] section, added following

lat = xx.xxxx
lon = yy.yyyy
alt = zzz

(in place of xx.xxx, yy.yyy and zzz used actual values)


(2) Replaced RB24 supplied mlat-client by the package built by me and uploaded to Github. After installation, put mlat-client on hold so that any upgrade of rbfeeder wont replace it with RB24 supplied mlat-client.

Code: [Select]
sudo apt-get purge mlat-client

wget https://github.com/abcd567a/mlat-client-package/releases/download/v1/mlat-client_0.2.11_BUSTER_armhf.deb   

sudo dpkg -i mlat-client_0.2.11_BUSTER_armhf.deb 

sudo apt-mark hold mlat-client

sudo reboot   

« Last Edit: May 20, 2021, 10:09:09 AM by abcd567 »

markr468

  • New Member
  • *
  • Posts: 21
Re: Updated config file?
« Reply #4 on: May 20, 2021, 12:19:03 PM »
New version adds some cpu time to my Pi. Before, During, and currently with the feeder stopped. About five percentage points. I do not have MLAT feeding RB24 either before or after the update. I do feed UAT. YMMV.

Log has some entries I have not seen before:

Quote
May 20 10:00:27 piaware rbfeeder[556]: [2021-05-20 10:00:27]  [A0F5E7] P: 48931510511900666699448320.000         vtas: 488.000         vias: 209.000        Alt: 35025         mach: 0.464         VTAS: 488.000
May 20 10:00:30 piaware rbfeeder[556]: [2021-05-20 10:00:30]  [A0F5E7] P: 48931510511900666699448320.000         vtas: 488.000         vias: 209.000        Alt: 35025         mach: 0.464         VTAS: 488.000
May 20 10:00:33 piaware rbfeeder[556]: [2021-05-20 10:00:33]  [A0F5E7] P: 48931510511900666699448320.000         vtas: 488.000         vias: 209.000        Alt: 35025         mach: 0.464         VTAS: 488.000
May 20 10:00:36 piaware rbfeeder[556]: [2021-05-20 10:00:36]  [A0F5E7] P: 48931510511900666699448320.000         vtas: 488.000         vias: 283.000        Alt: 35025         mach: 0.832         VTAS: 488.000

« Last Edit: May 20, 2021, 12:23:05 PM by markr468 »

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34067
Re: Updated config file?
« Reply #5 on: May 20, 2021, 01:14:29 PM »
A0F5E7 is FedEx B767-300ER N161FE

Alan

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34067
Re: Updated config file?
« Reply #6 on: May 20, 2021, 01:17:32 PM »
abcd

For my info, what does your MLAT client do that the Airnav client doesnt?

Alan

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Updated config file?
« Reply #7 on: May 20, 2021, 05:20:20 PM »
abcd

For my info, what does your MLAT client do that the Airnav client doesnt?

Alan


The command "sudo apt-get install mlat-client" installs mlat-client from RB24 repisitory.

The RB24 supplied mlat-client gets started successfully when the RPi is rebooted.

However if rbfeeder is restarted by command "sudo systemctl restart rbfeeder", the RB24 supplied mlat-client fails to restart.

The mlat-client, which I have built from generic source-code & uploaded to my Github site, starts successfully in both cases, i.e. when Pi is rebooted, as well as when command "sudo systemctl restart rbfeeder" is issued.


EDIT
I just now noted that in  latest version "rbfeeder_0.4.1", the commands "sudo sytemctl restart rbfeeder" and "sudo systemctl stop rbfeeder" fail (get stuck).

Possibly it has been done intentionally due to the bug I have mentioned above. Now I can restart rbfeeder only by rebooting the Pi


.
« Last Edit: May 20, 2021, 05:46:19 PM by abcd567 »

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34067
Re: Updated config file?
« Reply #8 on: May 20, 2021, 05:55:10 PM »
Many thanks abcd

Alan

flygpagen

  • New Member
  • *
  • Posts: 25
Re: Updated config file?
« Reply #9 on: May 20, 2021, 06:42:28 PM »
Updated and opted to use the new config. Also noted that a reboot was necessary. Service rbfeeder is running but site says station (EXTRPI001818) is offline.

rbfeeder.ini looks like this;
Code: [Select]
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
disable_log=0

key= (removed)

[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

Used to have coordinates but have not added them yet.

markr468

  • New Member
  • *
  • Posts: 21
Re: Updated config file?
« Reply #10 on: May 20, 2021, 08:33:02 PM »
For me, issuing the "sudo systemctl stop rbfeeder" command gets stuck as well. If i wait 90 seconds (yes i tried shorter periods!!) and issue CTL+C, it will have terminated the rbfeeder. The restart command for me at least, works almost instantaneously after stopping. But only stops upon quitting the stop command with CTL+C, at least per the log.

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34067
Re: Updated config file?
« Reply #11 on: May 20, 2021, 08:48:54 PM »
Flygpagen, no aircraft showing from your station and yes showing as offline so something not right

Alan

flygpagen

  • New Member
  • *
  • Posts: 25
Re: Updated config file?
« Reply #12 on: May 20, 2021, 09:47:32 PM »
Maybe rbfeeder dont like dump1090-mutability... ;)

Service is running, log looks like below. I did nothing but update with apt and rebooted. Beats me.
Code: [Select]
May 20 23:39:57 MooPII rbfeeder[784]: [2021-05-20 23:39:57]  [C0103E] P: 56796381304819139433463808.000         vtas: 476.000         vias: 301.000        Alt
May 20 23:39:57 MooPII rbfeeder[784]: [2021-05-20 23:39:57]  [440760] P: 78119655309150737399808000.000         vtas: 374.000         vias: 261.000        Alt
May 20 23:39:57 MooPII rbfeeder[784]: [2021-05-20 23:39:57]  [4AC9F2] P: 19652.652         vtas: 434.000         vias: 226.000        Alt: 39025         mach:

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 34067
Re: Updated config file?
« Reply #13 on: May 21, 2021, 09:06:29 AM »
It will be something simple flygpagen

Alan

abcd567

  • Hero Member
  • *****
  • Posts: 890
  • CYYZ - Toronto
Re: Updated config file?
« Reply #14 on: May 21, 2021, 10:50:00 AM »

Using Decoder:  dump1090-fa

Code: [Select]
pi@raspberrypi:~$ sudo systemctl status rbfeeder

● rbfeeder.service - RBFeeder Service
   Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-05-20 17:43:45 EDT; 12h ago
 Main PID: 1400 (rbfeeder)
    Tasks: 11 (limit: 2065)
   Memory: 16.3M
   CGroup: /system.slice/rbfeeder.service
           ├─1400 /usr/bin/rbfeeder
           └─1460 /usr/bin/python3.7 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.co

May 21 06:41:40 orangepipc rbfeeder[1400]: [2021-05-21 06:41:40]  [A7EF40] P: 198155275327925403940552704.000         vtas: 168.000
May 21 06:41:40 orangepipc rbfeeder[1400]: [2021-05-21 06:41:40]  [C023C5] P: 136818384766687284907999232.000         vtas: 330.000
May 21 06:41:40 orangepipc rbfeeder[1400]: [2021-05-21 06:41:40]  [A07B8F] P: 20645.445         vtas: 452.000         vias: 251.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [A33AA7] P: 119317838760122554177814528.000         vtas: 344.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [A837A5] P: 51367403066834012990341120.000         vtas: 446.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [A46304] P: 21662.338         vtas: 456.000         vias: 257.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [C043B7] P: 139110770876099207742095360.000         vtas: 300.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [A7EF40] P: 198336145653568126094147584.000         vtas: 166.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [C023C5] P: 136818384766687284907999232.000         vtas: 330.000
May 21 06:41:43 orangepipc rbfeeder[1400]: [2021-05-21 06:41:43]  [A07B8F] P: 20670.275         vtas: 452.000         vias: 251.000



Code: [Select]
pi@raspberrypi:~$ journalctl -u rbfeeder -n 20

-- Logs begin at Fri 2021-05-21 03:25:01 EDT, end at Fri 2021-05-21 06:47:01 EDT. --
May 21 06:46:46 orangepipc rbfeeder[1400]: [2021-05-21 06:46:46]  [C043B7] P: 192968180021606793992994816.000         vtas: 224.000         vias: 210.000
May 21 06:46:49 orangepipc rbfeeder[1400]: [2021-05-21 06:46:49]  [C05272] P: 16233.758         vtas: 438.000         vias: 214.000        Alt: 43000
May 21 06:46:49 orangepipc rbfeeder[1400]: [2021-05-21 06:46:49]  [A924D9] P: 46702087751698332992405504.000         vtas: 450.000         vias: 257.000
May 21 06:46:49 orangepipc rbfeeder[1400]: [2021-05-21 06:46:49]  [C043B7] P: 192968180021606793992994816.000         vtas: 220.000         vias: 207.000
May 21 06:46:52 orangepipc rbfeeder[1400]: [2021-05-21 06:46:52]  [C05272] P: 16233.758         vtas: 438.000         vias: 214.000        Alt: 43000
May 21 06:46:52 orangepipc rbfeeder[1400]: [2021-05-21 06:46:52]  [A09322] P: 51367403066834012990341120.000         vtas: 438.000         vias: 259.000
May 21 06:46:52 orangepipc rbfeeder[1400]: [2021-05-21 06:46:52]  [A924D9] P: 46702087751698332992405504.000         vtas: 450.000         vias: 257.000
May 21 06:46:52 orangepipc rbfeeder[1400]: [2021-05-21 06:46:52]  [C043B7] P: 193145194977738110850301952.000         vtas: 220.000         vias: 204.000
May 21 06:46:55 orangepipc rbfeeder[1400]: [2021-05-21 06:46:55]  [C05272] P: 16233.758         vtas: 438.000         vias: 214.000        Alt: 43000
May 21 06:46:55 orangepipc rbfeeder[1400]: [2021-05-21 06:46:55]  [A09322] P: 51367403066834012990341120.000         vtas: 438.000         vias: 259.000
May 21 06:46:55 orangepipc rbfeeder[1400]: [2021-05-21 06:46:55]  [A924D9] P: 46702087751698332992405504.000         vtas: 450.000         vias: 257.000
May 21 06:46:55 orangepipc rbfeeder[1400]: [2021-05-21 06:46:55]  [C043B7] P: 193145194977738110850301952.000         vtas: 210.000         vias: 201.000
May 21 06:46:58 orangepipc rbfeeder[1400]: [2021-05-21 06:46:58]  [C05272] P: 16233.758         vtas: 438.000         vias: 214.000        Alt: 43000
May 21 06:46:58 orangepipc rbfeeder[1400]: [2021-05-21 06:46:58]  [A09322] P: 51367403066834012990341120.000         vtas: 438.000         vias: 259.000
May 21 06:46:58 orangepipc rbfeeder[1400]: [2021-05-21 06:46:58]  [A924D9] P: 46702087751698332992405504.000         vtas: 450.000         vias: 257.000
May 21 06:46:58 orangepipc rbfeeder[1400]: [2021-05-21 06:46:58]  [C043B7] P: 193145194977738110850301952.000         vtas: 210.000         vias: 199.000
May 21 06:47:01 orangepipc rbfeeder[1400]: [2021-05-21 06:47:01]  [C05272] P: 16233.758         vtas: 438.000         vias: 214.000        Alt: 43000
May 21 06:47:01 orangepipc rbfeeder[1400]: [2021-05-21 06:47:01]  [A09322] P: 51367403066834012990341120.000         vtas: 438.000         vias: 259.000
May 21 06:47:01 orangepipc rbfeeder[1400]: [2021-05-21 06:47:01]  [A924D9] P: 46702087751698332992405504.000         vtas: 450.000         vias: 257.000
May 21 06:47:01 orangepipc rbfeeder[1400]: [2021-05-21 06:47:01]  [C043B7] P: 193145194977738110850301952.000         vtas: 202.000         vias: 194.000