not1mm 24.7.12__py3-none-any.whl → 24.7.13__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 +27 -24
- not1mm/lib/cat_interface.py +20 -0
- not1mm/lib/ham_utility.py +1 -1
- not1mm/lib/version.py +1 -1
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/METADATA +2 -3
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/RECORD +10 -10
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/LICENSE +0 -0
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/WHEEL +0 -0
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/entry_points.txt +0 -0
- {not1mm-24.7.12.dist-info → not1mm-24.7.13.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
@@ -2863,7 +2863,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
2863
2863
|
None
|
2864
2864
|
"""
|
2865
2865
|
|
2866
|
-
if mode
|
2866
|
+
if mode in ("CW", "CW-U", "CW-L"):
|
2867
2867
|
self.setmode("CW")
|
2868
2868
|
self.radio_state["mode"] = "CW"
|
2869
2869
|
if self.rig_control:
|
@@ -3015,7 +3015,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3015
3015
|
|
3016
3016
|
def setmode(self, mode: str) -> None:
|
3017
3017
|
"""Call when the mode changes."""
|
3018
|
-
if mode
|
3018
|
+
if mode in ("CW", "CW-U", "CW-L"):
|
3019
3019
|
if self.current_mode != "CW":
|
3020
3020
|
self.current_mode = "CW"
|
3021
3021
|
self.sent.setText("599")
|
@@ -3032,7 +3032,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3032
3032
|
self.receive.setText("59")
|
3033
3033
|
self.read_cw_macros()
|
3034
3034
|
return
|
3035
|
-
if mode
|
3035
|
+
if mode in ("RTTY", "DIGI-U", "DIGI-L"):
|
3036
3036
|
if self.current_mode != "RTTY":
|
3037
3037
|
self.current_mode = "RTTY"
|
3038
3038
|
self.sent.setText("59")
|
@@ -3145,7 +3145,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3145
3145
|
info_dirty = True
|
3146
3146
|
self.radio_state["bw"] = bw
|
3147
3147
|
|
3148
|
-
if mode
|
3148
|
+
if mode in ("CW", "CW-U", "CW-L"):
|
3149
3149
|
self.setmode(mode)
|
3150
3150
|
if mode == "LSB" or mode == "USB":
|
3151
3151
|
self.setmode("SSB")
|
@@ -3153,26 +3153,29 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3153
3153
|
self.setmode("RTTY")
|
3154
3154
|
|
3155
3155
|
if info_dirty:
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
if self.n1mm
|
3168
|
-
self.n1mm.
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
self.
|
3174
|
-
|
3175
|
-
|
3156
|
+
try:
|
3157
|
+
logger.debug("VFO: %s MODE: %s BW: %s", vfo, mode, bw)
|
3158
|
+
self.set_window_title()
|
3159
|
+
cmd = {}
|
3160
|
+
cmd["cmd"] = "RADIO_STATE"
|
3161
|
+
cmd["station"] = platform.node()
|
3162
|
+
cmd["band"] = band
|
3163
|
+
cmd["vfoa"] = vfo
|
3164
|
+
cmd["mode"] = mode
|
3165
|
+
cmd["bw"] = bw
|
3166
|
+
self.multicast_interface.send_as_json(cmd)
|
3167
|
+
if self.n1mm:
|
3168
|
+
if self.n1mm.send_radio_packets:
|
3169
|
+
self.n1mm.radio_info["Freq"] = vfo[:-1]
|
3170
|
+
self.n1mm.radio_info["TXFreq"] = vfo[:-1]
|
3171
|
+
self.n1mm.radio_info["Mode"] = mode
|
3172
|
+
self.n1mm.radio_info["OpCall"] = self.current_op
|
3173
|
+
self.n1mm.radio_info["IsRunning"] = str(
|
3174
|
+
self.pref.get("run_state", False)
|
3175
|
+
)
|
3176
|
+
self.n1mm.send_radio()
|
3177
|
+
except TypeError as err:
|
3178
|
+
logger.debug(f"{err=} {vfo=} {the_dict=}")
|
3176
3179
|
|
3177
3180
|
def edit_cw_macros(self) -> None:
|
3178
3181
|
"""
|
not1mm/lib/cat_interface.py
CHANGED
@@ -138,6 +138,8 @@ class CAT:
|
|
138
138
|
ConnectionRefusedError,
|
139
139
|
xmlrpc.client.Fault,
|
140
140
|
http.client.BadStatusLine,
|
141
|
+
http.client.CannotSendRequest,
|
142
|
+
http.client.ResponseNotReady,
|
141
143
|
) as exception:
|
142
144
|
self.online = False
|
143
145
|
logger.debug("getvfo_flrig: %s", f"{exception}")
|
@@ -177,6 +179,8 @@ class CAT:
|
|
177
179
|
ConnectionRefusedError,
|
178
180
|
xmlrpc.client.Fault,
|
179
181
|
http.client.BadStatusLine,
|
182
|
+
http.client.CannotSendRequest,
|
183
|
+
http.client.ResponseNotReady,
|
180
184
|
) as exception:
|
181
185
|
self.online = False
|
182
186
|
logger.debug("%s", f"{exception}")
|
@@ -220,6 +224,8 @@ class CAT:
|
|
220
224
|
ConnectionRefusedError,
|
221
225
|
xmlrpc.client.Fault,
|
222
226
|
http.client.BadStatusLine,
|
227
|
+
http.client.CannotSendRequest,
|
228
|
+
http.client.ResponseNotReady,
|
223
229
|
) as exception:
|
224
230
|
self.online = False
|
225
231
|
logger.debug("getbw_flrig: %s", f"{exception}")
|
@@ -261,6 +267,8 @@ class CAT:
|
|
261
267
|
ConnectionRefusedError,
|
262
268
|
xmlrpc.client.Fault,
|
263
269
|
http.client.BadStatusLine,
|
270
|
+
http.client.CannotSendRequest,
|
271
|
+
http.client.ResponseNotReady,
|
264
272
|
) as exception:
|
265
273
|
self.online = False
|
266
274
|
logger.debug("getpower_flrig: %s", f"{exception}")
|
@@ -295,6 +303,8 @@ class CAT:
|
|
295
303
|
ConnectionRefusedError,
|
296
304
|
xmlrpc.client.Fault,
|
297
305
|
http.client.BadStatusLine,
|
306
|
+
http.client.CannotSendRequest,
|
307
|
+
http.client.ResponseNotReady,
|
298
308
|
) as exception:
|
299
309
|
self.online = False
|
300
310
|
logger.debug("%s", f"{exception}")
|
@@ -333,6 +343,8 @@ class CAT:
|
|
333
343
|
ConnectionRefusedError,
|
334
344
|
xmlrpc.client.Fault,
|
335
345
|
http.client.BadStatusLine,
|
346
|
+
http.client.CannotSendRequest,
|
347
|
+
http.client.ResponseNotReady,
|
336
348
|
) as exception:
|
337
349
|
self.online = False
|
338
350
|
logger.debug("setvfo_flrig: %s", f"{exception}")
|
@@ -371,6 +383,8 @@ class CAT:
|
|
371
383
|
ConnectionRefusedError,
|
372
384
|
xmlrpc.client.Fault,
|
373
385
|
http.client.BadStatusLine,
|
386
|
+
http.client.CannotSendRequest,
|
387
|
+
http.client.ResponseNotReady,
|
374
388
|
) as exception:
|
375
389
|
self.online = False
|
376
390
|
logger.debug("setmode_flrig: %s", f"{exception}")
|
@@ -408,6 +422,8 @@ class CAT:
|
|
408
422
|
ConnectionRefusedError,
|
409
423
|
xmlrpc.client.Fault,
|
410
424
|
http.client.BadStatusLine,
|
425
|
+
http.client.CannotSendRequest,
|
426
|
+
http.client.ResponseNotReady,
|
411
427
|
) as exception:
|
412
428
|
self.online = False
|
413
429
|
logger.debug("setpower_flrig: %s", f"{exception}")
|
@@ -462,6 +478,8 @@ class CAT:
|
|
462
478
|
ConnectionRefusedError,
|
463
479
|
xmlrpc.client.Fault,
|
464
480
|
http.client.BadStatusLine,
|
481
|
+
http.client.CannotSendRequest,
|
482
|
+
http.client.ResponseNotReady,
|
465
483
|
) as exception:
|
466
484
|
self.online = False
|
467
485
|
logger.debug("%s", f"{exception}")
|
@@ -496,6 +514,8 @@ class CAT:
|
|
496
514
|
ConnectionRefusedError,
|
497
515
|
xmlrpc.client.Fault,
|
498
516
|
http.client.BadStatusLine,
|
517
|
+
http.client.CannotSendRequest,
|
518
|
+
http.client.ResponseNotReady,
|
499
519
|
) as exception:
|
500
520
|
self.online = False
|
501
521
|
logger.debug("%s", f"{exception}")
|
not1mm/lib/ham_utility.py
CHANGED
@@ -242,7 +242,7 @@ def fakefreq(band: str, mode: str) -> str:
|
|
242
242
|
"80": ["3530", "3559", "3970"],
|
243
243
|
"60": ["5332", "5373", "5405"],
|
244
244
|
"40": ["7030", "7040", "7250"],
|
245
|
-
"30": ["10130", "10130", "
|
245
|
+
"30": ["10130", "10130", "10130"],
|
246
246
|
"20": ["14030", "14070", "14250"],
|
247
247
|
"17": ["18080", "18100", "18150"],
|
248
248
|
"15": ["21065", "21070", "21200"],
|
not1mm/lib/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: not1mm
|
3
|
-
Version: 24.7.
|
3
|
+
Version: 24.7.13
|
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
|
@@ -223,8 +223,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
|
|
223
223
|
|
224
224
|
## Recent Changes
|
225
225
|
|
226
|
-
- [24-
|
227
|
-
- [24-6-1] Added leading zeros to S/N's less than 100.
|
226
|
+
- [24-7-13] Trap Exceptions in flrig xmlrpc client.
|
228
227
|
|
229
228
|
See [CHANGELOG.md](CHANGELOG.md) for prior changes.
|
230
229
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
not1mm/__main__.py,sha256=
|
2
|
+
not1mm/__main__.py,sha256=OIQmaLr7Fs3ODGt5J0OnUXxArTysREun1A2nRE-5wYU,120737
|
3
3
|
not1mm/bandmap.py,sha256=Ml5DDoybk_I56q2WLYDKE4lfmh6pb9XxW0qpl5nDFYY,32161
|
4
4
|
not1mm/checkwindow.py,sha256=zHxkCQ4BJ-pN80dSTQdiKq8RqY4oWzJveXZhQ2bu3PY,10436
|
5
5
|
not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
|
@@ -91,7 +91,7 @@ not1mm/data/phonetics/yourcall.wav,sha256=4kheHJmCiRDL2kjhlgXQ8_u_eEMgKxiNGu5UBk
|
|
91
91
|
not1mm/data/phonetics/z.wav,sha256=arafCi7fwmBLdVDI-PRyaL4U-03PIQDhffwY5noJ_2c,51768
|
92
92
|
not1mm/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
93
93
|
not1mm/lib/about.py,sha256=sWycfGcruN3SaEe4JmaJ61K6D8Itq0WxpUYT-lEcmYM,416
|
94
|
-
not1mm/lib/cat_interface.py,sha256=
|
94
|
+
not1mm/lib/cat_interface.py,sha256=E0e1WRhXTbmXO21touJLFs9lCYSwaxSEu5mfNpB_sZg,16892
|
95
95
|
not1mm/lib/cwinterface.py,sha256=Q8p3pScOHczZ8ptICfH1Yu6rCEwQJLgrNwYMN76B2i8,3389
|
96
96
|
not1mm/lib/database.py,sha256=RQoj3JsTejMiiFIN42lY3N4jrj80htftdoFeRqVKnKs,42480
|
97
97
|
not1mm/lib/edit_contact.py,sha256=Ki9bGPpqyQQBB1cU8VIBDCal3lbXeQ6qxhzklmhE2_w,353
|
@@ -99,7 +99,7 @@ not1mm/lib/edit_macro.py,sha256=raKWBwsHInj5EUKmvyLQ6gqc3ZFDlstsD3xqoM4PC8E,517
|
|
99
99
|
not1mm/lib/edit_opon.py,sha256=j3qJ1aBsQoIOnQ9yiBl3lyeISvKTP0I_rtBYBPAfgeI,359
|
100
100
|
not1mm/lib/edit_station.py,sha256=doL21Hs6jzIE43ohAopdFt_iqnRJZHFcqzcnCS0-iio,1965
|
101
101
|
not1mm/lib/ft8_watcher.py,sha256=ISfXjs-Mgbz_lE5SThEnFoCe8apNLElgSuECAMCH18I,4080
|
102
|
-
not1mm/lib/ham_utility.py,sha256=
|
102
|
+
not1mm/lib/ham_utility.py,sha256=rHYTHxeoMhpzmh_J6jEqCPJmVLpJbM2o4mbvydGLyvE,10979
|
103
103
|
not1mm/lib/lookup.py,sha256=F2fl5QkMxaGSxl1XMWnLUub3T9Mt7LhCX4acOlAsks4,13952
|
104
104
|
not1mm/lib/multicast.py,sha256=bnFUNHyy82GmIb3_88EPBVVssj7-HzkJPaH671cK8Qw,3249
|
105
105
|
not1mm/lib/n1mm.py,sha256=H54mpgJF0GAmKavM-nb5OAq2SJFWYkux4eMWWiSRxJc,6288
|
@@ -109,7 +109,7 @@ not1mm/lib/plugin_common.py,sha256=AAKBPCXzTWZJb-h08uPNnHVG7bSCg7kwukc211gFivY,8
|
|
109
109
|
not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
|
110
110
|
not1mm/lib/settings.py,sha256=MWiKXbasaFbzeHTjfzTaTqbCBrIijudP_-0a5jNmUAA,9265
|
111
111
|
not1mm/lib/super_check_partial.py,sha256=p5l3u2ZOCBtlWgbvskC50FpuoaIpR07tfC6zTdRWbh4,2334
|
112
|
-
not1mm/lib/version.py,sha256=
|
112
|
+
not1mm/lib/version.py,sha256=fcosrUBBIZb-_oOavjoYpxsk9G56vUMzt8LVSpPq16U,48
|
113
113
|
not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
|
114
114
|
not1mm/plugins/10_10_fall_cw.py,sha256=IttjX1yy4nDdACGsiYlPteFG8eVseX_WtoFio6bqHE8,10953
|
115
115
|
not1mm/plugins/10_10_spring_cw.py,sha256=ThCptdM3dX4ywhoy2JRcOEyHSqcJolFaT7O_PYzM1Mg,10958
|
@@ -145,9 +145,9 @@ not1mm/plugins/naqp_ssb.py,sha256=VLWVrSzI0UP1AhSXYn61eZ7or1rz6a_pS_xCKfgS4Jw,11
|
|
145
145
|
not1mm/plugins/phone_weekly_test.py,sha256=fLpMe03WB9_KgRl6vMgQQt_aktFdqfNt2Sw81CTRAUs,12325
|
146
146
|
not1mm/plugins/stew_perry_topband.py,sha256=CKBQbYl4ETxhXJd2dma4fg_C5pag_s7Nf61SCztZtqE,10668
|
147
147
|
not1mm/plugins/winter_field_day.py,sha256=4rcfRtobwjHO6BNL3WOTHzBmyyeuX79BNGBG8PfjrI8,10238
|
148
|
-
not1mm-24.7.
|
149
|
-
not1mm-24.7.
|
150
|
-
not1mm-24.7.
|
151
|
-
not1mm-24.7.
|
152
|
-
not1mm-24.7.
|
153
|
-
not1mm-24.7.
|
148
|
+
not1mm-24.7.13.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
149
|
+
not1mm-24.7.13.dist-info/METADATA,sha256=8SqV2K1n5M8QA0zqtj0JSRXzPuajYxGQ-RUG1qL_0u0,29115
|
150
|
+
not1mm-24.7.13.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
151
|
+
not1mm-24.7.13.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
|
152
|
+
not1mm-24.7.13.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
|
153
|
+
not1mm-24.7.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|