Feed ADSB data from adsb.one into your TAK server
(C) 2023 Stefan Gofferje
Licensed under the GNU General Public License V3 or later.
The following values are supported and can be provided either as environment variables or through an .env-file.
| Variable | Default | Purpose |
|---|---|---|
| REMOTE_SERVER_URL | empty | (mandatory) TAK server full URL, e.g. ssl://takserver:8089 |
| REMOTE_SSL_USER_CERTIFICATE | empty | (mandatory for ssl) User certificate in PEM format |
| REMOTE_SSL_USER_KEY | empty | (mandatory for ssl) User certificate key file (xxx.key) |
| UPDATE_INTERVAL | 2 | (optional) Update intervall in seconds (min. 2) |
| COTDB | empty | (optional) Database of known aircraft COTs |
| COUNTRIESDB | empty | (optional) Country classifications |
| LOGCOT | false | (optional) Log created CoTs to the console |
| UUID | empty | (optional) Set feeder UID - if not set, the feeder will create one |
| GETMIL | false | (optional) Get all military aircraft |
| LAT | 0 | (mandatory if not getting military only) Point latitude |
| LON | 0 | (mandatory if not getting military only) Point longitude |
| RANGE | 250 | (mandatory if not getting military only) Range in nm (max. 250) |
| CALLSIGN | adsb.one | (optional) Callsign for heartbeat |
| MYCOT | a-f-G-U | (optional) CoT type for heartbeat |
Note: At the moment, only SSL TCP connections are supported.
These are the server-issued certificate and key files. Before using, the password needs to be removed from the key file with openssl rsa -in cert.key -out cert-nopw.key. OpenSSL will ask for the key password which usually is "atakatak".
First, get your certificate and key and copy them to a suitable folder which needs to be added as a volume to the container.
The image is built for AMD64 and ARM64 and pushed to ghcr.io: ghcr.io/sgofferj/tak-feeder-adsb-one:latest
First, rename .env.example to .env and edit according to your needs
Create and start the container:
docker run -d --env-file .env -v <path-to-data-directory>:/data:ro --name tak-feeder-adsb-one --restart always ghcr.io/sgofferj/tak-feeder-adsb-one:latest
Here is an example for a docker-compose.yml file:
version: '2.0'
services:
adsbone:
image: ghcr.io/sgofferj/tak-feeder-adsb-one:latest
restart: always
networks:
- default
volumes:
- <path to data-directory>:/data:ro
environment:
- REMOTE_SERVER_URL=ssl://tak-server:8089
- REMOTE_SSL_USER_CERTIFICATE=/data/cert.pem
- REMOTE_SSL_USER_KEY=/data/key.pem
- COTDB=/data/cotdb_indexed.json
- COUNTRIESDB=/data/countries.json
- UPDATE_INTERVAL=2
- LOGCOT=false
- CALLSIGN=adsb.one
- MYCOT=a-f-G-U
- GETMIL=false
- LAT=60.0
- LON=24.0
- CALLSIGN=adsb.one
- MYCOT=a-f-G-U
networks:
default: