This repository contains Planefence, which is an add-on to readsb, dump1090, or dump1090-fa (referred to herein as your Feeder Station.
Planefence will create a log of aircraft heard by your Feeder Station that are within a "fence", that is, less than a certain distance and lower than a certain altitude from your station. This log is displayed on a website and is also made available in daily CSV files. Furthermore, Planefence can send a Tweet for every plane in the fence, and (coming soon!) will be able to collect noise figures to see how loud the aircraft are that fly above your Feeder Station.
Planefence is deployed as a Docker container and is pre-built for the following architectures:
The Docker container can be accessed on Dockerhub (kx1t/planefence) and can be pulled directy using this Docker command: docker pull kx1t/planefence.
Here are some assumptions or prerequisites:
dump1090 family of ADS-B software (for example, readsb, tar1090, dump1090, or dump1090-fa), how to deploy it, and the hardware needed. Ideally, you have your ADS-B station already up and running.docker-compose. This README has been written assuming docker-compose. If you don't have it, feel free to apt-get install it. It should be easy to convert the docker-compose.yml instructions to a command-line docker run string, but you are on your own to do this.Note - this guide assumes that /home/pi is your home directory. If it is not (for example, Ubuntu builds use /home/ubuntu as their default account), please change all mentions of /home/pi to the applicable home directory path.
There must already be an instance of tar1090, dump1090[-fa], or readsb connected to a SDR somewhere in reach of your Planefence machine.
docker-compose.yml.sudo mkdir -p /opt/planefence && sudo chmod a+rwx /opt/planefence && cd /opt/planefence . Then add a new docker-compose.yml there.curl -s https://raw.githubusercontent.com/kx1t/docker-planefence/docker-compose.yml > docker-compose.yml
In the docker-compose.yml file, you should configure the following:
image: kx1t/planefence:devTZ=America/New_York to whatever is appropriate for you. Note that this variable is case sensitive/home/pi/.planefence -> /home/ubuntu/planefence if required). However, if you have to, you can map the HTML directory to some other location. ONLY change what is to the LEFT of the colon.docker-compose up -d). The first time you do this, it can take a minute or so.docker logs -f planefence). At first start-up, it should be complaining about not being configure. That is expected behavior.planefence.config not being available, press CTRL-C to get the command prompt.cp ~/.planefence/planefence.config-RENAME-and-EDIT-me ~/.planefence/planefence.config
.env file, you can use this file as a basis for your planefence.config file. You can copy it with sudo cp /opt/planefence/.env ~/.planefence/planefence.config. However, there are many new features and setting described in the planefence.config-RENAME-and-EDIT-me file. You should take notice and copy these in! There are some items (like the setup for the different feeders) that are not needed by planefence.config..env is OBSOLETE and support for this will be withdrawn in the next version of PlaneFencesudo nano ~/.planefence/planefence.config Go through all parameters - their function is explained in this file. Edit to your liking and save/exit using ctrl-x. THIS IS THE MOST IMPORTANT AND MANDATORY CONFIG FILE TO EDIT !!!sudo nano ~/.planefence/plane-ignore.txt. In this file, you can add things that PlaneFence will ignore. If there are specific planes that fly too often over your home, add them here. Use 1 line per entry, and the entry can be a ICAO, flight number, etc. You can even use regular expressions if you want. Be careful -- we use this file as an input to a "grep" filter. If you put something that is broad (.* for example), then ALL PLANES will be filtered out.sudo nano ~/.planefence/airlinecodes.txt. This file maps the first 3 characters of the flight number to the names of the airlines. We scraped this list from a Wikipedia page, and it is by no means complete. Feel free to add more to them -- please add an issue at https://github.com/kx1t/planefence/issues so we can add your changes to the default file.sudo nano ~/.planefence/.twurlrc. You can add your back-up TWURLRC file here, if you want.sudo nano ~/.planefence/plane-alert-db.txt. This is the list of tracking aircraft of Plane-Alert. It is prefilled with the planes of a number of "interesting" political players. Feel free to add your own, delete what you don't want to see, etc. Just follow the same format.docker-compose.yml file, or run it on a different machine on the same subnet. Instructions are here.~/.planefence/pf_background.jpg for Planefence and ~/.planefence/pa_background.jpg for Plane-Alert. (You may have to restart the container or do touch ~/.planefence/planefence.config in order for these backgrounds to become effective.)pf-screenshot section to your Docker-compose.yml file as per the example in this repo's Docker-compose.yml file. Note - to simplify configuration, Planefence assumes that the hostname of the screenshotting image is called pf-screenshot and that it's reachable under that name from the Planefence container stack.PF_OPENAIP_LAYER=ON in ~/.planefence/planefence.config~/.planefence/planefence.config will be picked up automaticallypushd /opt/planefence && docker stop planefence && docker-compose up -d && popddocker-compose.yml? Did you edit the planefence.config file?docker logs -f planefence. Some "complaining" about lost connections or files not found is normal, and will correct itself after a few minutes of operation. The logs will be quite explicit if it wants you to take actionPF_SOCK30003HOST in ~/.planefence/planefence.config? This can be either an IP address, or an external hostname, or the name of another container in the same stack (in which case you use your machine's IP address).dump1090[-fa]/readsb/tar1090: add command line option --net-sbs-port 30003readsb-protobuf:
add to the environment: section of your docker-compose.yml file: - READSB_NET_SBS_OUTPUT_PORT=30003
- READSB_EXTRA_ARGS=--net-beast-reduce-interval 2 --net-sbs-reduce
- 30003:30003 to the ports: sectionThat's all!

Content type
Image
Digest
sha256:267fd8e17…
Size
131 MB
Last updated
about 3 years ago
docker pull kx1t/planefence