not1mm 25.6.11__py3-none-any.whl → 25.6.12__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
@@ -1250,19 +1250,19 @@ class MainWindow(QtWidgets.QMainWindow):
1250
1250
  elif name:
1251
1251
  self.other_1.setText(name)
1252
1252
 
1253
- if grid:
1253
+ if isinstance(grid, str) and len(grid) > 0:
1254
1254
  self.contact["GridSquare"] = grid
1255
- # _theircountry = response.get("country", "")
1256
- if self.station.get("GridSquare", ""):
1257
- heading = bearing(self.station.get("GridSquare", ""), grid)
1258
- kilometers = distance(self.station.get("GridSquare", ""), grid)
1259
- self.heading_distance.setText(
1260
- f"{grid} Hdg {heading}° LP {reciprocol(heading)}° / "
1261
- f"distance {int(kilometers*0.621371)}mi {kilometers}km"
1262
- f" {msg.get('result', {}).get('name_fmt', '')}"
1263
- )
1264
- print("Setting heading")
1265
- self.rotator_window.set_requested_azimuth(float(heading))
1255
+ if self.station.get("GridSquare", ""):
1256
+ heading = bearing(self.station.get("GridSquare", ""), grid)
1257
+ kilometers = distance(
1258
+ self.station.get("GridSquare", ""), grid
1259
+ )
1260
+ self.heading_distance.setText(
1261
+ f"{grid} Hdg {heading}° LP {reciprocol(heading)}° / "
1262
+ f"distance {int(kilometers*0.621371)}mi {kilometers}km"
1263
+ f" {msg.get('result', {}).get('name_fmt', '')}"
1264
+ )
1265
+ self.rotator_window.set_requested_azimuth(float(heading))
1266
1266
 
1267
1267
  def cluster_expire_updated(self, number):
1268
1268
  """signal from bandmap"""
not1mm/data/map3.png ADDED
Binary file
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "25.6.11"
3
+ __version__ = "25.6.12"
not1mm/rotator.py CHANGED
@@ -118,7 +118,7 @@ class RotatorWindow(QDockWidget):
118
118
  self.compassScene = QGraphicsScene()
119
119
  self.compassView.setScene(self.compassScene)
120
120
  self.compassView.setStyleSheet("background-color: transparent;")
121
- file = fsutils.APP_DATA_PATH / "nasabluemarble.jpg"
121
+ file = fsutils.APP_DATA_PATH / "map3.png"
122
122
  source = QImage()
123
123
  source.load(str(file))
