not1mm 25.1.27.1__py3-none-any.whl → 25.1.27.2__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/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "25.1.27.1"
3
+ __version__ = "25.1.27.2"
@@ -6,6 +6,7 @@ import logging
6
6
 
7
7
  from PyQt6 import QtWidgets
8
8
 
9
+ from not1mm.lib.ham_utility import get_logged_band
9
10
  from not1mm.lib.plugin_common import gen_adif, get_points
10
11
  from not1mm.lib.version import __version__
11
12
 
@@ -183,19 +184,18 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
183
184
  buttons_to_send.append(self.esm_dict["HISCALL"])
184
185
  buttons_to_send.append(self.esm_dict["EXCH"])
185
186
 
186
- # elif self.current_widget in ["other_1", "other_2"]:
187
- # if self.other_2.text() == "" and self.other_1.text() == "":
188
- # self.make_button_green(self.esm_dict["AGN"])
189
- # buttons_to_send.append(self.esm_dict["AGN"])
190
- # else:
191
- # self.make_button_green(self.esm_dict["QRZ"])
192
- # buttons_to_send.append(self.esm_dict["QRZ"])
193
- # buttons_to_send.append("LOGIT")
187
+ # elif self.current_widget in ["other_1", "other_2"]:
188
+ # if self.other_2.text() == "" and self.other_1.text() == "":
189
+ # self.make_button_green(self.esm_dict["AGN"])
190
+ # buttons_to_send.append(self.esm_dict["AGN"])
191
+ # else:
192
+ # self.make_button_green(self.esm_dict["QRZ"])
193
+ # buttons_to_send.append(self.esm_dict["QRZ"])
194
+ # buttons_to_send.append("LOGIT")
194
195
 
195
196
  elif self.current_widget in ["other_1", "other_2"]:
196
197
  buttons_to_send.append("LOGIT")
197
198
 
198
-
199
199
  if with_enter is True and bool(len(buttons_to_send)):
200
200
  for button in buttons_to_send:
201
201
  if button:
@@ -209,19 +209,18 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
209
209
  self.make_button_green(self.esm_dict["MYCALL"])
210
210
  buttons_to_send.append(self.esm_dict["MYCALL"])
211
211
 
212
- # elif self.current_widget in ["other_1", "other_2"]:
213
- # if self.other_2.text() == "" and self.other_1.text() == "":
214
- # self.make_button_green(self.esm_dict["AGN"])
215
- # buttons_to_send.append(self.esm_dict["AGN"])
216
- # else:
217
- # self.make_button_green(self.esm_dict["EXCH"])
218
- # buttons_to_send.append(self.esm_dict["EXCH"])
219
- # buttons_to_send.append("LOGIT")
212
+ # elif self.current_widget in ["other_1", "other_2"]:
213
+ # if self.other_2.text() == "" and self.other_1.text() == "":
214
+ # self.make_button_green(self.esm_dict["AGN"])
215
+ # buttons_to_send.append(self.esm_dict["AGN"])
216
+ # else:
217
+ # self.make_button_green(self.esm_dict["EXCH"])
218
+ # buttons_to_send.append(self.esm_dict["EXCH"])
219
+ # buttons_to_send.append("LOGIT")
220
220
 
221
221
  elif self.current_widget in ["other_1", "other_2"]:
222
222
  buttons_to_send.append("LOGIT")
223
223
 
224
-
225
224
  if with_enter is True and bool(len(buttons_to_send)):
226
225
  for button in buttons_to_send:
227
226
  if button:
@@ -248,3 +247,90 @@ def check_call_history(self):
248
247
  self.history_info.setText(f"{result.get('UserText','')}")
249
248
  if self.other_1.text() == "":
250
249
  self.other_1.setText(f"{result.get('Name', '')}")
