not1mm 24.9.29__py3-none-any.whl → 24.10.1__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
@@ -1306,6 +1306,15 @@ class MainWindow(QtWidgets.QMainWindow):
1306
1306
  band = getband(str(self.radio_state.get("vfoa", "0.0")))
1307
1307
  self.set_band_indicator(band)
1308
1308
  self.set_window_title()
1309
+ if self.contest_settings.get("ModeCategory", "") == "RTTY":
1310
+ self.setmode("RTTY")
1311
+ self.radio_state["mode"] = "RTTY"
1312
+ if self.rig_control:
1313
+ if self.rig_control.online:
1314
+ self.rig_control.set_mode("RTTY")
1315
+ band = getband(str(self.radio_state.get("vfoa", "0.0")))
1316
+ self.set_band_indicator(band)
1317
+ self.set_window_title()
1309
1318
  if self.contest_settings.get("ModeCategory", "") == "SSB":
1310
1319
  self.setmode("SSB")
1311
1320
  if int(self.radio_state.get("vfoa", 0)) > 10000000:
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.9.29"
3
+ __version__ = "24.10.1"
not1mm/plugins/cwt.py CHANGED
@@ -150,7 +150,7 @@ def predupe(self):
150
150
  logger.debug("%s", f"{result}")
151
151
  if result:
152
152
  value = result.get("NR", "").upper()
153
- if len(value.split(" ")) == 2:
153
+ if len(value.split()) == 2:
154
154
  parsed_name, suffix = value.split()
155
155
  self.other_1.setText(str(parsed_name))
156
156
  self.other_2.setText(str(suffix))
@@ -138,9 +138,9 @@ def predupe(self): # pylint: disable=unused-argument
138
138
  def prefill(self):
139
139
  """Fill SentNR"""
140
140
  result = self.database.get_serial()
141
- serial_nr = str(result.get("serial_nr", "1")).zfill(3)
141
+ serial_nr = str(result.get("serial_nr", "1"))
142
142
  if serial_nr == "None":
143
- serial_nr = "001"
143
+ serial_nr = "1"
144
144
  field = self.sent
145
145
  if len(field.text()) == 0:
146
146
  field.setText(serial_nr)
not1mm/radio.py CHANGED
@@ -35,6 +35,7 @@ class Radio(QObject):
35
35
  host = None
36
36
  port = None
37
37
  modes = ""
38
+ last_data_mode = "RTTY"
38
39
 
39
40
  def __init__(self, interface: str, host: str, port: int) -> None:
40
41
  super().__init__()
@@ -65,6 +66,7 @@ class Radio(QObject):
65
66
  mode = self.cat.get_mode()
66
67
  if mode:
67
68
  self.mode = mode
69
+ self.store_last_data_mode(mode)
68
70
  self.online = True
69
71
  bw = self.cat.get_bw()
70
72
  if bw:
@@ -83,6 +85,26 @@ class Radio(QObject):
83
85
  ...
84
86
  QThread.msleep(100)
85
87
 
88
+ def store_last_data_mode(self, the_mode: str = ""):
89
+ """if the last mode is a data mode, save it."""
90
+ # QMX ['CW-U', 'CW-L', 'DIGI-U', 'DIGI-L']
91
+ # 7300 ['LSB', 'USB', 'AM', 'FM', 'CW', 'CW-R', 'RTTY', 'RTTY-R', 'LSB-D', 'USB-D', 'AM-D', 'FM-D']
92
+ datamodes = [
93
+ "RTTY",
94
+ "RTTY-R",
95
+ "LSB-D",
96
+ "USB-D",
97
+ "AM-D",
98
+ "FM-D",
99
+ "DIGI-U",
100
+ "DIGI-L",
101
+ "RTTYR",
102
+ "PKTLSB",
103
+ "PKTUSB",
104
+ ]
105
+ if the_mode in datamodes:
106
+ self.last_data_mode = the_mode
107
+
86
108
  def sendcw(self, texttosend):
87
109
  """..."""
88
110
  logger.debug(f"Send CW: {texttosend}")
@@ -125,8 +147,13 @@ class Radio(QObject):
125
147
  ...
126
148
 
127
149
  def get_modes(self):
150
+ """get list of modes"""
128
151
  return self.modes
129
152
 
153
+ def get_last_data_mode(self):
154
+ """gets last used data mode."""
155
+ return self.last_data_mode
156
+
130
157
  def ptt_on(self):
131
158
  if self.cat:
132
159
  self.cat.ptt_on()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.9.29
3
+ Version: 24.10.1
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
@@ -219,29 +219,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
219
219
 
220
220
  ## Recent Changes
221
221
 
