Add image port option to ssdvuploader start

rfm98w_packettx
Mark Jessop 2024-11-02 11:52:11 +10:30
rodzic f25101005c
commit cc5d5f8d82
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -354,6 +354,7 @@ if __name__ == "__main__":
parser.add_argument("--file_mask", default="*.bin", help="File mask to watch (Defaut: *.bin)")
parser.add_argument("--queue_size", default=8192, type=int, help="Uploader queue size (Default: 8192 packets = ~2MiB)")
parser.add_argument("--upload_block_size", default=256, type=int, help="Upload block size (Default: 256 packets uploaded at a time.)")
parser.add_argument("--image_port", type=int, default=None, help="UDP port used for communication between Wenet decoder processes. Default: 7890")
parser.add_argument("-v", "--verbose", action='store_true', default=False, help="Verbose logging output.")
args = parser.parse_args()
@ -368,6 +369,10 @@ if __name__ == "__main__":
logging.getLogger("urllib3").setLevel(logging.CRITICAL)
# Overwrite the image UDP port if it has been provided
if args.image_port:
WENET_IMAGE_UDP_PORT = args.image_port
_uploader = SSDVUploader(
uploader_callsign = args.callsign,
watch_directory = args.watch_dir,

Wyświetl plik

@ -94,7 +94,7 @@ if [ "$RX_FLOW" = "GQRX" ]; then
fi
# Start up the SSDV Uploader script and push it into the background.
python ssdvuploader.py $MYCALL &
python ssdvuploader.py --image_port $IMAGE_PORT $MYCALL &
SSDV_UPLOAD_PID=$!
# Start the Web Interface Server