not1mm 24.11.24.1__py3-none-any.whl → 24.11.26__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 +1 -0
- not1mm/lib/cat_interface.py +24 -14
- not1mm/lib/version.py +1 -1
- not1mm/plugins/cq_ww_cw.py +14 -5
- not1mm/plugins/cq_ww_ssb.py +13 -5
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/METADATA +3 -1
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/RECORD +11 -11
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/LICENSE +0 -0
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/WHEEL +0 -0
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/entry_points.txt +0 -0
- {not1mm-24.11.24.1.dist-info → not1mm-24.11.26.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
not1mm/lib/cat_interface.py
CHANGED
@@ -284,8 +284,11 @@ class CAT:
|
|
284
284
|
if self.rigctrlsocket:
|
285
285
|
try:
|
286
286
|
self.online = True
|
287
|
-
self.rigctrlsocket.send(b"f\n")
|
288
|
-
|
287
|
+
self.rigctrlsocket.send(b"|f\n")
|
288
|
+
report = self.__get_serial_string().strip()
|
289
|
+
if "get_freq:|" in report and "RPRT 0" in report:
|
290
|
+
seg_rpt = report.split("|")
|
291
|
+
return seg_rpt[1].split(" ")[1]
|
289
292
|
except socket.error as exception:
|
290
293
|
self.online = False
|
291
294
|
logger.debug(f"{exception=}")
|
@@ -334,11 +337,12 @@ class CAT:
|
|
334
337
|
if self.rigctrlsocket:
|
335
338
|
try:
|
336
339
|
self.online = True
|
337
|
-
self.rigctrlsocket.send(b"m\n")
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
340
|
+
self.rigctrlsocket.send(b"|m\n")
|
341
|
+
# get_mode:|Mode: CW|Passband: 500|RPRT 0
|
342
|
+
report = self.__get_serial_string().strip()
|
343
|
+
if "getmode:|" in report and "RPRT 0" in report:
|
344
|
+
seg_rpt = report.split("|")
|
345
|
+
return seg_rpt[1].split(" ")[1]
|
342
346
|
except IndexError as exception:
|
343
347
|
logger.debug("%s", f"{exception}")
|
344
348
|
except socket.error as exception:
|
@@ -382,11 +386,13 @@ class CAT:
|
|
382
386
|
if self.rigctrlsocket:
|
383
387
|
try:
|
384
388
|
self.online = True
|
385
|
-
self.rigctrlsocket.send(b"m\n")
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
389
|
+
self.rigctrlsocket.send(b"|m\n")
|
390
|
+
# get_mode:|Mode: CW|Passband: 500|RPRT 0
|
391
|
+
report = self.__get_serial_string().strip()
|
392
|
+
if "getmode:|" in report and "RPRT 0" in report:
|
393
|
+
seg_rpt = report.split("|")
|
394
|
+
return seg_rpt[2].split(" ")[1]
|
395
|
+
|
390
396
|
except IndexError as exception:
|
391
397
|
logger.debug("%s", f"{exception}")
|
392
398
|
except socket.error as exception:
|
@@ -425,8 +431,12 @@ class CAT:
|
|
425
431
|
if self.rigctrlsocket:
|
426
432
|
try:
|
427
433
|
self.online = True
|
428
|
-
self.rigctrlsocket.send(b"l RFPOWER\n")
|
429
|
-
|
434
|
+
self.rigctrlsocket.send(b"|l RFPOWER\n")
|
435
|
+
# get_level: RFPOWER|0.000000|RPRT 0
|
436
|
+
report = self.__get_serial_string().strip()
|
437
|
+
if "get_level: RFPOWER|" in report and "RPRT 0" in report:
|
438
|
+
seg_rpt = report.split("|")
|
439
|
+
return int(float(seg_rpt[1]) * 100)
|
430
440
|
except socket.error as exception:
|
431
441
|
self.online = False
|
432
442
|
logger.debug("getpower_rigctld: %s", f"{exception}")
|
not1mm/lib/version.py
CHANGED
not1mm/plugins/cq_ww_cw.py
CHANGED
@@ -154,17 +154,26 @@ def points(self):
|
|
154
154
|
mycountry = item[1].get("entity", "")
|
155
155
|
mycontinent = item[1].get("continent", "")
|
156
156
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
157
|
+
|
157
158
|
if result:
|
158
159
|
for item in result.items():
|
159
160
|
entity = item[1].get("entity", "")
|
160
161
|
continent = item[1].get("continent", "")
|
161
|
-
|
162
|
-
|
163
|
-
if mycontinent
|
162
|
+
|
163
|
+
# Contacts between stations on different continents count three (3) points.
|
164
|
+
if mycontinent != continent:
|
165
|
+
return 3
|
166
|
+
|
167
|
+
# Exception: Contacts between stations in different countries within the North American boundaries count two (2) points.
|
168
|
+
if (mycontinent == "NA" and continent == "NA") and mycountry != entity:
|
164
169
|
return 2
|
165
|
-
|
170
|
+
|
171
|
+
# Contacts between stations on the same continent but in different countries count one (1) point.
|
172
|
+
if mycountry.upper() != entity.upper():
|
166
173
|
return 1
|
167
|
-
|
174
|
+
|
175
|
+
# Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
|
176
|
+
|
168
177
|
return 0
|
169
178
|
|
170
179
|
|
not1mm/plugins/cq_ww_ssb.py
CHANGED
@@ -149,13 +149,21 @@ def points(self):
|
|
149
149
|
for item in result.items():
|
150
150
|
entity = item[1].get("entity", "")
|
151
151
|
continent = item[1].get("continent", "")
|
152
|
-
|
153
|
-
|
154
|
-
if mycontinent
|
152
|
+
|
153
|
+
# Contacts between stations on different continents count three (3) points.
|
154
|
+
if mycontinent != continent:
|
155
|
+
return 3
|
156
|
+
|
157
|
+
# Exception: Contacts between stations in different countries within the North American boundaries count two (2) points.
|
158
|
+
if (mycontinent == "NA" and continent == "NA") and mycountry != entity:
|
155
159
|
return 2
|
156
|
-
|
160
|
+
|
161
|
+
# Contacts between stations on the same continent but in different countries count one (1) point.
|
162
|
+
if mycountry.upper() != entity.upper():
|
157
163
|
return 1
|
158
|
-
|
164
|
+
|
165
|
+
# Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
|
166
|
+
|
159
167
|
return 0
|
160
168
|
|
161
169
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: not1mm
|
3
|
-
Version: 24.11.
|
3
|
+
Version: 24.11.26
|
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
|
@@ -238,6 +238,8 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
|
|
238
238
|
|
239
239
|
## Recent Changes (Polishing the Turd)
|
240
240
|
|
241
|
+
- [24-11-26] Trying something different with rigctld parsing.
|
242
|
+
- [24-11-15] Fix CQWW points, fix mode showing as RPRT.
|
241
243
|
- [24-11-24-1] Add ESM to CQ160, ARRL VHF, ARRL 10M, 10 10 contests.
|
242
244
|
- [24-11-24] Added ESM to IARU HF and FieldDay.
|
243
245
|
- [24-11-23] Made macros per contest.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
not1mm/__main__.py,sha256=
|
2
|
+
not1mm/__main__.py,sha256=d7-uGIvAOSXXomXCiIaMJMd0TPNwobMIEXIvPtUhVKc,142554
|
3
3
|
not1mm/bandmap.py,sha256=X6mMHXS1kXBbUPZCaKgiVJ6Dz6DE6LEQqtEXfT3telg,30811
|
4
4
|
not1mm/checkwindow.py,sha256=VFAcKYTcoWhmIf91chwY6tyao9FQMWPiUkgDDkkWaog,9670
|
5
5
|
not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
|
@@ -95,7 +95,7 @@ not1mm/data/phonetics/yourcall.wav,sha256=4kheHJmCiRDL2kjhlgXQ8_u_eEMgKxiNGu5UBk
|
|
95
95
|
not1mm/data/phonetics/z.wav,sha256=arafCi7fwmBLdVDI-PRyaL4U-03PIQDhffwY5noJ_2c,51768
|
96
96
|
not1mm/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
97
|
not1mm/lib/about.py,sha256=sWycfGcruN3SaEe4JmaJ61K6D8Itq0WxpUYT-lEcmYM,416
|
98
|
-
not1mm/lib/cat_interface.py,sha256
|
98
|
+
not1mm/lib/cat_interface.py,sha256=0R9ZiEZ0u0RzPrw_hrFNIdS4ybUBgAKtD74x2jdCVIU,25094
|
99
99
|
not1mm/lib/cwinterface.py,sha256=yQL8Dif9oOIynaRItHgvcmu4mYv1TnTpqCHPtkeb09o,4472
|
100
100
|
not1mm/lib/database.py,sha256=nqWp2eJ7JfUTqaQ9AVbx3XjgtlRnYY9ruTQCv2YRreY,48310
|
101
101
|
not1mm/lib/edit_contact.py,sha256=Ki9bGPpqyQQBB1cU8VIBDCal3lbXeQ6qxhzklmhE2_w,353
|
@@ -114,7 +114,7 @@ not1mm/lib/plugin_common.py,sha256=AABdx9DoTT8Znrup7AkfmKGC22hshMsEypiMqV0iKw0,1
|
|
114
114
|
not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
|
115
115
|
not1mm/lib/settings.py,sha256=Xt0WE2ro_kUYdugQ0Pe1SQX07MHrJ0jyQqDqAKKqxuU,13564
|
116
116
|
not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
|
117
|
-
not1mm/lib/version.py,sha256=
|
117
|
+
not1mm/lib/version.py,sha256=FxdEet95vFPRv6WrYaqlWU774Y52-AasJqL--L3Lsmk,49
|
118
118
|
not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
|
119
119
|
not1mm/plugins/10_10_fall_cw.py,sha256=AsvB2VUd6Qb2_FzZkSBkSd1_qeP8Dt-B-exF1Pzb9tk,14469
|
120
120
|
not1mm/plugins/10_10_spring_cw.py,sha256=nA4v0oqlp-ivvKqNPakb19I-wE_ElhvH5bCzDRx00JU,14474
|
@@ -137,9 +137,9 @@ not1mm/plugins/cq_160_ssb.py,sha256=_0bkvq0KvSdyTBhkqJ35VqXuaWIaDNmBGE1aQ-cxQz8,
|
|
137
137
|
not1mm/plugins/cq_wpx_cw.py,sha256=H1H4xL-hx0sqU_8fSQYnNzO0ZcOLV-KSOQT9wPvIva0,17843
|
138
138
|
not1mm/plugins/cq_wpx_rtty.py,sha256=nT2lMdAM1pRu2jNKI4FpkGei9kEGX0XcF_24FkL0lnY,20662
|
139
139
|
not1mm/plugins/cq_wpx_ssb.py,sha256=Zjga12w_ISh4aZjCYZbpwN0x0032Prc8p7aIGI7HJFQ,16410
|
140
|
-
not1mm/plugins/cq_ww_cw.py,sha256=
|
140
|
+
not1mm/plugins/cq_ww_cw.py,sha256=POh_H6FlZrFeayt4x0aGn-xytcPZ_Ww8w8mFStoLyOE,17893
|
141
141
|
not1mm/plugins/cq_ww_rtty.py,sha256=Pfpr8xWJwp2NOci-WQMTUZaMpAtsUGq1jrIIUv6lQ2Y,21971
|
142
|
-
not1mm/plugins/cq_ww_ssb.py,sha256=
|
142
|
+
not1mm/plugins/cq_ww_ssb.py,sha256=IyPmEImq_eb5YSFuhHxiJU4EFAPB4D5dg2xED6Nu97k,17491
|
143
143
|
not1mm/plugins/cwt.py,sha256=3gA1DqiXxj5NARdG5i0PyFmuq3XSXn6LisZxD5jFs4M,17034
|
144
144
|
not1mm/plugins/darc_xmas.py,sha256=GdtAQVCLogKGzZaexJfzsZms5SbLLlO1YweFPjgvYWw,18458
|
145
145
|
not1mm/plugins/general_logging.py,sha256=NV_FCgpAEEQrVRxMDD7nQ2krJgPrhtopizxrGndtUNk,6686
|
@@ -162,9 +162,9 @@ not1mm/plugins/ref_ssb.py,sha256=G2Gz4kApchmOZQVnBexEokSEvdb-mZWJAfyJ1D6JDGY,204
|
|
162
162
|
not1mm/plugins/stew_perry_topband.py,sha256=Gy_vv6tgkR-3vmvsUVO0pVfHMkUJSxpt7G4secn0RH8,15084
|
163
163
|
not1mm/plugins/weekly_rtty.py,sha256=PI0_AtEdZZKGAuKnP-b2EYn9xwCN1Ablk38trbNP3Rc,19603
|
164
164
|
not1mm/plugins/winter_field_day.py,sha256=9w3tDL9ZWiENSTERc3vzDbBktvI7pnyNvlH6fDjAi08,14841
|
165
|
-
not1mm-24.11.
|
166
|
-
not1mm-24.11.
|
167
|
-
not1mm-24.11.
|
168
|
-
not1mm-24.11.
|
169
|
-
not1mm-24.11.
|
170
|
-
not1mm-24.11.
|
165
|
+
not1mm-24.11.26.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
166
|
+
not1mm-24.11.26.dist-info/METADATA,sha256=NRcxaZSmZzhBHfcvVf17zlbVx9lbDrjoqx_uvvZH8Wg,36732
|
167
|
+
not1mm-24.11.26.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
168
|
+
not1mm-24.11.26.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
|
169
|
+
not1mm-24.11.26.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
|
170
|
+
not1mm-24.11.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|