222
- - [24-9-29] Corrected Cabrillo generation for CQWWRTTY.
223
- - [24-9-28-2] Fix Cabrillo and ADIF export for cqwwrtty.
224
- - [24-9-28-1] Add RTTY-R, LSB-D, USB-D, AM-D, FM-D, DIGI-U, DIGI-L, RTTYR, PKTLSB, PKTUSB to list of modes that will load in the RTTY/DG Macros.
225
- - [24-9-28] Fixed crash with CAT None, Display tweek. Refactored a couple conditionals.
226
- - [24-9-25-1] Added WARC and 4M bands.
227
- - [24-9-25] Fix QRZ lookup crash on non-existant call.
228
- - [24-9-24] Correct crash in CWT.
229
- - [24-9-23] Improved serial interface to rigctld. Send RTTY macros to fldigi when radio modes are RTTY, USB-D, LSB-D, PKTLSB, PKTUSB, DIGI-U, DIGI-L.
230
- - [24-9-22] Merged in changes for CQ WW RTTY
231
- - [24-9-15] Fixing an ARRL VHF Cabrillo format error.
232
- - [24-9-14] BugFix. Starting lookups fail init if no settings.
233
- - [24-9-12] Fixed WSJT-X MFSK submodes FT4 Q65.
234
- - [24-9-11-2] Removed all the sketchy threaded call lookups. They're now implimented as a multicast service.
235
- - [24-9-11-1] Fixed high clock cycle usage from the FlDigiWatcher class.
236
- - [24-9-11] Fixed the HamQTH call lookups.
237
- - [24-9-10-2] Removed mapping of FM to PH in the ARRL VHF Cabrillo logs
238
- - [24-9-10-1] ft8_watcher now used default WSJT-X Multicast address and port.
239
- - [24-9-10] Add WSJT FT8/4 and fldigi support to ARRL VHF.
240
- - [24-9-9] Add IARU R1 Fieldday CW and SSB.
241
- - [24-9-8] Correct n1mm contact packet info.
242
- - [24-9-6] Added the Weekly RTTY.
243
- - [24-9-5] Added FlDigi support for Field Day.
244
- - [24-9-3] Added WSJT-X FT8 mode contacts to ARRL Field Day.
222
+ - [24-10-1] Merged PR removing leading zeros from serial numbers. Merged PR correcting the parsing of lookups for previous name and state in the CWT.
245
223
 
246
224
  See [CHANGELOG.md](CHANGELOG.md) for prior changes.
247
225
 
@@ -1,11 +1,11 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=d_h2z7gmEdDwZ1nX1nyxPQvCMqmnKRyPF4PJ34J6CY4,129707
2
+ not1mm/__main__.py,sha256=88hPgSkZx61iYWfOFkfBflWsE_AcLOm3Wd1KMup4abU,130276
3
3
  not1mm/bandmap.py,sha256=1b5tXCfGTnpqqn6hPNt7zRA8SmuwSXzSwNHZXhCRt70,31434
4
4
  not1mm/checkwindow.py,sha256=aI-nr8OF90IWV7R_XRdmitvBJ9M85evCs72HoU3Jnvc,10374
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
6
6
  not1mm/logwindow.py,sha256=pwhiwolmGnW01LF4sjlu3ywLsgfxL6KuGuKuYKYmgeY,44403
7
7
  not1mm/lookupservice.py,sha256=jsFg5tsB9cVnahLP-hI3CMwbjlEpMx944O8RLWntAy4,3342
8
- not1mm/radio.py,sha256=3X38i3jzZG9D1QN7p4pYZpMzRz6xyuWuN8rxLK3UNik,3662
8
+ not1mm/radio.py,sha256=WM5hRTKUSH6D1Hxk240kYVlSuMaVp7dgVn_GAkck8_g,4498
9
9
  not1mm/test.py,sha256=HI1lUcKncR-5QXpBuepliRc4HYSSOcwZJWXrP6yjXb8,2453
10
10
  not1mm/vfo.py,sha256=IvmUQYMIPzLJw_BHQGis4J_IEW-vlBtdfxZLXPh7OzI,12335
11
11
  not1mm/voice_keying.py,sha256=sA3gw5_k7kShTg2qhG7HkKDM5M6KheJVRkAc_C7mxDk,3006
@@ -114,7 +114,7 @@ not1mm/lib/plugin_common.py,sha256=TbFUbftjELFt4QRdsjSHbqnXSngZOlSwlCTClqosDXA,9
114
114
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
115
115
  not1mm/lib/settings.py,sha256=0Su8BQM4haVhc_P74q8UhzRZxtgWhM40UmVtQdMJQeM,10022
116
116
  not1mm/lib/super_check_partial.py,sha256=p5l3u2ZOCBtlWgbvskC50FpuoaIpR07tfC6zTdRWbh4,2334
117
- not1mm/lib/version.py,sha256=ZPNrAgbRlG8-HZmvqmi3sszmYq_VGWR5V3rNltvB47M,48
117
+ not1mm/lib/version.py,sha256=9gp4Ngkzl3dx14Khxs97HcvxUfF4KNXRD59UPZmDp0I,48
118
118
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
119
119
  not1mm/plugins/10_10_fall_cw.py,sha256=IttjX1yy4nDdACGsiYlPteFG8eVseX_WtoFio6bqHE8,10953
