Skip to content

Commit

Permalink
@mbridak Forgot to add the fldigi udp qso parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Jan 3, 2025
1 parent 3e34360 commit 44c8df1
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions not1mm/plugins/arrl_rtty_ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from pathlib import Path
from PyQt6 import QtWidgets

from not1mm.lib.ham_utility import get_logged_band
from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
from not1mm.lib.version import __version__

Expand Down Expand Up @@ -541,3 +542,80 @@ def get_mults(self):
def just_points(self):
""""""
return get_points(self)


def set_self(the_outie):
"""..."""
globals()["ALTEREGO"] = the_outie


def ft8_handler(the_packet: dict):
"""Process FT8 QSO packets
FT8
{
'CALL': 'KE0OG',
'GRIDSQUARE': 'DM10AT',
'MODE': 'FT8',
'RST_SENT': '',
'RST_RCVD': '',
'QSO_DATE': '20210329',
'TIME_ON': '183213',
'QSO_DATE_OFF': '20210329',
'TIME_OFF': '183213',
'BAND': '20M',
'FREQ': '14.074754',
'STATION_CALLSIGN': 'K6GTE',
'MY_GRIDSQUARE': 'DM13AT',
'CONTEST_ID': 'ARRL-FIELD-DAY',
'SRX_STRING': '1D UT',
'CLASS': '1D',
'ARRL_SECT': 'UT'
}
FlDigi
{
'FREQ': '7.029500',
'CALL': 'DL2DSL',
'MODE': 'RTTY',
'NAME': 'BOB',
'QSO_DATE': '20240904',
'QSO_DATE_OFF': '20240904',
'TIME_OFF': '212825',
'TIME_ON': '212800',
'RST_RCVD': '599',
'RST_SENT': '599',
'BAND': '40M',
'COUNTRY': 'FED. REP. OF GERMANY',
'CQZ': '14',
'STX': '000',
'STX_STRING': '1D ORG',
'CLASS': '1D',
'ARRL_SECT': 'DX',
'TX_PWR': '0',
'OPERATOR': 'K6GTE',
'STATION_CALLSIGN': 'K6GTE',
'MY_GRIDSQUARE': 'DM13AT',
'MY_CITY': 'ANAHEIM, CA',
'MY_STATE': 'CA'
}
"""
logger.debug(f"{the_packet=}")
if ALTEREGO is not None:
ALTEREGO.callsign.setText(the_packet.get("CALL"))
ALTEREGO.contact["Call"] = the_packet.get("CALL", "")
ALTEREGO.contact["SNT"] = ALTEREGO.sent.text()
ALTEREGO.contact["RCV"] = ALTEREGO.receive.text()
ALTEREGO.contact["Exchange1"] = the_packet.get("CLASS", "ERR")
ALTEREGO.contact["Sect"] = the_packet.get("ARRL_SECT", "ERR")
ALTEREGO.contact["Mode"] = the_packet.get("MODE", "ERR")
ALTEREGO.contact["Freq"] = round(float(the_packet.get("FREQ", "0.0")) * 1000, 2)
ALTEREGO.contact["QSXFreq"] = round(
float(the_packet.get("FREQ", "0.0")) * 1000, 2
)
ALTEREGO.contact["Band"] = get_logged_band(
str(int(float(the_packet.get("FREQ", "0.0")) * 1000000))
)
logger.debug(f"{ALTEREGO.contact=}")
ALTEREGO.other_1.setText(the_packet.get("CLASS", "ERR"))
ALTEREGO.other_2.setText(the_packet.get("ARRL_SECT", "ERR"))
ALTEREGO.save_contact()

0 comments on commit 44c8df1

Please sign in to comment.