@Mancpaul
It is not difficult to start from scratch and make a fresh install of Raspbian & all feeders. Use a spare microSD card to make the fresh install, leaving your existing installation intact.
Plesse follow the guide below:
1 - Download and write Raspberry Pi OS (32-bit) Lite image on a microSD card.
https://downloads.raspberrypi.org/raspios_lite_armhf_latest
2 - Enable SSH & WiFi
While the microSD card is still in the card reader of your Laptop/Desktop, in File Explorer (Windows) or Finder (Mac) click on drive letter of the microSD card (labelled boot) to open it. It will open folder /boot
which has many files & few folders.
2.1 - SSH
In the folder /boot
, create a new text file and name it ssh
For further details, please see "For Beginners - How-to SSH to RPi - Setup Putty in Windows”
For Raspberry Pi OS
username = pi
default password = raspberry
.
2.2 - WiFi (only if required)
Raspbian Image - Howto Enable & Configure WiFi Before First Boot
3 - Slip microSD card in RPi and Power up.
4 - Install piaware and dump1090-fa
wget https://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_4.0_all.deb
sudo dpkg -i piaware-repository_4.0_all.deb
sudo apt-get update
sudo apt-get install piaware
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes
sudo apt-get install dump1090-fa
sudo reboot
5 - Configure Station ID
Alternative-1:
Get a brand new station number & feeder id
Log-in to your Flightaware account, go to this page and follow instructions to claim a new station https://flightaware.com/adsb/piaware/claim
Alternative-2:
Configure an Existing Station
(a) - Find existing station’s feeder-id (Unique Identifier)
Log-in to your Flightaware account, go to “My ADSB” / stats page
flightaware.com/adsb/stats/user/ ,
and look for 32-digit Unique Identifier: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (shown inside red rectangle in the screenshot below)
.
(b) - SSH and configure station id:
sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# Replace xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# by your actual feeder-id
sudo systemctl restart piaware
5- Install FR24 feeder
5.1 - Retrieve your existing fr24 key
Go to page https://www.flightradar24.com
and login to your account
After login, go to your stats page. On stats page you will find your fr24 key. Copy the key and paste in Notepad and save the Notepad.
See screenshots below.
Screenshot 1 of 2
Screenshot 2 of 2
5.2 - Install fr24feed
Give following command
sudo bash -c "$(wget -O - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"
The above command will run installation for some time, then automatically start signup process. The signup process will halt and ask for email address.
Case 1:
If you do not have a fr24 sharing key, or want a brand new key, continue inputting your email and other details. A new key will be generated and saved in file /etc/fr24feed.ini
. FR24 will also send this key to you by email for your records.
Case 2:
If you already have a key, then do not enter any details. Instead break the siugnup process by pressing Ctrl and C keys together. This will result in display of ^C
and command prompt "pi@piaware:~ $"
. Please see screenshot below.
5.3 - Configure FR24
Give following command
sudo nano /etc/fr24feed.ini
Above command will open the config file. It will have following text
bs=yes
raw=yes
mlat="yes"
mlat-without-gps="yes"
(5.3.1) Delete all above lines by:
- bring cursor to the top line
- keep pressed Ctrl key and repeatedly press K key till the file becomes blank.
(5.3.2) Copy paste following in this file (replace "xxxxxxxxxxxxxxx"
by the key you have copied from your stats page).
receiver="beast-tcp"
fr24key="xxxxxxxxxxxxxxx"
host="127.0.0.1:30005"
bs="no"
raw="no"
logmode="1"
logpath="/var/log/fr24feed"
mlat="yes"
mlat-without-gps="yes"
(5.3.3) Save file (Ctrl+o) and Close (Ctrl+x).
(5.3.4) Restart FR24 feeder
sudo systemctl restart fr24feed
(5.3.5) Check status:
fr24feed-status
[ ok ] FR24 Feeder/Decoder Process: running.
[ ok ] FR24 Stats Timestamp: 2020-03-14 06:15:24.
[ ok ] FR24 Link: connected [UDP].
[ ok ] FR24 Radar: T-CYYZ9.
[ ok ] FR24 Tracked AC: 1.
[ ok ] Receiver: connected (4 MSGS/0 SYNC).
[ ok ] FR24 MLAT: ok [UDP].
[ ok ] FR24 MLAT AC seen: 1.
(5.3.6) Check status in browser on following address:
ip-of-pi:8754
NOTE
If you want a new key at any time after installation, you can signup again by following command. Complete signup and obtain a new key, which will automatically be saved in config file /etc/fr24feed.ini
as well as sent to you by email.
sudo fr24feed --signup
CAUTION:
Never use FR24 setting receiver="dvbt"
.
This setting will install dump1090-mutability ver 1.14, which will conflict/compete for dongle with dump1090-fa, and result in a mess
6 - Install Planefinder feeder
6.1 - Issue following commands
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb
6.2 To recover Planefinder sharecode from existing microSD card
(This step to be done before shutting down Pi and removing/reimaging existing microSD card)
cat /etc/pfclient-config.json
Above command will output following long line of code. The sharecode is the last item in this line. Copy-pate it in a text file and save the file
{“tcp_address”:“127.0.0.1”,“tcp_port”:“30005”,“select_timeout”:“10”,“data_upload_interval”:“10”,“connection_type”:“1”,“aircraft_timeout”:“30”,“data_format”:“1”,“latitude”:“xx.xxxx”,“longitude”:“yy.yyyy”,“sharecode”:“zzzzzzzzzzzzz”}
6.3 - Go to page IP-of-PI:30053 to complete configuration
7- Install RadarBox24 feeder
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"
sudo rbfeeder --setkey xxxxxxxxxx --no-start
## Replace xxxxx by your actual key
## Press Ctrl+C to break log output.
sudo systemctl restart rbfeeder
8 - Graphs by Wiedehopf
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"