Skip to content

Commit b263f38

Browse files
author
zacharyburnett
committed
add configuration docs
1 parent 865c656 commit b263f38

File tree

4 files changed

+115
-23
lines changed

4 files changed

+115
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ For example, to run ``packetraven`` on ``examples/example_1.yaml``, run the foll
3232
packetraven examples/example_1.yaml
3333
```
3434

35-
For usage examples, see the `examples/` directory or [view the documentation on ReadTheDocs](https://packetraven.readthedocs.io/en/latest/usage.html).
35+
For usage examples, see the `examples/` directory or [read the documentation](https://packetraven.readthedocs.io).

docs/source/configuration.rst

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
Configuration File
2+
==================
3+
4+
``packetraven`` reads a YAML configuration file as input. All units are in SI.
5+
6+
Entries
7+
-------
8+
9+
``callsigns``
10+
^^^^^^^^^^^^^
11+
12+
a list of callsigns as strings, including SSIDs if present
13+
14+
.. code-block:: yaml
15+
16+
callsigns:
17+
- W3EAX-9
18+
- W3EAX-11
19+
- W3EAX-12
20+
21+
``time``
22+
^^^^^^^^
23+
24+
start and end times by which to filter received telemetry, along with the interval that ``packetraven`` fetches new telemetry
25+
26+
.. code-block:: yaml
27+
28+
time:
29+
start: 2022-03-05 00:00:00
30+
end: 2022-03-06 00:00:00
31+
interval: 120
32+
33+
``output_file``
34+
^^^^^^^^^^^^^^^
35+
36+
GeoJSON file to output telemetry to
37+
38+
.. code-block:: yaml
39+
40+
output_file: example_3.geojson
41+
42+
``connections``
43+
^^^^^^^^^^^^^^^
44+
45+
connections from which to retrieve packets
46+
47+
.. code-block:: yaml
48+
49+
connections:
50+
sondehub: {}
51+
aprs_fi:
52+
api_key: 123456.abcdefhijklmnop
53+
text:
54+
- port: /dev/ttyUSB0
55+
baud_rate: 9600
56+
- path: ~/packets.txt
57+
58+
.. note::
59+
To define a connection with no options (i.e. the ``sondehub`` entry, above), use YAML's empty flow mapping syntax ``sondehub: {}``.
60+
The empty block mapping syntax (``sondehub: ``) is equivalent to ``sondehub: null`` and will not initiate the connection.
61+
62+
``prediction``
63+
^^^^^^^^^^^^^^
64+
65+
prediction profile for all callsigns
66+
67+
.. code-block:: yaml
68+
69+
prediction:
70+
start:
71+
coord:
72+
x: -78.4987
73+
y: 40.0157
74+
time: 2022-03-05 10:36:00
75+
profile:
76+
ascent_rate: 6.5
77+
burst_altitude: 25000
78+
sea_level_descent_rate: 9
79+
float:
80+
duration: 3600
81+
float_altitude: 25000
82+
uncertainty: 500
83+
output_file: example_3_prediction.geojson
84+
85+
Examples
86+
--------
87+
88+
Example 1
89+
^^^^^^^^^
90+
91+
watch text file(s) for new lines containing raw APRS frames
92+
93+
.. literalinclude:: ../../examples/example_1.yaml
94+
:language: yaml
95+
96+
Example 2
97+
^^^^^^^^^
98+
99+
listen to a TNC-equipped radio plugged into USB COM3, poll https://amateur.sondehub.org and https://aprs.fi
100+
101+
.. literalinclude:: ../../examples/example_2.yaml
102+
:language: yaml
103+
104+
105+
Example 3
106+
^^^^^^^^^
107+
108+
do a bunch of stuff
109+
110+
.. literalinclude:: ../../examples/example_3.yaml
111+
:language: yaml
112+
113+

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
.. toctree::
44
:hidden:
55

6-
usage
6+
configuration

docs/source/usage.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)