not1mm 24.12.5.1__py3-none-any.whl → 24.12.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
not1mm/__main__.py CHANGED
@@ -2475,14 +2475,12 @@ class MainWindow(QtWidgets.QMainWindow):
2475
2475
 
2476
2476
  def update_rtc_xml(self):
2477
2477
  """Update RTC XML"""
2478
- print("update the xml")
2479
2478
  if self.pref.get("send_rtc_scores", False):
2480
2479
  if self.contest is None:
2481
2480
  return
2482
2481
  if hasattr(self.contest, "online_score_xml"):
2483
2482
  if self.rtc_service is not None:
2484
2483
  self.rtc_service.xml = self.contest.online_score_xml(self)
2485
- print(f"{self.rtc_service.xml=}")
2486
2484
 
2487
2485
  def new_contest_dialog(self) -> None:
2488
2486
  """
@@ -2941,6 +2939,7 @@ class MainWindow(QtWidgets.QMainWindow):
2941
2939
  self.rtc_thread.finished.connect(self.rtc_service.deleteLater)
2942
2940
  # self.rtc_service.poll_callback.connect(self.rtc_result)
2943
2941
  self.rtc_thread.start()
2942
+ self.rtc_service.rtc_callback.connect(self.rtc_response)
2944
2943
 
2945
2944
  try:
2946
2945
  if self.radio_thread.isRunning():
@@ -3098,6 +3097,9 @@ class MainWindow(QtWidgets.QMainWindow):
3098
3097
  self.write_preference()
3099
3098
  self.setDarkMode(self.actionDark_Mode_2.isChecked())
3100
3099
 
3100
+ def rtc_response(self, response):
3101
+ print(f"{response=}")
3102
+
3101
3103
  def cw_macros_state_changed(self) -> None:
3102
3104
  """
3103
3105
  Menu item to show/hide macro buttons.
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.12.5.1"
3
+ __version__ = "24.12.6"
@@ -28,7 +28,7 @@ from pathlib import Path
28
28
 
29
29
  from PyQt6 import QtWidgets
30
30
 
31
- from not1mm.lib.plugin_common import gen_adif, get_points
31
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
32
32
  from not1mm.lib.version import __version__
33
33
 
34
34
  logger = logging.getLogger(__name__)
@@ -506,3 +506,23 @@ def check_call_history(self):
506
506
  self.other_1.setText(f"{result.get('Name', '')}")
507
507
  if self.other_2.text() == "":
508
508
  self.other_2.setText(f"{result.get('Exch1', '')}")
509
+
510
+
511
+ # --------RTC Stuff-----------
512
+ def get_mults(self):
513
+ """"""
514
+
515
+ mults = {}
516
+ mults["state"] = show_mults(self)
517
+ return mults
518
+
519
+
520
+ def just_points(self):
521
+ """"""
522
+ result = self.database.fetch_points()
523
+ if result is not None:
524
+ score = result.get("Points", "0")
525
+ if score is None:
526
+ score = "0"
527
+ return int(score)
528
+ return 0
not1mm/rtc_service.py CHANGED
@@ -28,7 +28,7 @@ logger = logging.getLogger(__name__)
28
28
  class RTCService(QObject):
29
29
  """The RTC Service class."""
30
30
 
31
- poll_callback = pyqtSignal(dict)
31
+ rtc_callback = pyqtSignal(dict)
32
32
  delta = 2 # two minutes
33
33
  poll_time = datetime.datetime.now() + datetime.timedelta(minutes=delta)
34
34
  time_to_quit = False
@@ -44,6 +44,7 @@ class RTCService(QObject):
44
44
  while not self.time_to_quit:
45
45
  # if self.pref.get("send_rtc_scores", False) is True:
46
46
  if datetime.datetime.now() > self.poll_time:
47
+ response = ""
47
48
  self.poll_time = datetime.datetime.now() + datetime.timedelta(
48
49
  minutes=self.delta
49
50
  )
@@ -60,15 +61,15 @@ class RTCService(QObject):
60
61
  ),
