feat(cot): OpenTAK Server TCP integration + entity type filter#113
Merged
Conversation
Adds COT_ENTITY_TYPES env var (comma-separated list of entity_type strings). When set, only matching entities are forwarded to the TAK server. Empty (default) emits all types — no behaviour change for existing deployments. Example: COT_ENTITY_TYPES=aircraft,vessel,fire_incident Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PswxT6xcRYioF1ZfgszgRi
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PswxT6xcRYioF1ZfgszgRi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
COT_TAKSERVER_HOSTis set. OpenTAK Server (OTS) has no UDP CoT listener — it only accepts CoT via TCP on port 8088. The emitter now opens a persistent TCP connection with exponential-backoff reconnect, matching the receiver's pattern.COT_RECEIVE_HOSTandCOT_RECEIVE_PORTare removed. Both emitter and receiver connect to the same OTS endpoint (COT_TAKSERVER_HOST/COT_TAKSERVER_PORT).COT_RECEIVE_ENABLEDremains as a simple boolean gate.COT_ENTITY_TYPESfilter — comma-separated list of entity types to emit. Empty (default) emits everything. Filtered at the Redis message level before any TCP write.VERTEX-, preventing OTS from echoing Vertex's own transmissions back as duplicate entities.Config for OpenTAK Server
Entity types available for
COT_ENTITY_TYPESaircraftvesselaprsmesh_nodetrainfire_incidentstream_gaugerf_sensortak_clientTest plan
COT_TAKSERVER_HOSTset: emitter log showsTCP connected to TAK servernotUDP multicastCOT_ENTITY_TYPES=aircraft,vessel— only aircraft and vessel CoT reach OTSCOT_ENTITY_TYPES=(blank) — all entity types flow throughtak_cliententitiesVERTEX-echo entities appear on Vertex map from OTS loopbackCOT_TAKSERVER_HOSTblank: emitter falls back to UDP multicast, ATAK devices on LAN receive CoT🤖 Generated with Claude Code
https://claude.ai/code/session_01PswxT6xcRYioF1ZfgszgRi
Generated by Claude Code