Adding 2nd instance of FlightRadar24 feeder
This assumes that you have already installed FR24 feeder, and now going to add it’s 2nd instance to use data from 2nd instance of dump1090-fa/2nd dongle.
.
STEP-1: Prepare config file “fr24feed2.ini”
sudo touch /etc/fr24feed2.ini
sudo chmod a+rw /etc/fr24feed2.ini
sudo nano /etc/fr24feed2.ini
.
Copy-paste following into /etc/fr24feed2.ini
NOTE: Replace xxxxxxxxxxxxxxxx by your actual feeder key
receiver="beast-tcp"
fr24key="xxxxxxxxxxxxxxxx"
host="127.0.0.1:31005"
bs="no"
raw="no"
logmode="1"
logpath="/var/log/fr24feed2"
mpx="no"
mlat="yes"
mlat-without-gps="yes"
use-http="yes"
http-timeout="20"
.
STEP-2: Prepare service file “fr24feed2.service”
sudo nano /lib/systemd/system/fr24feed2.service
.
Copy-paste following into /lib/systemd/system/fr24feed2.service
[Unit]
Description=Flightradar24 Feeder
After=network-online.target
[Service]
Type=simple
Restart=always
LimitCORE=infinity
RuntimeDirectory=fr24feed2
RuntimeDirectoryMode=0755
ExecStartPre=/bin/mkdir -p /var/log/fr24feed2
ExecStartPre=/bin/chown fr24 /var/log/fr24feed2
ExecStart=/usr/bin/fr24feed --config-file=/etc/fr24feed2.ini
User=fr24
PermissionsStartOnly=true
StandardOutput=null
[Install]
WantedBy=multi-user.target
.
STEP-3: Enable service, and start fr24feed2
sudo systemctl enable fr24feed2
sudo systemctl restart fr24feed2
.
STEP-4: Check status
pi@raspberrypi:~ $ sudo systemctl status fr24feed2
● fr24feed2.service - Flightradar24 Feeder 2
Loaded: loaded (/lib/systemd/system/fr24feed2.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-06-24 10:37:03 EDT; 44s ago
Process: 4329 ExecStartPre=/bin/chown fr24 /var/log/fr24feed2 (code=exited, status=0/SUCCESS)
Process: 4323 ExecStartPre=/bin/mkdir -p /var/log/fr24feed2 (code=exited, status=0/SUCCESS)
Main PID: 4332 (fr24feed)
CGroup: /system.slice/fr24feed2.service
└─4332 /usr/bin/fr24feed --config-file=/etc/fr24feed2.ini
Jun 24 10:37:03 raspberrypi systemd[1]: Starting Flightradar24 Feeder 2...
Jun 24 10:37:03 raspberrypi systemd[1]: Started Flightradar24 Feeder 2.
.
STEP-5: Check logs
pi@raspberrypi:~ $ cat /var/log/fr24feed2/fr24feed.log
2019-06-24 10:37:12 | [feed][n]CYYZ52@185.218.24.22:8099/UDP
2019-06-24 10:37:12 | [feed][n]connecting
2019-06-24 10:37:12 | info | Stopping ReceiverACSender threads for feed
2019-06-24 10:37:12 | info | Configured ReceiverACSender: 185.218.24.22:8099,185.218.24.23:8099,185.218.24.24:8099, feed: CYYZ52, send_interval: 5s, max age: 15s, send metadata: true, mode: 1, filtering: true
2019-06-24 10:37:12 | info | Network thread connecting to 185.218.24.22:8099 for feed CYYZ52
2019-06-24 10:37:12 | [feed][n]connected via UDP (fd 13)
2019-06-24 10:37:12 | [feed][i]Feed connected
2019-06-24 10:37:12 | [feed][n]working
2019-06-24 10:37:12 | [feed][i]sent 1,0 AC
2019-06-24 10:37:12 | [mlat][i]MLAT configuration received, service ENABLED
2019-06-24 10:37:12 | [mlat][i]Starting MLAT with preconfigured position: 43.58,-79.62,450.0
2019-06-24 10:37:12 | [mlat][i]MLAT bandwidth reduction active, level 1
2019-06-24 10:37:12 | [mlat][i]Configuring UDP connection udp://usa-2.fr24.com:19788
2019-06-24 10:37:17 | [feed][i]sent 35,0 AC
2019-06-24 10:37:22 | [mlat][i]Registering MLAT station
2019-06-24 10:37:22 | [mlat][i]Registering MLAT station: SUCCESS
2019-06-24 10:37:23 | [feed][i]sent 31,0 AC
2019-06-24 10:37:24 | [mlat][i]Received ADS-B time references AC:
2019-06-24 10:37:24 | [mlat][i] 71BE34
2019-06-24 10:37:24 | [mlat][i] A1ED5F
2019-06-24 10:37:24 | [mlat][i] A242D5
2019-06-24 10:37:24 | [mlat][i] A3CC82
2019-06-24 10:37:24 | [mlat][i] A438F1
2019-06-24 10:37:24 | [mlat][i] A65092
2019-06-24 10:37:24 | [mlat][i] A6F5D7
2019-06-24 10:37:24 | [mlat][i] A8D5DB
2019-06-24 10:37:24 | [mlat][i] AB4C76
2019-06-24 10:37:24 | [mlat][i] C05EFD
2019-06-24 10:37:24 | [mlat][i] C06361
2019-06-24 10:37:24 | [mlat][i] C06363
2019-06-24 10:37:24 | [mlat][i] C06878
2019-06-24 10:37:24 | [mlat][i] C06DD3
2019-06-24 10:37:24 | [mlat][i] C07F32
2019-06-24 10:37:24 | [mlat][i] C084BE
2019-06-24 10:37:24 | [mlat][i]Pinging the server
2019-06-24 10:37:24 | [mlat][i]Stats 26270/26270
2019-06-24 10:37:28 | [feed][i]sent 37,0 AC
2019-06-24 10:37:33 | [feed][i]sent 34,0 AC