Skip to main content

stratuxcot - Stratux Cursor-on-Target Gateway.

Screenshot of ADS-B PLI in ATAK.

The Stratux Cursor-On-Target Gateway (StratuxCOT) transforms Stratux aircraft position information into Cursor on Target Position Location Information for display on Situational Awareness applications such as the Android Team Awareness Kit (ATAK), WinTAK, RaptorX, et al. For more information on the TAK suite of tools, see: https://www.tak.gov/

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

StratuxCOT uses the Python Team Awareness Kit (PyTAK) module.

Support Development

Tech Support: Email support@undef.net or Signal/WhatsApp: +1-310-621-9598

This tool has been developed for the Disaster Response, Public Safety and Frontline Healthcare community. This software is currently provided at no-cost to users. Any contribution you can make to further this project’s development efforts is greatly appreciated.

Support Development: Buy me a coffee!

Installation

Functionality provided by a command-line tool called stratuxcot, which can be installed several ways.

Preferred Method 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

Alternate Method Install from the Python Package Index:

$ python3 -m pip install -U aircot
$ python3 -m pip install -U pytak
$ python3 -m pip install -U stratuxcot

For Developers Install from this source tree:

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

Usage

The stratuxcot command-line program has several runtime arguments:

$ stratuxcot -h
usage: stratuxcot [-h] [-c CONFIG_FILE]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --CONFIG_FILE CONFIG_FILE Default: config.ini

Configuration

Configuration parameters can be specified either via environment variables or in a INI-stile configuration file.

Parameters:

  • STRATUX_WS: Stratux Websocket URL. Default: ws://stratux.local/traffic`

  • COT_URL: (optional) Destination for Cursor-On-Target messages. See PyTAK for options.

  • KNOWN_CRAFT: (optional) CSV-style aircraft hints file for overriding callsign, icon, COT Type, etc.

  • INCLUDE_ALL_CRAFT: (optional) If set & KNOWN_CRAFT is set, will include aircraft not in KNOWN_CRAFT.

There are other configuration parameters available via PyTAK.

Configuration parameters are imported in the following priority order:

  1. config.ini (if exists) or -c <filename> (if specified).

  2. Environment Variables (if set).

  3. Defaults.

Running as a Service

It’s recommended to run stratuxcot as a service (“daemon”) using a built-in service manager like systemd.

To accomplish this, first create the file /etc/systemd/system/stratuxcot.service:

[Unit]
Description=StratuxCoT Service
After=multi-user.target
[Service]
ExecStart=/usr/local/bin/stratuxcot -U tcp:x.x.x.x:8088 -W ws://127.0.0.1/traffic
Restart=always
RestartSec=5
Environment=DEBUG=1
[Install]
WantedBy=multi-user.target

Then, it’s as easy as:

$ sudo systemctl enable stratuxcot.service
$ sudo systemctl start stratuxcot.service

To see status & logs:

$ sudo systemctl status stratuxcot.service
$ sudo journalctl -xe

Alternatively, you can use supervisord:

$ sudo yum install supervisor
$ sudo service supervisord start

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

[program:stratuxcot]
command=stratuxcot -c /home/pi/stratux-config.ini

And update supervisor:

$ sudo supervisorctl update

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

Copyright 2022 Greg Albrecht <oss@undef.net>

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for stratuxcot 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stratuxcot 5.1.0
File Size Uploaded
stratuxcot-5.1.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stratuxcot 5.1.0
File Interpreter ABI Platform
stratuxcot-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / stratuxcot-5.1.0.tar.gz

Download URL stratuxcot-5.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
35ec5d691d71b027fd0f3c00a5ff938996b512fee6f69625a485690d50629c30
BLAKE2b-256 checksum
How to use checksums
e0ca8948f83a2e3a14380149a39dee906d71046011efe7228baf16226fd46b12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / stratuxcot-5.1.0-py3-none-any.whl

Download URL stratuxcot-5.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74aa951ebcde420e4d261d3f1c66d1a462ed6353637e6c23e4a6ee892478c597
BLAKE2b-256 checksum
How to use checksums
6fd6e290175eb9c864bbeb5a54658354cca8e3e2a45db5822ef744b036430d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page