250
+
251
+
252
+ def set_self(the_outie):
253
+ """..."""
254
+ globals()["ALTEREGO"] = the_outie
255
+
256
+
257
+ def ft8_handler(the_packet: dict):
258
+ """Process FT8 QSO packets
259
+ FT8
260
+ {
261
+ 'CALL': 'KE0OG',
262
+ 'GRIDSQUARE': 'DM10AT',
263
+ 'MODE': 'FT8',
264
+ 'RST_SENT': '',
265
+ 'RST_RCVD': '',
266
+ 'QSO_DATE': '20210329',
267
+ 'TIME_ON': '183213',
268
+ 'QSO_DATE_OFF': '20210329',
269
+ 'TIME_OFF': '183213',
270
+ 'BAND': '20M',
271
+ 'FREQ': '14.074754',
272
+ 'STATION_CALLSIGN': 'K6GTE',
273
+ 'MY_GRIDSQUARE': 'DM13AT',
274
+ 'CONTEST_ID': 'ARRL-FIELD-DAY',
275
+ 'SRX_STRING': '1D UT',
276
+ 'CLASS': '1D',
277
+ 'ARRL_SECT': 'UT'
278
+ }
279
+ FlDigi
280
+ {
281
+ 'FREQ': '7.029500',
282
+ 'CALL': 'DL2DSL',
283
+ 'MODE': 'RTTY',
284
+ 'NAME': 'BOB',
285
+ 'QSO_DATE': '20240904',
286
+ 'QSO_DATE_OFF': '20240904',
287
+ 'TIME_OFF': '212825',
288
+ 'TIME_ON': '212800',
289
+ 'RST_RCVD': '599',
290
+ 'RST_SENT': '599',
291
+ 'BAND': '40M',
292
+ 'COUNTRY': 'FED. REP. OF GERMANY',
293
+ 'CQZ': '14',
294
+ 'STX': '000',
295
+ 'STX_STRING': '1D ORG',
296
+ 'CLASS': '1D',
297
+ 'ARRL_SECT': 'DX',
298
+ 'TX_PWR': '0',
299
+ 'OPERATOR': 'K6GTE',
300
+ 'STATION_CALLSIGN': 'K6GTE',
301
+ 'MY_GRIDSQUARE': 'DM13AT',
302
+ 'MY_CITY': 'ANAHEIM, CA',
303
+ 'MY_STATE': 'CA'
304
+ }
305
+
306
+ """
307
+ # print(f"\n{the_packet=}\n")
308
+ if ALTEREGO is not None:
309
+ ALTEREGO.callsign.setText(the_packet.get("CALL"))
310
+ ALTEREGO.contact["Call"] = the_packet.get("CALL", "")
311
+ ALTEREGO.contact["SNT"] = ALTEREGO.sent.text()
312
+ ALTEREGO.contact["RCV"] = ALTEREGO.receive.text()
313
+ my_grid = the_packet.get("MY_GRIDSQUARE", "")
314
+ if my_grid:
315
+ if len(my_grid) > 4:
316
+ my_grid = my_grid[:4]
317
+ their_grid = the_packet.get("GRIDSQUARE", "")
318
+ if their_grid:
319
+ if len(their_grid) > 4:
320
+ their_grid = their_grid[:4]
321
+ ALTEREGO.contact["NR"] = their_grid
322
+ if the_packet.get("SUBMODE"):
323
+ ALTEREGO.contact["Mode"] = the_packet.get("SUBMODE", "ERR")
324
+ else:
325
+ ALTEREGO.contact["Mode"] = the_packet.get("MODE", "ERR")
326
+ ALTEREGO.contact["Freq"] = round(float(the_packet.get("FREQ", "0.0")) * 1000, 2)
327
+ ALTEREGO.contact["QSXFreq"] = round(
328
+ float(the_packet.get("FREQ", "0.0")) * 1000, 2
329
+ )
330
+ ALTEREGO.contact["Band"] = get_logged_band(
331
+ str(int(float(the_packet.get("FREQ", "0.0")) * 1000000))
332
+ )
333
+ # print(f"\n{ALTEREGO.contact=}\n")
334
+ # ALTEREGO.other_1.setText(my_grid)
335
+ # ALTEREGO.other_2.setText(their_grid)
336
+ ALTEREGO.save_contact()
@@ -44,7 +44,7 @@ EXCHANGE_HINT = "4-character grid square"
44
44
 
45
45
  name = "LABRE-RS Digi"
46
46
  mode = "RTTY" # CW SSB BOTH RTTY
47
- cabrillo_name = "CQWW-DIGI"
47
+ cabrillo_name = "LABRE-DIGI"
48
48
 
