SendTraffic.py
script started to take shape. It discussing a few technical backgrounds.Resources/SendTraffic.py
. SendTraffic.py
you obviously need Python, probably version 3.6+, tested on 3.8. (Here's a thread on using Python 3.5.)SendTraffic.py -h
for getting the following help:SendTraffic.py [-h] [-a HEX_LIST] [-d NUM_LIST] [-b NUM] [--historic NUM] [-l] [--host NAME_OR_IP] [--port NUM] [--weatherPort NUM] [-v] [inFile]
Output/LTExportFD - <timestamp>.csv
.inFile
Tracking data file: records in CSV format holding air traffic data in RealTraffic's AITraffic format and weather data. <stdin>
by default-h, --help
show this help message and exit-a HEX_LIST, --aircraft HEX_LIST
List of aircraft to read and send, others skipped. Add one or several transponder hex id codes, separate by comma.-d NUM_LIST, --aircraftDecimal NUM_LIST
Same as -a
, but specify decimal values (as used in the CSV file).-b NUM, --bufPeriod NUM
Buffering period: Number of seconds the first record is pushed into the past so that LiveTraffic's buffer fills more quickly. Recommended to be slightly less than half of LiveTraffic's buffering period. (More than half of buf period triggers historic data processing.--historic NUM
Send historic data, ie. reduce included timestamp by this many seconds-l, --loop
Endless loop: restart from the beginning when reaching end of file. Will work best if data contains loop with last position(s) being roughly equal to first position(s).--host NAME_OR_IP
UDP target host or ip to send the data to, defaults to localhost
--port NUM
UDPport to send traffic data to, defaults to 49003
--weatherPort NUM
UDP port to send weather data to, defaults to 49004
-v, --verbose
Verbose output: Informs of each sent record