Skip to main content

Stratux Cursor-on-Target Gateway.

Project description

Screenshot of ADS-B PLI in ATAK.

The Stratux Cursor on Target Gateway transforms Stratux aircraft position information into Cursor on Target (CoT) Position Location Information (PLI) for display on Situational Awareness (SA) applications such as the Android Team Awareness Kit (ATAK), WinTAK, RaptorX, et al.

Stratux messages are received via the /traffic Websocket.

For more information on the TAK suite of tools, see: https://www.civtak.org/

For more information on the Stratux Portable ADS-B receiver, see: http://stratux.me/

Installation

The Stratux to Cursor on Target Gateway is provided by a command-line tool called stratuxcot, which can be installed several ways.

Installing as a Debian/Ubuntu Package:

$ wget https://github.com/ampledata/aircot/releases/latest/download/python3-aircot_latest_all.deb
$ sudo apt install -f ./python3-aircot_latest_all.deb
$ wget https://github.com/ampledata/pytak/releases/latest/download/python3-pytak_latest_all.deb
$ sudo apt install -f ./python3-pytak_latest_all.deb
$ wget https://github.com/ampledata/stratuxcot/releases/latest/download/python3-stratuxcot_latest_all.deb
$ sudo apt install -f ./python3-stratuxcot_latest_all.deb

Install from the Python Package Index:

$ pip install stratuxcot

Install from this source tree:

$ git clone https://github.com/ampledata/stratuxcot.git
$ cd aircot/
$ python setup.py stratuxcot

Usage

The stratuxcot command-line program has several runtime arguments:

$ stratuxcot -h
usage: stratuxcot [-h] [-c CONFIG_FILE] [-d] [-U COT_URL] [-W STRATUX_WS] [-S COT_STALE] [-F FILTER_CONFIG] [-K KNOWN_CRAFT]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --CONFIG_FILE CONFIG_FILE
  -d, --DEBUG           Enable DEBUG logging
  -U COT_URL, --COT_URL COT_URL
                        URL to CoT Destination. Must be a URL, e.g. tcp:1.2.3.4:1234 or tls:...:1234, etc.
  -W STRATUX_WS, --STRATUX_WS STRATUX_WS
                        Stratux Websocket URL.
  -S COT_STALE, --COT_STALE COT_STALE
                        CoT Stale period, in seconds
  -F FILTER_CONFIG, --FILTER_CONFIG FILTER_CONFIG
                        FILTER_CONFIG
  -K KNOWN_CRAFT, --KNOWN_CRAFT KNOWN_CRAFT
                        KNOWN_CRAFT

Troubleshooting

To report bugs, please set the DEBUG=1 environment variable to collect logs.

Source

The source for stratuxcot can be found on Github: https://github.com/ampledata/stratuxcot

Author

stratuxcot is written and maintained by Greg Albrecht W2GMD oss@undef.net

https://ampledata.org/

License

stratuxcot is licensed under the Apache License, Version 2.0. See LICENSE for details.

Examples

Connect to the Stratux device at ws://172.17.2.188/traffic, and forward CoT to TCP Port 8087 on Host 172.17.2.152:

$ stratuxcot -U tcp:172.17.2.152:8087 -W ws://172.17.2.188/traffic

Running as a Daemon

First, install supervisor:

$ sudo yum install supervisor
$ sudo service supervisord start

Create /etc/supervisor.d/stratuxcot.ini with the following content:

[program:stratuxcot]
command=stratuxcot -U tcp:172.17.2.152:8087 -W ws://172.17.2.188/traffic

And update supervisor:

$ sudo supervisorctl update

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stratuxcot-1.3.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

stratuxcot-1.3.0-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page