49
49
  columns = [
50
50
  "YYYY-MM-DD HH:MM:SS",
@@ -150,8 +150,9 @@ def points(self):
150
150
  # QSO Points: 1 point per QSO
151
151
  # 1 additional point per QSO with PY3,PU3,ZZ3,PP3,etc
152
152
 
153
- if self.contact.get("Call", "") in ["PY3", "PU3", "ZZ3", "PP3"]:
154
- return 2
153
+ if len(self.contact.get("Call", "")) > 2:
154
+ if self.contact.get("Call", "")[:3] in ["PY3", "PU3", "ZZ3", "PP3", "PX3"]:
155
+ return 2
155
156
  return 1
156
157
 
157
158
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: not1mm
3
- Version: 25.1.27.1
3
+ Version: 25.1.27.2
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
@@ -116,7 +116,7 @@ not1mm/lib/plugin_common.py,sha256=M5reDYM-v5IjAa2yTROvZTeTDkXYHb3U52W9mc9GxwA,1
116
116
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
117
117
  not1mm/lib/settings.py,sha256=j5lIMLHJ-eqIaVr_QhI82gkbOl17_C-5suRkWbHYET8,14717
118
118
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
119
- not1mm/lib/version.py,sha256=vfggR4aagLgq0Z-62g_sIFuPURJDRsfYYSPS1gT0eMc,50
119
+ not1mm/lib/version.py,sha256=XjMh_RBKe95tt8IFtzLnUjE2QjqaeceLeQPn474P2gw,50
120
120
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
121
121
  not1mm/plugins/10_10_fall_cw.py,sha256=5QUyGMvGBC-HxcY_z9QbfuxSg3f7p6C9K4qhTxgZE7k,14719
122
122
  not1mm/plugins/10_10_spring_cw.py,sha256=XjYFM263WYyG6nVQzPObW4YC7Z9L93rixSOcVsxPvH4,14722
@@ -145,7 +145,7 @@ not1mm/plugins/cq_ww_rtty.py,sha256=RJywVSNujM4CxxTRCGKXhjmbz6OMzGR5eHSAmQcT6Pc,
145
145
  not1mm/plugins/cq_ww_ssb.py,sha256=uRMXaTfkIt7QJxQBaBAvc2fmT6ak26SzBBezd5k_hMc,17991
146
146
  not1mm/plugins/cwt.py,sha256=7BoKVrIywlHpP4f4_mrUyWKVsK6vujreb8jDWyXrwUc,17530
147
147
  not1mm/plugins/darc_xmas.py,sha256=p9JbOJlEoOsB86E5ciHdrY7L-10tnNEWuTxq9EfCNBM,18907
148
- not1mm/plugins/general_logging.py,sha256=gpZhoBr9fKpcTrefufmtvMHVrzlSqUsch64O8-oKhls,6915
148
+ not1mm/plugins/general_logging.py,sha256=gm33-pfbsc4Omz__ujAMMue8GGLIWvVzz0sZ6XOpKIo,9782
149
149
  not1mm/plugins/helvetia.py,sha256=ANsktNEXppSrxiIXeCwRd3GtFu27UjAp3cbA5wwmL2E,20015
150
150
  not1mm/plugins/iaru_fieldday_r1_cw.py,sha256=lueTnK50yRSMqASlktrhuFOJkSBDsQw4OyT9eYwpugU,17155
151
151
  not1mm/plugins/iaru_fieldday_r1_ssb.py,sha256=1lYxeo4j_piiFZ_db-vHIHT5c1jSeFPBuw6yf1kur6Y,17159
@@ -154,7 +154,7 @@ not1mm/plugins/icwc_mst.py,sha256=XfaIRIj0BxWvpWk2nmy_dMseVuKVOh-_m3UcIGOy6wI,16
154
154
  not1mm/plugins/jidx_cw.py,sha256=gSScw21ac2Rpdd7jspgh5gnH9JdiR8h3YOa-41B_T94,15881
155
155
  not1mm/plugins/jidx_ph.py,sha256=0E5xHs0WXh-x2Z6UC2PGqmLdIkn-jWbENOeLopr7rys,14830
156
156
  not1mm/plugins/k1usn_sst.py,sha256=WfRF-emC52IIjOEddGmEQ_gWlMqoBbhCQ7S56nAZ4M8,17134
157
- not1mm/plugins/labre_rs_digi.py,sha256=ueytVNrg2mkTEouq9dkWI90EZMgtDLCZ1TWNeXB-iyA,19975
157
+ not1mm/plugins/labre_rs_digi.py,sha256=nGlZ_wuB0DYZTk-nBW8Z10E-IZCasCENmbQXuz5BjVc,20041
158
158
  not1mm/plugins/lz-dx.py,sha256=HLU7FopHryEHPtAH2-mopeWSY6E_uwNgh8_sM27E2F0,19824
159
159
  not1mm/plugins/naqp_cw.py,sha256=Aq9bRn9uRm6PXd1WVckZJ4GTbiBcPFnPRQAydEVmeAs,18897
160
160
  not1mm/plugins/naqp_rtty.py,sha256=JbjsY9DvVexXdzoPE4k9zSmcYNEMQpB9lrxdRxl_ldc,22639
@@ -166,9 +166,9 @@ not1mm/plugins/ref_ssb.py,sha256=Z_XmMpYKcI5dZh4TQqvQDcz-cLpMzpDEKBnb5iHeBLQ,215
166
166
  not1mm/plugins/stew_perry_topband.py,sha256=D1hekmMbx-i4BhaP2uzOK3OzaVVMMdgcN3RmfweNqHo,15341
167
167
  not1mm/plugins/weekly_rtty.py,sha256=rdlIrsxBeuj-RQc5OStVNF7sGCtBK5t6inN5Z7DI4tw,20066
168
168
  not1mm/plugins/winter_field_day.py,sha256=JK4r1vfxs7aADR7ZYbjZniz3f5s3_ipSQDZ0GRNWC7I,15222
169
- not1mm-25.1.27.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
170
- not1mm-25.1.27.1.dist-info/METADATA,sha256=Y28G2qoTsLkqDuE4h-BWmfZBZd9mhQFDQ9ex9gBw7b8,36037
171
- not1mm-25.1.27.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
172
- not1mm-25.1.27.1.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
173
- not1mm-25.1.27.1.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
174
- not1mm-25.1.27.1.dist-info/RECORD,,
169
+ not1mm-25.1.27.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
170
+ not1mm-25.1.27.2.dist-info/METADATA,sha256=lGYUOPEI6LSuYi5mbYy9JpC633J053_HVOg4-7uN6ME,36037
171
+ not1mm-25.1.27.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
172
+ not1mm-25.1.27.2.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
173
+ not1mm-25.1.27.2.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
174
+ not1mm-25.1.27.2.dist-info/RECORD,,