124
124
  the_map = QImage(
@@ -127,8 +127,8 @@ class RotatorWindow(QDockWidget):
127
127
  the_map.fill(QColor(0, 0, 0, 0))
128
128
  lat, lon = self.gridtolatlon(self.mygrid)
129
129
 
130
- if os.path.exists(f"{fsutils.USER_DATA_PATH}/{self.mygrid}.png"):
131
- the_map.load(f"{fsutils.USER_DATA_PATH}/{self.mygrid}.png")
130
+ if os.path.exists(f"{fsutils.USER_DATA_PATH}/{self.mygrid}v2.png"):
131
+ the_map.load(f"{fsutils.USER_DATA_PATH}/{self.mygrid}v2.png")
132
132
  else:
133
133
  the_map = self.equirectangular_to_azimuthal_equidistant(
134
134
  source, lat, lon, output_size=self.MAP_RESOLUTION
@@ -157,9 +157,9 @@ class RotatorWindow(QDockWidget):
157
157
  QBrush(QColor(0, 0, 0), Qt.BrushStyle.SolidPattern),
158
158
  )
159
159
  path = QPainterPath()
160
- path.lineTo(-2, 0)
160
+ path.lineTo(-4, 0)
161
161
  path.lineTo(0, -90)
162
- path.lineTo(2, 0)
162
+ path.lineTo(4, 0)
163
163
  path.closeSubpath()
164
164
 
165
165
  path2 = QPainterPath()
@@ -171,7 +171,7 @@ class RotatorWindow(QDockWidget):
171
171
  self.requestedAzimuthNeedle = self.compassScene.addPath(
172
172
  path,
173
173
  QPen(QColor(0, 0, 0, 150)),
174
- QBrush(QColor(255, 0, 0), Qt.BrushStyle.SolidPattern),
174
+ QBrush(QColor(0, 0, 255), Qt.BrushStyle.SolidPattern),
175
175
  )
176
176
 
177
177
  if isinstance(self.requestedAzimuth, float):
@@ -299,7 +299,7 @@ class RotatorWindow(QDockWidget):
299
299
  color = source_img.pixelColor(src_x, src_y)
300
300
  dest_img.setPixelColor(x, y, color)
301
301
 
302
- dest_img.save(f"{fsutils.USER_DATA_PATH}/{self.mygrid}.png", "PNG")
302
+ dest_img.save(f"{fsutils.USER_DATA_PATH}/{self.mygrid}v2.png", "PNG")
303
303
  return dest_img
304
304
 
305
305
  def showEvent(self, event: QShowEvent) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: not1mm
3
- Version: 25.6.11
3
+ Version: 25.6.12
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  License: GPL-3.0-or-later
@@ -246,6 +246,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
246
246
 
247
247
  ## Recent Changes
248
248
 
249
+ - [25-6-12] Account for no gridsquare being returned from lookup service.
249
250
  - [25-6-11] Added a rotator control widget.
250
251
  - [25-6-10] Merged PR from @dj1yfk correcting WPX prefix calculation.
251
252
  - [25-6-8] Revmoved SQLite WAL mode.
@@ -1,5 +1,5 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=9ogJCPQExyZeOH0uNXmDbo9TSRp5YL_M5XqRm6z2vEs,174810
2
+ not1mm/__main__.py,sha256=72QOcq9Hu20_897i3Vpk2ezuq8evjLDJhbEbZQVhAsw,174828
3
3
  not1mm/bandmap.py,sha256=0JmZ32UvkaPjXs2xTgowX1GLvZo5zHU_Zo9y_GL-On4,31139
4
4
  not1mm/checkwindow.py,sha256=zEHlw40j6Wr3rvKbCQf2lcezCoiZqaBqEvBjQU5aKW0,7630
5
5
  not1mm/dxcc_tracker.py,sha256=LUTt538mBjOr590WMby-hmRz47XG8xUCkU2x0j4oB4w,4306
@@ -8,7 +8,7 @@ not1mm/logwindow.py,sha256=O2dMaT_BYWsXA_dxsEHN92JwN-qVGy9nmH0MCMaG9gY,42830
8
8
  not1mm/lookupservice.py,sha256=GkY_qHZfrW6XHf8upIoaG4hCFqm0fg6Ganu9ConGrIc,2628
9
9
  not1mm/radio.py,sha256=4Lysf9BY3vdtYCHwKfzO5WN7IGyh4_lKSVuQ6F4Z08g,5536
10
10
  not1mm/ratewindow.py,sha256=iBjqdOetIEX0wSwdGM89Ibt4gVlFdE-K8HQPnkVPVOg,6965
11
- not1mm/rotator.py,sha256=iQ3baA7pJog0NLRAvc7gBWCFRpGRckFu9p97AJIcBl4,11204
11
+ not1mm/rotator.py,sha256=9HjhrlbeYFhNOjvCPmmoWMfRtbQ6ReYHMDJm6EPKrJo,11200
12
12
  not1mm/rtc_service.py,sha256=axAwnCBuTr-QL0YwXtWvg9tjwhcFsiiEZFgFjOofX6k,2816
13
13
  not1mm/statistics.py,sha256=eOmUvbbYdbbIYHmaEhtBGab1IxAf2RQYV1q9MItpqEM,7969
14
14
  not1mm/test.py,sha256=WhL0DLlJTD15aON8Dkf2q_tlP_X1juxKZJh0jEC99tU,154
@@ -39,6 +39,7 @@ not1mm/data/k6gte.not1mm-64.png,sha256=6ku45Gq1g5ezh04F07osoKRtanb3e4kbx5XdIEh3N
39
39
  not1mm/data/logwindow.ui,sha256=vfkNdzJgFs3tTOBKLDavF2zVMvNHWOZ82fAErRi6pQY,1436
40
40
  not1mm/data/logwindowx.ui,sha256=9FzDJtLRpagvAWcDjFdB9NnvNZ4bVxdTNHy1Jit2ido,1610
41
41
  not1mm/data/main.ui,sha256=2cGrhepmcTylTWJ2LwisW6q9nZsReOH38yThvUn_31g,65717
42
+ not1mm/data/map3.png,sha256=EJqHeFp0ys6Vb1oKkjL4m0v8i3uWXtIgRrxzi0ETUHM,40704
42
43
  not1mm/data/new_contest.ui,sha256=i-WThxa9IBstyAMCRtNMB4NVPpV3fekUIX1YDYPyuOQ,25521
43
44
  not1mm/data/not1mm.html,sha256=c9-mfjMwDt4f5pySUruz2gREW33CQ2_rCddM2z5CZQo,23273
44
45
  not1mm/data/opon.ui,sha256=mC4OhoVIfR1H9IqHAKXliPMm8VOVmxSEadpsFQ7XnS4,2247
@@ -125,7 +126,7 @@ not1mm/lib/rot_interface.py,sha256=kGhpRsxPa6MYDaHd7gLJfzgsJKiJ-qHyx8tJ2tWwwlk,3
125
126
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
126
127
  not1mm/lib/settings.py,sha256=5xnsagH48qGeCDhfxPWW9yaXtv8wT13yoIVvYt8h_Qs,16023
127
128
  not1mm/lib/super_check_partial.py,sha256=jX7DjHesEV4KNVQbddJui0wAsYHerikH7W0iPv7PXQw,3110
128
- not1mm/lib/version.py,sha256=gBX35fdqUs73XC5HMduJfXsYIvynpAIxe65kdBhhSEE,48
129
+ not1mm/lib/version.py,sha256=FOEOU2uNUEV5bJamF0b6Dxgv5dxKso-77okuXfp8vGs,48
129
130
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
130
131
  not1mm/plugins/10_10_fall_cw.py,sha256=oJh3JKqjOpnWElSlZpiQ631UnaOd8qra5s9bl_QoInk,14783
131
132
  not1mm/plugins/10_10_spring_cw.py,sha256=p7dSDtbFK0e6Xouw2V6swYn3VFVgHKyx4IfRWyBjMZY,14786
@@ -189,9 +190,9 @@ not1mm/plugins/ukeidx.py,sha256=ZsIFXgOSwjuKNmN4W_C0TAgGqgnabJGNLMHwGkl3_bk,1910
189
190
  not1mm/plugins/vhf_sprint.py,sha256=a9QFTpv8XUbZ_GLjdVCh7svykFa-gXOWwKFZ6MD3uQM,19289
190
191
  not1mm/plugins/weekly_rtty.py,sha256=C8Xs3Q5UgSYx-mFFar8BVARWtmqlyrbeC98Ubzb4UN8,20128
191
192
  not1mm/plugins/winter_field_day.py,sha256=hmAMgkdqIXtnCNyUp8J9Bb8liN8wj10wps6ROuG-Bok,15284
192
- not1mm-25.6.11.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
193
- not1mm-25.6.11.dist-info/METADATA,sha256=qI3TGssUIO-II6kzwzQDNbcWJjvhikRRwt6oUXA-5CA,35678
194
- not1mm-25.6.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
195
- not1mm-25.6.11.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
196
- not1mm-25.6.11.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
197
- not1mm-25.6.11.dist-info/RECORD,,
193
+ not1mm-25.6.12.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
194
+ not1mm-25.6.12.dist-info/METADATA,sha256=2vdtH_bwu2Kjy8L58lqMQPNFOxiqZ1Iph6TIgjWzHi0,35752
195
+ not1mm-25.6.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
196
+ not1mm-25.6.12.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
197
+ not1mm-25.6.12.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
198
+ not1mm-25.6.12.dist-info/RECORD,,