#! /usr/bin/env python3 import argparse import sys import logging import socket import re import json import paho.mqtt.client as mqtt # pip install paho-mqtt from datetime import datetime, UTC logger = logging.getLogger(__name__) RBN_SPOT_RE = re.compile(r"DX de (?P[A-Z\d]+(?:-\d+)?)[^\d]+(?P[\d\.]+)\s+(?P[A-Z\d\/]+)\s+(?P[A-Z\d]+)\s+(?P[a-zA-Z\d\-]+) dB\s+(?P(?:[A-Z]+\d+)|(?:\d+ WPM))?[^\d]+(?P