This repository contains scripts to capture and merge data from multiple ADS-B basestations into a single file on a daily basis.
- Dockerfile: Dockerfile for building a Docker image with the necessary tools and scripts.
- docker-compose.yml: Docker Compose configuration for easy deployment.
- .env.sample: Sample environment file showing required variables.
- scripts/
- capture.sh: Thread invoker for each host
- thread.sh: Responsible for call and maintain netcat active and grabbing data
- cronjob.sh: Cron job script to backup the merged data and clear the data file daily.
The main purpose of this project is to automate the data collection process and merge ADS-B data from multiple basestations into a single file. By consolidating the data, it becomes easier to analyze and extract insights from a broader range of aircraft information.
-
Copy the sample environment file and configure your hosts:
cp .env.sample .env
-
Edit the
.envfile and set your ADS-B basestation IP addresses:HOSTS=192.168.1.100,192.168.1.101,192.168.1.102 -
Start the service using Docker Compose:
docker-compose up -d
- Build the Docker image using the provided
Dockerfile. - Set the environment variable
HOSTSto a comma-separated list of ADS-B basestation IP addresses or hostnames. - Start the Docker container with the built image.
Be aware that must be open and available at port 30003 on each station to work.
Here's an example command to run the Docker container:
docker build -t 1090merge .
docker run -d -e HOSTS="192.168.1.100,192.168.1.101,192.168.1.102" 1090mergeHOSTS: Comma-separated list of ADS-B basestation IP addresses or hostnames (e.g., "192.168.1.100,192.168.1.101,192.168.1.102")