Feeding PlaneFinder
If you wish to feed PlaneFinder, follow the steps below.
PlaneFinder provides live flight tracking data to industries around the world with customised products for aviation, business intelligence and emerging markets alongside world class apps.
The docker image ghcr.io/sdr-enthusiasts/docker-planefinder
contains PlaneFinder's pfclient
feeder software and all of its required prerequisites and libraries. This needs to run in conjunction with ultrafeeder
(or another Beast provider).
Getting a Share Code
Already running pfclient
pfclient
You'll need your share code from your existing feeder.
To get your share code, log into your planefinder.net account, and go to "Your Receivers". Your share code will be listed next to your existing receiver.
You will need to make sure your existing receiver is shutdown prior to continuing.
New to pfclient
pfclient
If you're already running pfclient
and you've followed the steps in the previous command, you can skip this section.
You'll need a share code. In order to obtain a PlaneFinder Share Code, we will start a temporary container running pfclient
, which will run through a configuration wizard and generate a share code.
Run the command:
Once the container has started, you should see a message such as:
At this point, open a web browser and go to http://docker.host.ip.addr:30053
You won't be able to use the URL given in the log output, as the IP address in the log output will show the private, internal IP of the docker container.
In your browser, follow the steps in the configuration wizard. When finished, you'll be given a PlaneFinder Share Code. Save this in safe place.
You can now kill the temporary container by pressing CTRL-C
.
You should now claim your receiver:
Create an account and/or sign in
Go to "Account" > "Manage Receivers"
Click "Add receiver" and enter your share code when prompted
Update .env
file with sharing key
.env
file with sharing keyInside your application directory (/opt/adsb
), edit the .env
file using your favourite text editor. Beginners may find the editor nano
easy to use:
This file holds all of the commonly used variables (such as our latitude, longitude and altitude). We're going to add our pfclient
share code to this file. Add the following line to the file:
Replace
YOURSHARECODE
with the share code that was generated in the previous step.
For example:
Deploying pfclient
container
pfclient
containerOpen the docker-compose.yml
file that was created when deploying ultrafeeder
.
Append the following lines to the end of the file (inside the services:
section):
To explain what's going on in this addition:
We're creating a container called
pfclient
, from the imageghcr.io/sdr-enthusiasts/docker-planefinder:latest
.We're passing several environment variables to the container:
BEASTHOST=ultrafeeder
to inform the feeder to get its ADSB data from the containerultrafeeder
TZ
will use theFEEDER_TZ
variable from your.env
file.LAT
will use theFEEDER_LAT
variable from your.env
file.LONG
will use theFEEDER_LONG
variable from your.env
file.SHARECODE
will use thePLANEFINDER_SHARECODE
variable from your.env
file.
We're using
tmpfs
for volumes that have regular I/O. Any files stored in atmpfs
mount are temporarily stored outside the container's writable layer. This helps to reduce:The size of the container, by not writing changes to the underlying container; and
SD Card or SSD wear
Once the file has been updated, issue the command docker compose up -d
in the application directory to apply the changes and bring up the pfclient
container. You should see the following output:
We can view the logs for the environment with the command docker compose logs
, or continually "tail" them with docker compose logs -f
. At this stage, the logs will be fairly unexciting and look like this:
Once running, you can visit http://docker.host.ip.addr:30053
to access the pfclient
web interface. You can also visit the PlaneFinder website, and go to "Account" > "Manage Receivers" and click your receiver to see your live data and statistics.
Troubleshooting
If you are running a Raspberry Pi 5, then you may see the following messages in your Docker Compose log output:
This is due to an architecture change with the Raspberry Pi 5 and can be worked around by using this Docker image in your docker-compose.yml
file: ghcr.io/sdr-enthusiasts/docker-planefinder:5.0.161_arm64
This is noted in the sample provided above. See here for more information.
Advanced
If you want to look at more options and examples for the pfclient
container, you can find the repository here
Last updated