Skip to content

Commit

Permalink
imported missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Jan 17, 2024
1 parent d58c75f commit a64e8d5
Show file tree
Hide file tree
Showing 12 changed files with 248 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ pylint.log
redis-server.log
redis-server/
__pycache__
known_craft.csv
2 changes: 1 addition & 1 deletion adsbcot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:source: <https://github.com/snstac/adsbcot>
"""

__version__ = "6.2.0-beta5"
__version__ = "6.2.0-beta7"
__author__ = "Greg Albrecht <[email protected]>"
__copyright__ = "Copyright Sensors & Signals LLC https://www.snstac.com"
__license__ = "Apache License, Version 2.0"
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{!CHANGELOG.md!}
64 changes: 64 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
ADSBCOT's configuration parameters can be set two ways:

1. In an INI-style configuration file. (ex. ``adsbcot -c config.ini``)
2. As environment variables. (ex. ``export DEBUG=1;adsbcot``)

ADSBCOT has the following built-in configuration parameters:

* **`FEED_URL`**
* Default: ``file:///run/dump1090-fa/aircraft.json``

ADS-B data source URL. Supported URL types:

- ``file://`` The absolute local folder path to an ADS-B data file in JSON format.
- ``http://`` The local piaware web server aircraft data JSON URL. (ex. ``http://piaware.local:8080/data/aircraft.json``)
- ``tcp://`` A dump1090 BaseStation (SBS-1, "raw") host & port URL (ex. ``tcp://sensor.example.com:30003``).
- ``tcp+raw://`` A dump1090 BaseStation (SBS-1, "raw") host & port URL (ex. ``tcp+raw://sensor.example.com:30003``).
- ``tcp+beast://`` A dump1090 Beast binary mode host & port URL (ex. ``tcp+beast://sensor.example.com:30005``).

* **`POLL_INTERVAL`**
* Default: ``30``*

Period, in seconds, to poll the FEED_URL, *if the FEED_URL is of the type ``http://``.

* **`ALT_UPPER`**
* Default: unset

Upper Altitude Limit, geometric (GNSS / INS) altitude in feet referenced to the WGS84 ellipsoid.

* **`ALT_LOWER`**
* Default: unset

Lower Altitude Limit, geometric (GNSS / INS) altitude in feet referenced to the WGS84 ellipsoid.

Additional configuration parameters, including TAK Server configuration, are included in the [PyTAK Configuration](https://pytak.readthedocs.io/en/latest/configuration/) documentation.






TKT TK TTKTKTKTKT
TK TK TK

* **`KNOWN_CRAFT`**:
* Default: unset

CSV-style aircraft hints file for overriding callsign, icon, COT Type, etc.

* **`INCLUDE_TISB`**:
* Default: ``False``

If ``True``, includes TIS-B tracks.

* **`INCLUDE_ALL_CRAFT`**:
* Default: ``False``

If ``True`` and ``KNOWN_CRAFT`` is set, will forward all aircraft, including those transformed by the ``KNOWN_CRAFT`` database.

* **`TISB_ONLY`**:
* Default: ``False``

If ``True``, only passes TIS-B tracks.


7 changes: 7 additions & 0 deletions docs/conop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Concept of Operations (CONOP)

[![ADSBXCOT Concept of Operations (CONOP)](ADSBXCOT_CONOP/[email protected])](ADSBXCOT_CONOP/[email protected])



![ADSBCOT Example Setup](adsbcot_example.png)
65 changes: 65 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

## Run on a Raspberry Pi

This example configuration can run along-side the dump1090 software on the same computer, or on computers connected over an IP network (i.e. A remote Raspberry Pi running dump1090).

ADS-B data is transformed into TAK data and forwarded to our TAK Server over TCP port ``8087``.

```ini
[adsbcot]
COT_URL = tcp://takserver.example.com:8087
FEED_URL = tcp+beast://sensor.example.com:30003
```

### Usage

1. Add the configuration text to a configuration file named: ``adsbcot.ini``
2. Use the configuration file when starting ADSBCOT: ``adsbcot -c adsbcot.ini``
> Ensure you know the full path to your configuration file.
## Forward to ATAK

This example configuration can run along-side the dump1090 software on the same computer, or on computers connected over an IP network (i.e. A remote Raspberry Pi running dump1090).

ADS-B data is transformed into TAK data and forwarded to our ATAK Mesh SA Multicast Network.

```ini
[adsbcot]
COT_URL = udp+wo://239.2.3.1:6969
FEED_URL = tcp+beast://10.1.2.24:30003
```

### Usage

1. Add the configuration text to a configuration file named: ``adsbcot.ini``
2. Use the configuration file when starting ADSBCOT: ``adsbcot -c adsbcot.ini``
> Ensure you know the full path to your configuration file.
## Use aircraft JSON API

This example configuration can run along-side the dump1090 software on the same computer, or on computers connected over an IP network (i.e. A remote Raspberry Pi running dump1090).

ADS-B data is read from the dump1090 aircraft JSON API URL every 10 seconds, and is transformed into TAK data. From there it is forwarded to our TAK Server over TLS port ``8089`` using client certificates.

```ini
[adsbcot]
PYTAK_TLS_CLIENT_CERT = /etc/my_client_cert.pem
COT_URL = tls://takserver.example.com:8089
FEED_URL = http://piaware.local:8080/data/aircraft.json
POLL_INTERVAL = 10
```

### Usage

1. Add the configuration text to a configuration file named: ``adsbcot.ini``
2. Use the configuration file when starting ADSBCOT: ``adsbcot -c adsbcot.ini``
> Ensure you know the full path to your configuration file.

## Using environment variables

```bash linenums="1"
export COT_URL="udp://10.9.8.7:8087"
export FEED_URL="tcp+raw://127.0.0.1:30002"
adsbcot
```
16 changes: 16 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
![ATAK Screenshot with ADSBCOT aircraft tracks.](atak_screenshot_with_pytak_logo-x25.png)

# Display Aircraft in TAK

ADSBCOT is software for monitoring and analyzing aviation surveillance data via the Team Awareness Kit (TAK) ecosystem of products.

ADSBCOT captures & reports real-time ADS-B data received from aircraft (or other airbrone vehicles and drones) into TAK products using native TAK protocols, including Cursor on Target (CoT).

ADSBCOT has been evaluated with WinTAK, iTAK, ATAK & TAK Server.

ADSBCOT is in active use today in a variety of missions.

[Documentation is available here.](https://adsbcot.rtfd.io)

Use ADS-B Aggregators? Check out my sister software `ADSBXCOT <https://adsbxcot.rtfd.io>`_.

35 changes: 35 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ADSBCOT's functionality provided by a command-line program called `adsbcot`.

There are several methods of installing ADSBCOT. They are listed below, in order of complexity.

# Debian, Ubuntu, Raspberry Pi

Install ADSBCOT, and prerequisite packages of [PyTAK](https://pytak.rtfd.io) & [AIRCOT](https://aircot.rtfd.io).

```sh linenums="1"
sudo apt update
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/adsbcot/releases/latest/download/python3-adsbcot_latest_all.deb
sudo apt install -f ./python3-adsbcot_latest_all.deb
```

# Windows, Linux

Install from the Python Package Index (PyPI) [Advanced Users]::

```sh
python3 -m pip install adsbcot
```

# Developers

PRs welcome!

```sh linenums="1"
git clone https://github.com/snstac/adsbcot.git
cd adsbcot/
python3 setup.py install
```
Binary file added docs/takproto_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Command-line

Command-line usage is available by running ``adsbxcot -h``.

```
usage: adsbxcot [-h] [-c CONFIG_FILE] [-p PREF_PACKAGE]
options:
-h, --help show this help message and exit
-c CONFIG_FILE, --CONFIG_FILE CONFIG_FILE
Optional configuration file. Default: config.ini
-p PREF_PACKAGE, --PREF_PACKAGE PREF_PACKAGE
Optional connection preferences package zip file (aka data package).
```

## Run as a service / Run forever.

TK
40 changes: 40 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
site_name: ADSBXCOT - Display Aircraft in TAK
site_url: https://adsbxcot.rtfd.io/
repo_url: https://github.com/snstac/adsbxcot/
site_description: A gateway for displaying aircraft tracks from ADS-B Aggregators in TAK Products, including ATAK.
site_author: Greg Albrecht <[email protected]>
copyright: Copyright Sensors & Signals LLC https://www.snstac.com

theme:
name: material
highlightjs: true
features:
- content.code.copy
- content.code.select
- content.code.annotate

plugins:
- include-markdown:
opening_tag: "{!"
closing_tag: "!}"
- search
- mkdocstrings:
handlers:
# See: https://mkdocstrings.github.io/python/usage/
python:
options:
docstring_style: sphinx

markdown_extensions:
- markdown_include.include:
base_path: .
- admonition
- toc:
permalink: True
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
5 changes: 0 additions & 5 deletions tox.ini

This file was deleted.

0 comments on commit a64e8d5

Please sign in to comment.