Part 8 of TAK: From Two Phones to a Global Platform
Beyond People: Aircraft, Vessels and a Tractor on the Map
In the third article, a short Python script put a truck on the map. It shouted into the multicast group, so only devices on the same network saw it. Since then, every icon on our server has been a person.
This article puts other things on the map, through TAK Server: aircraft from ADS-B, vessels from AIS, and a tractor with a GPS tracker that reports over MQTT. Each feed is a small adapter with its own certificate. The walkthrough focuses on identity, time and visibility: which UID a track gets, how long it stays on the map, and who should see it at all.
What you’ll need
The setup from the previous articles, with TAK Server running and at least one client connected. Your computer also needs internet access for the aircraft and vessel feeds. This article adds the integrations/feeds folder, so update your copy first:
cd tak-stack
git stash
git pull
git stash pop
How a feed reaches TAK Server
Our server has one input, which devices have used since the fifth article:
<input _name="stdssl" protocol="tls" port="8089" coreVersion="2"/>
A feed connects to the same port, the same way. It opens a TLS connection with a client certificate, and sends CoT events down it. TAK Server treats it like any other client: it checks the certificate, puts the feed in its groups, and passes what it sends to everyone who shares a group with it. It also sends the feed traffic available through its groups, so our adapters read that and throw it away.
We use the certificate-authenticated TLS input here. Encryption protects the connection, certificate authentication identifies the feed, and group assignments control which clients receive its events.
Each feed gets its own certificate, made in advance with CLIENT_CERTS from the fifth article. That makes each feed its own client: it shows up on its own in the connected clients, you can put it in groups, and you can revoke it without touching the others.
Every adapter does the same four things:
- Fetch the latest data, by polling an API or listening for messages.
- Turn each record into a CoT event.
- Send the events to TAK Server.
- Repeat. If the connection drops, reconnect and send again.
The shared parts live in takfeed.py. It builds events and keeps the TLS connection open, using only Python’s standard library. Each feed adds one short file for its data source.
Start the feeds
First, make a certificate for each feed. In compose/takserver/config/takserver.env, add these names to CLIENT_CERTS, preserving any existing entries:
CLIENT_CERTS=feed-adsb feed-ais feed-tracker
Article 7 put the four users in blue. Add the feeds to that group too, preserving any other assignments in your configuration:
USER_GROUPS=alpha-1:blue bravo-1:blue charlie-1:blue delta-1:blue feed-adsb:blue feed-ais:blue feed-tracker:blue
Then run docker compose up -d in compose/takserver. TAK Server makes the three certificates on its next start. Clients and feeds need a shared group for the tracks to reach their maps.
Now start the feeds:
cd tak-stack/integrations/feeds
./setup.sh
docker compose up -d --build
setup.sh copies each feed’s certificate and key, and our root CA, out of TAK Server into certs/. The keys stay encrypted, and setup.sh puts their password, CLIENT_CERT_PASS, in .env. Both certs/ and .env stay out of Git.
Watch the logs for connections and feed updates. Output from testing looked like this:
docker compose logs -f
adsb-1 | adsb INFO Sent 25 aircraft
ais-1 | takfeed INFO Connected to takserver:8089
ais-1 | ais INFO Loaded names for 779 vessels
ais-1 | ais INFO Sent 596 vessels
tracker-1 | mqtt INFO farm/tractor-1 at 51.03027, -113.75000
TAK Server’s list of connected clients names the three feeds by their certificates: feed-adsb, feed-ais and feed-tracker.
Aircraft, from ADS-B
Many aircraft broadcast their position over ADS-B, and networks of volunteers receive and share it. Our adsb feed polls adsb.lol, which needs no API key and publishes its data under the ODbL 1.0. Every 15 seconds, it asks for aircraft within 40 nautical miles of Calgary’s airport. In my tests, that returned between 17 and 26 aircraft.
Each aircraft becomes one event:
uid = f"ICAO-{ac['hex'].lower()}"
callsign = (ac.get("flight") or "").strip() or ac.get("r") or ac["hex"].upper()
cot_type = "a-n-A-C-H" if ac.get("category") == "A7" else "a-n-A-C-F"
The adapter builds the UID from the aircraft’s reported ICAO address, rather than its flight number. The flight number would be a poor UID: it changes between flights, and many aircraft don’t broadcast one. It makes a good callsign instead, with the registration as a fallback. The type is a neutral civil aircraft: a helicopter if ADS-B says it’s a rotorcraft, otherwise fixed-wing. The aircraft type and registration go in the remarks, along with the data source, as the licence asks.
On a device, each aircraft is a track you can open:

ATAK shows the height in feet above sea level. The feed sends height above the ellipsoid, as CoT expects, and ATAK converts it. In a browser client, the same feed looks like this:

Vessels, from AIS
Ships broadcast their position over AIS. Finland’s traffic agency, Fintraffic, publishes the AIS reports from Finnish waters through its Digitraffic service, with no API key, under CC 4.0 BY. Norway’s coastal administration also publishes an open AIS stream, but it didn’t respond from my network when I tested.
Digitraffic asks clients to identify themselves with a Digitraffic-User header, and it requires compressed responses: a request without Accept-Encoding: gzip got 406 in my tests. It caches responses for about a minute, so our ais feed polls once a minute. Each poll sent between 592 and 600 vessels.
Vessels use the same pattern as aircraft. The UID is MMSI- and the vessel’s MMSI, its radio identity. The type is a-n-S, a neutral vessel on the sea surface. The callsign is the vessel’s name, which comes from a separate Digitraffic list that the feed loads once an hour:

A tractor, over MQTT
Many GPS trackers, and the gateways that collect from them, publish positions to an MQTT broker. Our tracker feed subscribes to a broker and turns location messages into CoT. It understands OwnTracks’ JSON format, which the OwnTracks app publishes, on topics like owntracks/<user>/<device>.
We don’t have a tractor, so the tractor service pretends to be its tracker. It works a field east of Calgary, up one row and down the next, and reports every 10 seconds:
{"_type": "location", "tid": "T1", "tst": 1793926667, "lat": 51.030269, "lon": -113.75,
"acc": 5, "cog": 0, "vel": 11, "batt": 99}
The feed maps those fields onto CoT. acc becomes the circular error, vel in kilometres per hour becomes speed in metres per second, and the battery level goes in the remarks. The type is a-f-G-E-V-C, a friendly civilian vehicle, and ATAK draws it as a CIV symbol:

To add a real tracker, publish to the broker. You can try it from the command line:
docker compose exec mosquitto mosquitto_pub -t owntracks/farm/quad-1 \
-m '{"_type":"location","lat":51.04,"lon":-113.74,"tst":'"$(date +%s)"',"batt":80}'
QUAD-1 appears on the map. The broker in this setup accepts anyone who can reach it, and it’s only reachable from this computer. Before connecting real trackers over a network, add passwords and TLS to it.
Time and stale
Every event says when its position was true, in time and start, and when to stop trusting it, in stale. A feed has to choose both, and the choices behave differently at volume.
Base stale on when the position was observed. A moored vessel reports every few minutes, so a Digitraffic response can include reports that are several minutes old. Our ais feed sets the event time to the vessel’s own report time, and stale to 15 minutes after that. TAK Server 5.8 kept our stale, but replaced time and start with the moment it received the event. A vessel that reported at 00:55:52 was stored like this:
time='2026-11-06T00:58:37.284Z' start='2026-11-06T00:58:37.284Z' stale='2026-11-06T01:10:52.766Z'
If the feed had set stale to 15 minutes after sending, an old report would stay on the map for longer than it deserves.
Stale doesn’t mean gone. I stopped the adsb feed and watched a device. As each aircraft reached its stale time, a minute after its last position, ATAK dimmed it. Within two minutes, they were all dimmed:

They were still there, dimmed, five and a half minutes after the feed stopped. By eight and a half minutes, ATAK had removed them. When an icon disappears is up to each client, so set stale to how long a position stays useful.
New clients wait for the next update. I connected a WebTAK client just after the ais feed had sent 597 vessels. Over the next 25 seconds, it received aircraft and the tractor as their feeds sent updates, but no vessels. TAK Server didn’t send the vessels it had already passed on. They arrived with the next poll. Our feeds send every current track on every poll, even when nothing has moved. With successful polls and an active connection, a newly connected client can receive those tracks on the next update. Failed requests, reconnects and processing delays can extend the wait.
A UID is an identity. As the third article showed, a new UID means a new icon. With hundreds of tracks, an unstable UID fills the map with copies. Use an identifier that belongs to the real thing, such as the ICAO address or the MMSI, rather than a flight number or a random ID.
Keeping a busy feed off maps that don’t need it
Groups from the sixth article work for feeds too. A feed’s certificate name is its user name, so USER_GROUPS can give the vessel feed its own group. Starting from the shared blue configuration above, change only feed-ais to maritime:
USER_GROUPS=alpha-1:blue bravo-1:blue charlie-1:blue delta-1:blue feed-adsb:blue feed-ais:maritime feed-tracker:blue
Apply the change with docker compose up -d in compose/takserver. Once clients and feeds reconnect, check whether charlie-1 receives fresh vessel updates. Existing icons may remain after updates stop, so their presence alone doesn’t establish that sharing continues.
To let charlie-1 see vessels as well as the other tracks, give that user both groups:
USER_GROUPS=alpha-1:blue bravo-1:blue charlie-1:blue,maritime delta-1:blue feed-adsb:blue feed-ais:maritime feed-tracker:blue
Apply the change again. Keep blue in charlie-1’s assignment; replacing it with only maritime would remove the shared group with the aircraft and tracker feeds.
The original test used __ANON__ for the shared group, rather than blue. After isolating feed-ais in maritime, charlie-1 received no vessels in 75 seconds. Giving that user only maritime brought back 595 vessels but removed the tractor updates. Giving it both maritime and __ANON__ delivered 596 vessels and the tractor. These examples use blue to carry forward article 7’s configuration; the counts above describe the original test, not a separate run with the revised assignments.
Check the applied groups in the server logs with docker compose logs takserver from compose/takserver. Confirm that feed-ais has maritime and charlie-1 has both blue and maritime.
Common errors
Errors encountered during testing, and what caused them:
| What you see | Where | What caused it |
|---|---|---|
TAK Server has no certificate for: feed-adsb ... | ./setup.sh | The feed isn’t in CLIENT_CERTS, or TAK Server hasn’t restarted since you added it |
Can't connect to takserver:8089 ([Errno 111] Connection refused) | Feed logs | TAK Server is restarting. The feeds retry, and reconnected by themselves in my tests |
Name or service not known | Feed logs | TAK Server’s container is being recreated. The feeds retry |
HTTP Error 406 | ais feed, or your own Digitraffic requests | The request didn’t ask for compressed responses |
| Vessels missing from a client that just connected | Any client | The ais feed sends once a minute. Wait for the next poll |
| A user loses other tracks after joining a group | Any client | Their new assignment omitted a group shared with the other feeds. Keep blue alongside maritime in this walkthrough |
What you’ve built
The integrations/feeds folder adds three adapters, a broker and a pretend tractor. In this walkthrough, you’ve:
- Connected feeds as clients. Each feed connected over TLS with its own certificate, made in advance by TAK Server, and reconnected after a server restart
- Put three kinds of data on the map. Aircraft from ADS-B, vessels from AIS and a tracker over MQTT appeared in ATAK and the browser clients
- Chosen identity and time deliberately. Source-based UIDs and
stalebased on when a position was observed. New clients received tracks on subsequent successful feed updates - Limited who sees a feed.
USER_GROUPSkept the vessels to a maritime group
The adapters are short because the pattern is the same each time: fetch, convert, send, repeat. Another adapter can reuse the connection and event-building code, while adding its own data retrieval, parsing and field mapping. It also needs a suitable UID and a stale time that reflects how long the position remains useful.
Next up: two TAK Servers, each with its own certificate authority, sharing data without sharing a server.