120
120
  not1mm/plugins/10_10_spring_cw.py,sha256=ThCptdM3dX4ywhoy2JRcOEyHSqcJolFaT7O_PYzM1Mg,10958
@@ -139,13 +139,13 @@ not1mm/plugins/cq_wpx_ssb.py,sha256=-hGRovqHR9rfOUnG4LPOoABTb4heH8VAX6rYdJbCqsw,
139
139
  not1mm/plugins/cq_ww_cw.py,sha256=m4Xkqb_qFyXWEgkxqbanvtiCTvI8NNPKNXzHgFZzhnE,12340
140
140
  not1mm/plugins/cq_ww_rtty.py,sha256=N0togQbMSpRyRpGoYvnlGC3mpduR82g-D39Swtp5wjI,16772
141
141
  not1mm/plugins/cq_ww_ssb.py,sha256=hZwG88-hPLmwIGXHX_S_ty8Nhn1kIuPjSuTRpCWoN9g,12631
142
- not1mm/plugins/cwt.py,sha256=k5yX_2Ma_arVxzDP2E9mwA08LUVFLOk8vUpHwHt2aGA,12777
142
+ not1mm/plugins/cwt.py,sha256=KvvkEfQrYSra0y8qE4yThvZNLrZcslt0IqYEomDpf-M,12774
143
143
  not1mm/plugins/general_logging.py,sha256=n-2es7erqK1ptwq_wwIKIwktptKN7ra2eWjAQlpXUac,3479
144
144
  not1mm/plugins/helvetia.py,sha256=6aOO4uiLzFFgHA-A3xz6IRdCJpqPOAm0egKxP5Y_Ie0,15432
145
145
  not1mm/plugins/iaru_fieldday_r1_cw.py,sha256=B_kh8d8LkC0va_iIiIzImOKAT8724yf9ceF-2eQdx1w,13301
146
146
  not1mm/plugins/iaru_fieldday_r1_ssb.py,sha256=5hIL60cfGBzVlb70XFtI3OeGZT2966LoryTgKK6kDEc,13306
147
147
  not1mm/plugins/iaru_hf.py,sha256=-ROUo2gBkw3xB89t8bd-4f7_1hROw2VXZXVHLFdB62s,11541
148
- not1mm/plugins/icwc_mst.py,sha256=BaUP2kzrT2D27un_WLGT4HCTTi1e7CNYC4NHcC_9r74,11842
148
+ not1mm/plugins/icwc_mst.py,sha256=v8L5NX2QmTM7x8Po1mb4yfN-dGVIuqky5MIT-OjfaVY,11831
149
149
  not1mm/plugins/jidx_cw.py,sha256=9oV4hDxMiGXa9wuYUNYOCsr-mz8LYB-4WMHBN8u2dFk,12153
150
150
  not1mm/plugins/jidx_ph.py,sha256=T-V7-77SIwu-Jl55VIrbVFZlsBoc97mXtgbdde0GaiQ,11183
151
151
  not1mm/plugins/k1usn_sst.py,sha256=2Nu7SRiQeUG3mL9CLKReRLh8vKsNbWcizMgv9MTLkrg,11671
@@ -156,9 +156,9 @@ not1mm/plugins/ref_cw.py,sha256=aWjHHkqIKutjRUtzh09y5haFfnZK9poRQDWRQMDRxxU,1632
156
156
  not1mm/plugins/stew_perry_topband.py,sha256=CKBQbYl4ETxhXJd2dma4fg_C5pag_s7Nf61SCztZtqE,10668
157
157
  not1mm/plugins/weekly_rtty.py,sha256=DQcy3SY0Zn56EdlYGf3NxrRhTnkNa5IqRQPRQdKDSPs,14255
158
158
  not1mm/plugins/winter_field_day.py,sha256=4rcfRtobwjHO6BNL3WOTHzBmyyeuX79BNGBG8PfjrI8,10238
159
- not1mm-24.9.29.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
- not1mm-24.9.29.dist-info/METADATA,sha256=WiIawgfdxqGoUNJBk7CK6a9y9Ygv7qi-FQE3IHrjDAo,31756
161
- not1mm-24.9.29.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
162
- not1mm-24.9.29.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
163
- not1mm-24.9.29.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
164
- not1mm-24.9.29.dist-info/RECORD,,
159
+ not1mm-24.10.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
+ not1mm-24.10.1.dist-info/METADATA,sha256=C1yfdCg9vuySn9SsuXZFP0LN_u0oTRUuXJUPmKqS9lM,30407
161
+ not1mm-24.10.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
162
+ not1mm-24.10.1.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
163
+ not1mm-24.10.1.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
164
+ not1mm-24.10.1.dist-info/RECORD,,