61
62
  timeout=30,
62
63
  )
63
- print(f"{self.xml=}\n{result=}\n{result.text}")
64
+ response = f"{result.status_code}|{result.reason}|{result.text}"
64
65
  except requests.exceptions.Timeout:
65
- print("RTC post timeout.")
66
+ response = "RTC post timeout."
66
67
  except requests.exceptions.RequestException as e:
67
- print(f"An RTC post error occurred: {e}")
68
+ response = f"An RTC post error occurred: {e}"
68
69
  else:
69
- print("No XML data")
70
+ response = "No XML data"
70
71
  try:
71
- self.poll_callback.emit({"success": True})
72
+ self.rtc_callback.emit({"result": response})
72
73
  except QEventLoop:
73
74
  ...
74
75
  QThread.msleep(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.12.5.1
3
+ Version: 24.12.6
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mbridak/not1mm
@@ -211,6 +211,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
211
211
  - 10 10 Summer Phone
212
212
  - 10 10 Winter Phone
213
213
  - ARRL 10M
214
+ - ARRL 160M
214
215
  - ARRL DX CW, SSB
215
216
  - ARRL Field Day
216
217
  - ARRL Sweepstakes CW, SSB
@@ -238,6 +239,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
238
239
 
239
240
  ## Recent Changes (Polishing the Turd)
240
241
 
242
+ - [24-12-6] Add RTC to K1USN.
241
243
  -[24-12-5-1] ARRL 160 gets rtc.
242
244
  - [24-12-5] Add 'real time' score posting to external sites.
243
245
  - [24-12-4] Merged PR from @alduhoo Add STATION_CALLSIGN field to ADIF output
@@ -1,12 +1,12 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=fiXIUhVXM8mA0_zkr-srDZF-XvvkoFNVZ9LtqF2NYts,144644
2
+ not1mm/__main__.py,sha256=NhY8RJUM533ou_u-YjuZSV9AWCkQ1jf-MKjM0ghWgW0,144696
3
3
  not1mm/bandmap.py,sha256=zD3aUf36NVQCy0plAcZLNxYhSEM9xZ8J1Cu9vrcFPYA,31136
4
4
  not1mm/checkwindow.py,sha256=VFAcKYTcoWhmIf91chwY6tyao9FQMWPiUkgDDkkWaog,9670
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
6
6
  not1mm/logwindow.py,sha256=TvpzQTNB92hISlUO3iWBqtlPmlebdhOkAArx0DNGcOs,43966
7
7
  not1mm/lookupservice.py,sha256=GkY_qHZfrW6XHf8upIoaG4hCFqm0fg6Ganu9ConGrIc,2628
8
8
  not1mm/radio.py,sha256=c4m7Ci38uKGKxB0JUT5uOKalI_Mm8Vmixu5D_roN5z4,5400
9
- not1mm/rtc_service.py,sha256=Fu_Ru0GR2wcTfmbnt8cIAC5BJfPQEb4kuSTyQohZoi8,2756
9
+ not1mm/rtc_service.py,sha256=axAwnCBuTr-QL0YwXtWvg9tjwhcFsiiEZFgFjOofX6k,2816
10
10
  not1mm/test.py,sha256=RN71m2S9MPIOJMaoCi0wZhwEhpEZunvtosZxaKahRB4,101
11
11
  not1mm/vfo.py,sha256=ggPyWtxMbdSE5RwdK0nDRwDNqOxdpb_pvnzZdbzZVQE,11136
12
12
  not1mm/voice_keying.py,sha256=sA3gw5_k7kShTg2qhG7HkKDM5M6KheJVRkAc_C7mxDk,3006
@@ -115,7 +115,7 @@ not1mm/lib/plugin_common.py,sha256=gpYDYRu_-w8QiLNXPLjKzE47Fhgv-q7yrLu0-BwEpVY,1
115
115
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
116
116
  not1mm/lib/settings.py,sha256=j5lIMLHJ-eqIaVr_QhI82gkbOl17_C-5suRkWbHYET8,14717
117
117
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
118
- not1mm/lib/version.py,sha256=szIJzvfgl4Q3uj53Wst_zg1KvKsYv2FK-7_N6YPVm_o,50
118
+ not1mm/lib/version.py,sha256=Y733EEADBRN-bkIKXrCFMSoVV0drC1bWD8H8Tx3wHpQ,48
119
119
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
120
120
  not1mm/plugins/10_10_fall_cw.py,sha256=AsvB2VUd6Qb2_FzZkSBkSd1_qeP8Dt-B-exF1Pzb9tk,14469
121
121
  not1mm/plugins/10_10_spring_cw.py,sha256=nA4v0oqlp-ivvKqNPakb19I-wE_ElhvH5bCzDRx00JU,14474
@@ -152,7 +152,7 @@ not1mm/plugins/iaru_hf.py,sha256=RcVf0UFaHX0eSpUZMMGHC0HTsOy_SwTH9Yi9SeJNQUA,157
152
152
  not1mm/plugins/icwc_mst.py,sha256=iFV7iHdI8BLnag-gkQ2q0S4h9n7jXoZ0oTJxtTG14OU,16366
153
153
  not1mm/plugins/jidx_cw.py,sha256=KJOE3fU0KVMqD5IqvnN3YDHPEwrMx3yJZBmCtAIP7WQ,15650
154
154
  not1mm/plugins/jidx_ph.py,sha256=1l92EmDZJFRGZjR1VrISgFc8KoHVfmJvLsaVsuufIMs,14599
155
- not1mm/plugins/k1usn_sst.py,sha256=71uO6nUf86J77qSQIiYl_H9EKa2iwyHijcMOk61q6uQ,16653
155
+ not1mm/plugins/k1usn_sst.py,sha256=dbYOZgrMWK-O2pX3dnxiC27a0nghgh3f_9oFwRNCQwc,17043
156
156
  not1mm/plugins/lz-dx.py,sha256=I9k67Q9ifSfbrd0ptfr6nOsp6PGfzLifQlVLJYJeOBk,19505
157
157
  not1mm/plugins/naqp_cw.py,sha256=oe0Ytx185hUGvebSc0vzFwdBOpNkIFRgGabGSmaV7H8,18576
158
158
  not1mm/plugins/naqp_rtty.py,sha256=7bGe33TP4VSVgwv3-pPa8Xfkx0SXbe8sV-0LmTlOugo,22260
@@ -164,9 +164,9 @@ not1mm/plugins/ref_ssb.py,sha256=G2Gz4kApchmOZQVnBexEokSEvdb-mZWJAfyJ1D6JDGY,204
164
164
  not1mm/plugins/stew_perry_topband.py,sha256=Gy_vv6tgkR-3vmvsUVO0pVfHMkUJSxpt7G4secn0RH8,15084
165
165
  not1mm/plugins/weekly_rtty.py,sha256=PI0_AtEdZZKGAuKnP-b2EYn9xwCN1Ablk38trbNP3Rc,19603
166
166
  not1mm/plugins/winter_field_day.py,sha256=9w3tDL9ZWiENSTERc3vzDbBktvI7pnyNvlH6fDjAi08,14841
167
- not1mm-24.12.5.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
168
- not1mm-24.12.5.1.dist-info/METADATA,sha256=tYCfOzNbIMOj91v3fsxr2pXNmOFtxfXN55CYFcKjGdc,35613
169
- not1mm-24.12.5.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
170
- not1mm-24.12.5.1.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
171
- not1mm-24.12.5.1.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
172
- not1mm-24.12.5.1.dist-info/RECORD,,
167
+ not1mm-24.12.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
168
+ not1mm-24.12.6.dist-info/METADATA,sha256=oiVHT7cgjLaxapmDVRw5lCg7fQPCT3cAlnVQ35wDDzs,35653
169
+ not1mm-24.12.6.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
170
+ not1mm-24.12.6.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
171
+ not1mm-24.12.6.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
172
+ not1mm-24.12.6.dist-info/RECORD,,