Skip to content

Commit

Permalink
@mbridak Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Week…
Browse files Browse the repository at this point in the history
…ly RTTY
  • Loading branch information
mbridak committed Nov 7, 2024
1 parent e001e48 commit 00ae2d5
Show file tree
Hide file tree
Showing 14 changed files with 112 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- [24-11-6] Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY
- [24-11-5] Fix crash with bad qrz credentials.
- [24-11-3-1] Fixed CWT ESM, Add Call History to CWT, Helvetia, WFD, NAQP, K1USN. Add ESM Helvetia.
- [24-11-3] Added RAEM contest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.

## Recent Changes (Polishing the Turd)

- [24-11-6] Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY
- [24-11-5] Fix crash with bad qrz credentials.
- [24-11-3-1] Fixed CWT ESM, Add Call History to CWT, Helvetia, WFD, NAQP, K1USN. Add ESM Helvetia.
- [24-11-3] Added RAEM contest
Expand Down
2 changes: 1 addition & 1 deletion not1mm/lib/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""It's the version"""

__version__ = "24.11.5"
__version__ = "24.11.6"
10 changes: 10 additions & 0 deletions not1mm/plugins/arrl_vhf_jan.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,13 @@ def ft8_handler(the_packet: dict):
ALTEREGO.other_1.setText(my_grid)
ALTEREGO.other_2.setText(their_grid)
ALTEREGO.save_contact()


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('Loc1', '')}")
10 changes: 10 additions & 0 deletions not1mm/plugins/arrl_vhf_jun.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,13 @@ def ft8_handler(the_packet: dict):
ALTEREGO.other_1.setText(my_grid)
ALTEREGO.other_2.setText(their_grid)
ALTEREGO.save_contact()


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('Loc1', '')}")
10 changes: 10 additions & 0 deletions not1mm/plugins/arrl_vhf_sep.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,13 @@ def ft8_handler(the_packet: dict):
ALTEREGO.other_1.setText(my_grid)
ALTEREGO.other_2.setText(their_grid)
ALTEREGO.save_contact()


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('Loc1', '')}")
12 changes: 12 additions & 0 deletions not1mm/plugins/cq_160_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,15 @@ def recalculate_mults(self):
contact["IsMultiplier1"] = 0
self.database.change_contact(contact)
trigger_update(self)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
# if self.other_1.text() == "":
# self.other_1.setText(f"{result.get('CQZone', '')}")
# if self.other_2.text() == "":
# self.other_2.setText(f"{result.get('State', '')}")
12 changes: 12 additions & 0 deletions not1mm/plugins/cq_160_ssb.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,15 @@ def recalculate_mults(self):
contact["IsMultiplier1"] = 0
self.database.change_contact(contact)
trigger_update(self)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
# if self.other_1.text() == "":
# self.other_1.setText(f"{result.get('CQZone', '')}")
# if self.other_2.text() == "":
# self.other_2.setText(f"{result.get('State', '')}")
10 changes: 10 additions & 0 deletions not1mm/plugins/cq_ww_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,13 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('CQZone', '')}")
12 changes: 12 additions & 0 deletions not1mm/plugins/cq_ww_rtty.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,3 +637,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
continue
sendstring = f"{sendstring}{self.process_macro(button.toolTip())} "
self.fldigi_util.send_string(sendstring)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_1.text() == "":
self.other_1.setText(f"{result.get('CQZone', '')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('State', '')}")
10 changes: 10 additions & 0 deletions not1mm/plugins/cq_ww_ssb.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,3 +506,13 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('CQZone', '')}")
10 changes: 10 additions & 0 deletions not1mm/plugins/stew_perry_topband.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,13 @@ def cabrillo(self, file_encoding):

def recalculate_mults(self):
"""Recalculates multipliers after change in logged qso."""


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_1.text() == "":
self.other_1.setText(f"{result.get('Loc1', '')}")
12 changes: 12 additions & 0 deletions not1mm/plugins/weekly_rtty.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,3 +572,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
continue
sendstring = f"{sendstring}{self.process_macro(button.toolTip())} "
self.fldigi_util.send_string(sendstring)


def check_call_history(self):
""""""
result = self.database.fetch_call_history(self.callsign.text())
print(f"{result=}")
if result:
self.history_info.setText(f"{result.get('UserText','')}")
if self.other_1.text() == "":
self.other_1.setText(f"{result.get('Name', '')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('Sect', '')}")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "not1mm"
version = "24.11.5"
version = "24.11.6"
description = "NOT1MM Logger"
readme = "README.md"
requires-python = ">=3.9"
Expand Down

0 comments on commit 00ae2d5

Please sign in to comment.