not1mm 25.5.22__py3-none-any.whl → 25.5.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 +230 -11
- not1mm/bandmap.py +25 -3
- not1mm/data/cloud_green.png +0 -0
- not1mm/data/cloud_red.png +0 -0
- not1mm/data/configuration.ui +111 -140
- not1mm/data/main.ui +16 -3
- not1mm/data/new_contest.ui +5 -0
- not1mm/lib/cat_interface.py +2 -2
- not1mm/lib/database.py +43 -2
- not1mm/lib/settings.py +6 -3
- not1mm/lib/version.py +2 -1
- not1mm/logwindow.py +8 -4
- not1mm/plugins/ari_dx.py +558 -0
- not1mm/plugins/canada_day.py +1 -1
- not1mm/ratewindow.py +0 -3
- not1mm/statistics.py +9 -9
- not1mm/vfo.py +37 -7
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/METADATA +35 -7
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/RECORD +23 -20
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/WHEEL +0 -0
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/entry_points.txt +0 -0
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/licenses/LICENSE +0 -0
- {not1mm-25.5.22.dist-info → not1mm-25.5.26.dist-info}/top_level.txt +0 -0
not1mm/data/configuration.ui
CHANGED
@@ -1091,7 +1091,7 @@
|
|
1091
1091
|
</widget>
|
1092
1092
|
<widget class="QWidget" name="group_tab">
|
1093
1093
|
<property name="enabled">
|
1094
|
-
<bool>
|
1094
|
+
<bool>true</bool>
|
1095
1095
|
</property>
|
1096
1096
|
<property name="font">
|
1097
1097
|
<font>
|
@@ -1106,6 +1106,9 @@
|
|
1106
1106
|
<layout class="QGridLayout" name="gridLayout_7">
|
1107
1107
|
<item row="0" column="0" colspan="2" alignment="Qt::AlignHCenter">
|
1108
1108
|
<widget class="QCheckBox" name="connect_to_server">
|
1109
|
+
<property name="enabled">
|
1110
|
+
<bool>true</bool>
|
1111
|
+
</property>
|
1109
1112
|
<property name="font">
|
1110
1113
|
<font>
|
1111
1114
|
<family>JetBrains Mono</family>
|
@@ -1231,8 +1234,8 @@
|
|
1231
1234
|
<string>N1MM</string>
|
1232
1235
|
</attribute>
|
1233
1236
|
<layout class="QGridLayout" name="gridLayout_8">
|
1234
|
-
<item row="
|
1235
|
-
<widget class="QLabel" name="
|
1237
|
+
<item row="6" column="0">
|
1238
|
+
<widget class="QLabel" name="label_18">
|
1236
1239
|
<property name="font">
|
1237
1240
|
<font>
|
1238
1241
|
<family>JetBrains Mono</family>
|
@@ -1241,12 +1244,15 @@
|
|
1241
1244
|
</font>
|
1242
1245
|
</property>
|
1243
1246
|
<property name="text">
|
1244
|
-
<string>
|
1247
|
+
<string>Lookup:</string>
|
1248
|
+
</property>
|
1249
|
+
<property name="alignment">
|
1250
|
+
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
1245
1251
|
</property>
|
1246
1252
|
</widget>
|
1247
1253
|
</item>
|
1248
|
-
<item row="1" column="
|
1249
|
-
<widget class="QLineEdit" name="
|
1254
|
+
<item row="1" column="1" colspan="3">
|
1255
|
+
<widget class="QLineEdit" name="n1mm_station_name">
|
1250
1256
|
<property name="font">
|
1251
1257
|
<font>
|
1252
1258
|
<family>JetBrains Mono</family>
|
@@ -1255,41 +1261,43 @@
|
|
1255
1261
|
</font>
|
1256
1262
|
</property>
|
1257
1263
|
<property name="accessibleName">
|
1258
|
-
<string>
|
1264
|
+
<string>station name</string>
|
1259
1265
|
</property>
|
1260
1266
|
<property name="accessibleDescription">
|
1261
|
-
<string>n 1 m m
|
1267
|
+
<string>n 1 m m station name</string>
|
1262
1268
|
</property>
|
1263
1269
|
<property name="placeholderText">
|
1264
1270
|
<string/>
|
1265
1271
|
</property>
|
1266
1272
|
</widget>
|
1267
1273
|
</item>
|
1268
|
-
<item row="
|
1269
|
-
<widget class="QCheckBox" name="
|
1270
|
-
<property name="
|
1271
|
-
<
|
1272
|
-
<
|
1273
|
-
<
|
1274
|
-
|
1275
|
-
|
1274
|
+
<item row="7" column="1">
|
1275
|
+
<widget class="QCheckBox" name="send_n1mm_score">
|
1276
|
+
<property name="sizePolicy">
|
1277
|
+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
1278
|
+
<horstretch>0</horstretch>
|
1279
|
+
<verstretch>0</verstretch>
|
1280
|
+
</sizepolicy>
|
1281
|
+
</property>
|
1282
|
+
<property name="maximumSize">
|
1283
|
+
<size>
|
1284
|
+
<width>23</width>
|
1285
|
+
<height>16777215</height>
|
1286
|
+
</size>
|
1276
1287
|
</property>
|
1277
1288
|
<property name="accessibleName">
|
1278
|
-
<string>send
|
1289
|
+
<string>send score packets</string>
|
1279
1290
|
</property>
|
1280
1291
|
<property name="accessibleDescription">
|
1281
|
-
<string>send n 1 m m packets
|
1282
|
-
</property>
|
1283
|
-
<property name="styleSheet">
|
1284
|
-
<string notr="true"/>
|
1292
|
+
<string>send n 1 m m score packets.</string>
|
1285
1293
|
</property>
|
1286
1294
|
<property name="text">
|
1287
|
-
<string
|
1295
|
+
<string/>
|
1288
1296
|
</property>
|
1289
1297
|
</widget>
|
1290
1298
|
</item>
|
1291
|
-
<item row="1" column="
|
1292
|
-
<widget class="QLabel" name="
|
1299
|
+
<item row="1" column="4">
|
1300
|
+
<widget class="QLabel" name="label_14">
|
1293
1301
|
<property name="font">
|
1294
1302
|
<font>
|
1295
1303
|
<family>JetBrains Mono</family>
|
@@ -1298,12 +1306,12 @@
|
|
1298
1306
|
</font>
|
1299
1307
|
</property>
|
1300
1308
|
<property name="text">
|
1301
|
-
<string>
|
1309
|
+
<string>Operator Name:</string>
|
1302
1310
|
</property>
|
1303
1311
|
</widget>
|
1304
1312
|
</item>
|
1305
|
-
<item row="
|
1306
|
-
<widget class="
|
1313
|
+
<item row="0" column="0" colspan="6" alignment="Qt::AlignHCenter">
|
1314
|
+
<widget class="QCheckBox" name="send_n1mm_packets">
|
1307
1315
|
<property name="font">
|
1308
1316
|
<font>
|
1309
1317
|
<family>JetBrains Mono</family>
|
@@ -1312,18 +1320,21 @@
|
|
1312
1320
|
</font>
|
1313
1321
|
</property>
|
1314
1322
|
<property name="accessibleName">
|
1315
|
-
<string>
|
1323
|
+
<string>send n 1 m m packets.</string>
|
1316
1324
|
</property>
|
1317
1325
|
<property name="accessibleDescription">
|
1318
|
-
<string>n 1 m m
|
1326
|
+
<string>send n 1 m m packets</string>
|
1319
1327
|
</property>
|
1320
|
-
<property name="
|
1321
|
-
<string/>
|
1328
|
+
<property name="styleSheet">
|
1329
|
+
<string notr="true"/>
|
1330
|
+
</property>
|
1331
|
+
<property name="text">
|
1332
|
+
<string>Send N1MM packets</string>
|
1322
1333
|
</property>
|
1323
1334
|
</widget>
|
1324
1335
|
</item>
|
1325
|
-
<item row="
|
1326
|
-
<widget class="QLabel" name="
|
1336
|
+
<item row="7" column="0">
|
1337
|
+
<widget class="QLabel" name="label_19">
|
1327
1338
|
<property name="font">
|
1328
1339
|
<font>
|
1329
1340
|
<family>JetBrains Mono</family>
|
@@ -1332,15 +1343,15 @@
|
|
1332
1343
|
</font>
|
1333
1344
|
</property>
|
1334
1345
|
<property name="text">
|
1335
|
-
<string>
|
1346
|
+
<string>Score:</string>
|
1336
1347
|
</property>
|
1337
1348
|
<property name="alignment">
|
1338
1349
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
1339
1350
|
</property>
|
1340
1351
|
</widget>
|
1341
1352
|
</item>
|
1342
|
-
<item row="
|
1343
|
-
<widget class="
|
1353
|
+
<item row="7" column="2" colspan="4">
|
1354
|
+
<widget class="QLineEdit" name="n1mm_scoreport">
|
1344
1355
|
<property name="font">
|
1345
1356
|
<font>
|
1346
1357
|
<family>JetBrains Mono</family>
|
@@ -1348,16 +1359,25 @@
|
|
1348
1359
|
<strikeout>false</strikeout>
|
1349
1360
|
</font>
|
1350
1361
|
</property>
|
1362
|
+
<property name="accessibleName">
|
1363
|
+
<string>score packet address and port</string>
|
1364
|
+
</property>
|
1365
|
+
<property name="accessibleDescription">
|
1366
|
+
<string>score packet address and port</string>
|
1367
|
+
</property>
|
1368
|
+
<property name="inputMethodHints">
|
1369
|
+
<set>Qt::InputMethodHint::ImhDigitsOnly</set>
|
1370
|
+
</property>
|
1351
1371
|
<property name="text">
|
1352
|
-
<string
|
1372
|
+
<string/>
|
1353
1373
|
</property>
|
1354
|
-
<property name="
|
1355
|
-
<
|
1374
|
+
<property name="placeholderText">
|
1375
|
+
<string/>
|
1356
1376
|
</property>
|
1357
1377
|
</widget>
|
1358
1378
|
</item>
|
1359
|
-
<item row="6" column="
|
1360
|
-
<widget class="
|
1379
|
+
<item row="6" column="2" colspan="4">
|
1380
|
+
<widget class="QLineEdit" name="n1mm_lookupport">
|
1361
1381
|
<property name="font">
|
1362
1382
|
<font>
|
1363
1383
|
<family>JetBrains Mono</family>
|
@@ -1365,16 +1385,25 @@
|
|
1365
1385
|
<strikeout>false</strikeout>
|
1366
1386
|
</font>
|
1367
1387
|
</property>
|
1388
|
+
<property name="accessibleName">
|
1389
|
+
<string>lookup packet address and port</string>
|
1390
|
+
</property>
|
1391
|
+
<property name="accessibleDescription">
|
1392
|
+
<string>lookup packet address and port</string>
|
1393
|
+
</property>
|
1394
|
+
<property name="inputMethodHints">
|
1395
|
+
<set>Qt::InputMethodHint::ImhDigitsOnly</set>
|
1396
|
+
</property>
|
1368
1397
|
<property name="text">
|
1369
|
-
<string
|
1398
|
+
<string/>
|
1370
1399
|
</property>
|
1371
|
-
<property name="
|
1372
|
-
<
|
1400
|
+
<property name="placeholderText">
|
1401
|
+
<string/>
|
1373
1402
|
</property>
|
1374
1403
|
</widget>
|
1375
1404
|
</item>
|
1376
|
-
<item row="
|
1377
|
-
<widget class="QLabel" name="
|
1405
|
+
<item row="2" column="0">
|
1406
|
+
<widget class="QLabel" name="label_16">
|
1378
1407
|
<property name="font">
|
1379
1408
|
<font>
|
1380
1409
|
<family>JetBrains Mono</family>
|
@@ -1383,47 +1412,29 @@
|
|
1383
1412
|
</font>
|
1384
1413
|
</property>
|
1385
1414
|
<property name="text">
|
1386
|
-
<string>
|
1415
|
+
<string>Radio:</string>
|
1387
1416
|
</property>
|
1388
1417
|
<property name="alignment">
|
1389
1418
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
1390
1419
|
</property>
|
1391
1420
|
</widget>
|
1392
1421
|
</item>
|
1393
|
-
<item row="
|
1394
|
-
<widget class="
|
1395
|
-
<property name="
|
1396
|
-
<
|
1397
|
-
<
|
1398
|
-
<
|
1399
|
-
|
1400
|
-
|
1401
|
-
<property name="accessibleName">
|
1402
|
-
<string>send radio packets</string>
|
1403
|
-
</property>
|
1404
|
-
<property name="accessibleDescription">
|
1405
|
-
<string>send n 1 m m radio packets.</string>
|
1406
|
-
</property>
|
1407
|
-
<property name="text">
|
1408
|
-
<string/>
|
1409
|
-
</property>
|
1410
|
-
</widget>
|
1411
|
-
</item>
|
1412
|
-
<item row="3" column="1">
|
1413
|
-
<widget class="QCheckBox" name="send_n1mm_contact">
|
1414
|
-
<property name="maximumSize">
|
1415
|
-
<size>
|
1416
|
-
<width>22</width>
|
1417
|
-
<height>16777215</height>
|
1418
|
-
</size>
|
1422
|
+
<item row="1" column="5">
|
1423
|
+
<widget class="QLineEdit" name="n1mm_operator">
|
1424
|
+
<property name="font">
|
1425
|
+
<font>
|
1426
|
+
<family>JetBrains Mono ExtraLight</family>
|
1427
|
+
<pointsize>12</pointsize>
|
1428
|
+
<strikeout>false</strikeout>
|
1429
|
+
</font>
|
1419
1430
|
</property>
|
1420
1431
|
<property name="accessibleName">
|
1421
|
-
<string>
|
1432
|
+
<string>operator name</string>
|
1422
1433
|
</property>
|
1423
1434
|
<property name="accessibleDescription">
|
1424
|
-
<string>
|
1435
|
+
<string>n 1 m m operator name</string>
|
1425
1436
|
</property>
|
1426
|
-
<property name="
|
1437
|
+
<property name="placeholderText">
|
1427
1438
|
<string/>
|
1428
1439
|
</property>
|
1429
1440
|
</widget>
|
@@ -1447,33 +1458,8 @@
|
|
1447
1458
|
</property>
|
1448
1459
|
</widget>
|
1449
1460
|
</item>
|
1450
|
-
<item row="
|
1451
|
-
<widget class="
|
1452
|
-
<property name="sizePolicy">
|
1453
|
-
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
1454
|
-
<horstretch>0</horstretch>
|
1455
|
-
<verstretch>0</verstretch>
|
1456
|
-
</sizepolicy>
|
1457
|
-
</property>
|
1458
|
-
<property name="maximumSize">
|
1459
|
-
<size>
|
1460
|
-
<width>23</width>
|
1461
|
-
<height>16777215</height>
|
1462
|
-
</size>
|
1463
|
-
</property>
|
1464
|
-
<property name="accessibleName">
|
1465
|
-
<string>send score packets</string>
|
1466
|
-
</property>
|
1467
|
-
<property name="accessibleDescription">
|
1468
|
-
<string>send n 1 m m score packets.</string>
|
1469
|
-
</property>
|
1470
|
-
<property name="text">
|
1471
|
-
<string/>
|
1472
|
-
</property>
|
1473
|
-
</widget>
|
1474
|
-
</item>
|
1475
|
-
<item row="2" column="2" colspan="5">
|
1476
|
-
<widget class="QLineEdit" name="n1mm_radioport">
|
1461
|
+
<item row="1" column="0">
|
1462
|
+
<widget class="QLabel" name="label_13">
|
1477
1463
|
<property name="font">
|
1478
1464
|
<font>
|
1479
1465
|
<family>JetBrains Mono</family>
|
@@ -1481,20 +1467,8 @@
|
|
1481
1467
|
<strikeout>false</strikeout>
|
1482
1468
|
</font>
|
1483
1469
|
</property>
|
1484
|
-
<property name="accessibleName">
|
1485
|
-
<string>radio packet address and port</string>
|
1486
|
-
</property>
|
1487
|
-
<property name="accessibleDescription">
|
1488
|
-
<string>radio packet address and port</string>
|
1489
|
-
</property>
|
1490
|
-
<property name="inputMethodHints">
|
1491
|
-
<set>Qt::InputMethodHint::ImhDigitsOnly</set>
|
1492
|
-
</property>
|
1493
1470
|
<property name="text">
|
1494
|
-
<string
|
1495
|
-
</property>
|
1496
|
-
<property name="placeholderText">
|
1497
|
-
<string/>
|
1471
|
+
<string>Station Name:</string>
|
1498
1472
|
</property>
|
1499
1473
|
</widget>
|
1500
1474
|
</item>
|
@@ -1508,24 +1482,18 @@
|
|
1508
1482
|
</font>
|
1509
1483
|
</property>
|
1510
1484
|
<property name="accessibleName">
|
1511
|
-
<string>
|
1485
|
+
<string>send radio packets</string>
|
1512
1486
|
</property>
|
1513
1487
|
<property name="accessibleDescription">
|
1514
|
-
<string>
|
1515
|
-
</property>
|
1516
|
-
<property name="inputMethodHints">
|
1517
|
-
<set>Qt::InputMethodHint::ImhDigitsOnly</set>
|
1488
|
+
<string>send n 1 m m radio packets.</string>
|
1518
1489
|
</property>
|
1519
1490
|
<property name="text">
|
1520
1491
|
<string/>
|
1521
1492
|
</property>
|
1522
|
-
<property name="placeholderText">
|
1523
|
-
<string/>
|
1524
|
-
</property>
|
1525
1493
|
</widget>
|
1526
1494
|
</item>
|
1527
|
-
<item row="
|
1528
|
-
<widget class="QLineEdit" name="
|
1495
|
+
<item row="2" column="2" colspan="4">
|
1496
|
+
<widget class="QLineEdit" name="n1mm_radioport">
|
1529
1497
|
<property name="font">
|
1530
1498
|
<font>
|
1531
1499
|
<family>JetBrains Mono</family>
|
@@ -1534,10 +1502,10 @@
|
|
1534
1502
|
</font>
|
1535
1503
|
</property>
|
1536
1504
|
<property name="accessibleName">
|
1537
|
-
<string>
|
1505
|
+
<string>radio packet address and port</string>
|
1538
1506
|
</property>
|
1539
1507
|
<property name="accessibleDescription">
|
1540
|
-
<string>
|
1508
|
+
<string>radio packet address and port</string>
|
1541
1509
|
</property>
|
1542
1510
|
<property name="inputMethodHints">
|
1543
1511
|
<set>Qt::InputMethodHint::ImhDigitsOnly</set>
|
@@ -1550,8 +1518,8 @@
|
|
1550
1518
|
</property>
|
1551
1519
|
</widget>
|
1552
1520
|
</item>
|
1553
|
-
<item row="
|
1554
|
-
<widget class="
|
1521
|
+
<item row="3" column="0">
|
1522
|
+
<widget class="QLabel" name="label_17">
|
1555
1523
|
<property name="font">
|
1556
1524
|
<font>
|
1557
1525
|
<family>JetBrains Mono</family>
|
@@ -1559,19 +1527,24 @@
|
|
1559
1527
|
<strikeout>false</strikeout>
|
1560
1528
|
</font>
|
1561
1529
|
</property>
|
1562
|
-
<property name="
|
1563
|
-
<string>
|
1564
|
-
</property>
|
1565
|
-
<property name="accessibleDescription">
|
1566
|
-
<string>score packet address and port</string>
|
1530
|
+
<property name="text">
|
1531
|
+
<string>Contact:</string>
|
1567
1532
|
</property>
|
1568
|
-
<property name="
|
1569
|
-
<set>Qt::
|
1533
|
+
<property name="alignment">
|
1534
|
+
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
1570
1535
|
</property>
|
1536
|
+
</widget>
|
1537
|
+
</item>
|
1538
|
+
<item row="2" column="1">
|
1539
|
+
<widget class="QCheckBox" name="send_n1mm_radio">
|
1571
1540
|
<property name="text">
|
1572
1541
|
<string/>
|
1573
1542
|
</property>
|
1574
|
-
|
1543
|
+
</widget>
|
1544
|
+
</item>
|
1545
|
+
<item row="3" column="1">
|
1546
|
+
<widget class="QCheckBox" name="send_n1mm_contact">
|
1547
|
+
<property name="text">
|
1575
1548
|
<string/>
|
1576
1549
|
</property>
|
1577
1550
|
</widget>
|
@@ -2475,10 +2448,8 @@
|
|
2475
2448
|
<tabstop>multicast_port</tabstop>
|
2476
2449
|
<tabstop>interface_ip</tabstop>
|
2477
2450
|
<tabstop>n1mm_station_name</tabstop>
|
2478
|
-
<tabstop>n1mm_operator</tabstop>
|
2479
2451
|
<tabstop>send_n1mm_packets</tabstop>
|
2480
2452
|
<tabstop>n1mm_radioport</tabstop>
|
2481
|
-
<tabstop>n1mm_contactport</tabstop>
|
2482
2453
|
<tabstop>n1mm_lookupport</tabstop>
|
2483
2454
|
<tabstop>n1mm_scoreport</tabstop>
|
2484
2455
|
</tabstops>
|
not1mm/data/main.ui
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
<rect>
|
10
10
|
<x>0</x>
|
11
11
|
<y>0</y>
|
12
|
-
<width>
|
13
|
-
<height>
|
12
|
+
<width>800</width>
|
13
|
+
<height>600</height>
|
14
14
|
</rect>
|
15
15
|
</property>
|
16
16
|
<property name="sizePolicy">
|
@@ -1055,6 +1055,19 @@
|
|
1055
1055
|
</property>
|
1056
1056
|
</widget>
|
1057
1057
|
</item>
|
1058
|
+
<item>
|
1059
|
+
<widget class="QLabel" name="server_icon">
|
1060
|
+
<property name="font">
|
1061
|
+
<font>
|
1062
|
+
<family>JetBrains Mono ExtraLight</family>
|
1063
|
+
<pointsize>11</pointsize>
|
1064
|
+
</font>
|
1065
|
+
</property>
|
1066
|
+
<property name="text">
|
1067
|
+
<string/>
|
1068
|
+
</property>
|
1069
|
+
</widget>
|
1070
|
+
</item>
|
1058
1071
|
<item>
|
1059
1072
|
<widget class="QLabel" name="dupe_indicator">
|
1060
1073
|
<property name="enabled">
|
@@ -1493,7 +1506,7 @@
|
|
1493
1506
|
<rect>
|
1494
1507
|
<x>0</x>
|
1495
1508
|
<y>0</y>
|
1496
|
-
<width>
|
1509
|
+
<width>800</width>
|
1497
1510
|
<height>25</height>
|
1498
1511
|
</rect>
|
1499
1512
|
</property>
|
not1mm/data/new_contest.ui
CHANGED
not1mm/lib/cat_interface.py
CHANGED
@@ -208,7 +208,7 @@ class CAT:
|
|
208
208
|
if self.rigctrlsocket:
|
209
209
|
try:
|
210
210
|
self.online = True
|
211
|
-
self.rigctrlsocket.send(bytes(
|
211
|
+
self.rigctrlsocket.send(bytes("\\stop_morse", "utf-8"))
|
212
212
|
_ = self.__get_serial_string()
|
213
213
|
return True
|
214
214
|
except socket.error as exception:
|
@@ -332,7 +332,7 @@ class CAT:
|
|
332
332
|
if "get_freq:|" in report and "RPRT 0" in report:
|
333
333
|
seg_rpt = report.split("|")
|
334
334
|
return seg_rpt[1].split(" ")[1]
|
335
|
-
except socket.error as exception:
|
335
|
+
except (socket.error, IndexError) as exception:
|
336
336
|
self.online = False
|
337
337
|
logger.debug(f"{exception=}")
|
338
338
|
self.rigctrlsocket = None
|
not1mm/lib/database.py
CHANGED
@@ -484,7 +484,7 @@ class DataBase:
|
|
484
484
|
return cursor.fetchall()
|
485
485
|
except sqlite3.OperationalError as exception:
|
486
486
|
logger.debug("%s", exception)
|
487
|
-
return
|
487
|
+
return []
|
488
488
|
|
489
489
|
def log_contact(self, contact: dict) -> None:
|
490
490
|
"""
|
@@ -543,6 +543,18 @@ class DataBase:
|
|
543
543
|
except sqlite3.Error as exception:
|
544
544
|
logger.info("DataBase delete_contact: %s", exception)
|
545
545
|
|
546
|
+
def clear_dirty_flag(self, unique_id) -> None:
|
547
|
+
"""Clears the dirty flag."""
|
548
|
+
if unique_id:
|
549
|
+
try:
|
550
|
+
with sqlite3.connect(self.database) as conn:
|
551
|
+
sql = f"update dxlog set dirty=0 where ID='{unique_id}';"
|
552
|
+
cursor = conn.cursor()
|
553
|
+
cursor.execute(sql)
|
554
|
+
conn.commit()
|
555
|
+
except sqlite3.Error as exception:
|
556
|
+
logger.critical("%s", exception)
|
557
|
+
|
546
558
|
def delete_callhistory(self) -> None:
|
547
559
|
"""Deletes all info from callhistory table."""
|
548
560
|
try:
|
@@ -580,6 +592,20 @@ class DataBase:
|
|
580
592
|
logger.debug("%s", exception)
|
581
593
|
return ()
|
582
594
|
|
595
|
+
def fetch_all_dirty_contacts(self) -> list:
|
596
|
+
"""returns a list of dicts of contacts with dirty flag set in the database."""
|
597
|
+
try:
|
598
|
+
with sqlite3.connect(self.database) as conn:
|
599
|
+
conn.row_factory = self.row_factory
|
600
|
+
cursor = conn.cursor()
|
601
|
+
cursor.execute(
|
602
|
+
f"select * from dxlog where ContestNR = {self.current_contest} and dirty = 1;"
|
603
|
+
)
|
604
|
+
return cursor.fetchall()
|
605
|
+
except sqlite3.OperationalError as exception:
|
606
|
+
logger.debug("%s", exception)
|
607
|
+
return ()
|
608
|
+
|
583
609
|
def fetch_all_contacts_desc(self) -> list:
|
584
610
|
"""returns a list of dicts with contacts in the database."""
|
585
611
|
try:
|
@@ -592,6 +618,7 @@ class DataBase:
|
|
592
618
|
return cursor.fetchall()
|
593
619
|
except sqlite3.OperationalError as exception:
|
594
620
|
logger.debug("%s", exception)
|
621
|
+
return []
|
595
622
|
|
596
623
|
def fetch_last_contact(self) -> dict:
|
597
624
|
"""returns a list of dicts with last contact in the database."""
|
@@ -1088,6 +1115,20 @@ class DataBase:
|
|
1088
1115
|
logger.debug("%s", exception)
|
1089
1116
|
return {}
|
1090
1117
|
|
1118
|
+
def get_last_serial(self) -> dict:
|
1119
|
+
"""Return next serial number"""
|
1120
|
+
try:
|
1121
|
+
with sqlite3.connect(self.database) as conn:
|
1122
|
+
conn.row_factory = self.row_factory
|
1123
|
+
cursor = conn.cursor()
|
1124
|
+
cursor.execute(
|
1125
|
+
f"select max(SentNR) as serial_nr from DXLOG where ContestNR = {self.current_contest};"
|
1126
|
+
)
|
1127
|
+
return cursor.fetchone()
|
1128
|
+
except sqlite3.OperationalError as exception:
|
1129
|
+
logger.debug("%s", exception)
|
1130
|
+
return {}
|
1131
|
+
|
1091
1132
|
def get_empty(self) -> dict:
|
1092
1133
|
"""Return a dictionary object with keys and no values."""
|
1093
1134
|
return self.empty_contact
|
@@ -1216,7 +1257,7 @@ class DataBase:
|
|
1216
1257
|
return cursor.fetchall()
|
1217
1258
|
except sqlite3.OperationalError as exception:
|
1218
1259
|
logger.debug("%s", exception)
|
1219
|
-
return
|
1260
|
+
return []
|
1220
1261
|
|
1221
1262
|
def check_dupe_on_period_1_mode(
|
1222
1263
|
self, call, band, mode, contest_start_time, contest_time_period_1
|
not1mm/lib/settings.py
CHANGED
@@ -5,7 +5,7 @@ from PyQt6 import QtWidgets, uic
|
|
5
5
|
|
6
6
|
try:
|
7
7
|
import sounddevice as sd
|
8
|
-
except OSError
|
8
|
+
except OSError:
|
9
9
|
sd = None
|
10
10
|
|
11
11
|
|
@@ -17,7 +17,7 @@ class Settings(QtWidgets.QDialog):
|
|
17
17
|
super().__init__(parent)
|
18
18
|
self.logger = logging.getLogger("settings")
|
19
19
|
uic.loadUi(app_data_path / "configuration.ui", self)
|
20
|
-
self.tabWidget.setTabVisible(5, False)
|
20
|
+
# self.tabWidget.setTabVisible(5, False)
|
21
21
|
# self.group_tab.hide()
|
22
22
|
self.buttonBox.accepted.connect(self.save_changes)
|
23
23
|
self.usecwdaemon_radioButton.clicked.connect(self.set_cwdaemon_port_hint)
|
@@ -54,6 +54,8 @@ class Settings(QtWidgets.QDialog):
|
|
54
54
|
|
55
55
|
self.auto_cq_delay.setText(str(self.preference.get("auto_cq_interval", "15")))
|
56
56
|
|
57
|
+
self.connect_to_server.setChecked(bool(self.preference.get("useserver", False)))
|
58
|
+
|
57
59
|
self.use_call_history.setChecked(
|
58
60
|
bool(self.preference.get("use_call_history", False))
|
59
61
|
)
|
@@ -143,7 +145,7 @@ class Settings(QtWidgets.QDialog):
|
|
143
145
|
str(self.preference.get("cwpaddinglength", "3"))
|
144
146
|
)
|
145
147
|
|
146
|
-
self.connect_to_server.setChecked(bool(self.preference.get("useserver")))
|
148
|
+
self.connect_to_server.setChecked(bool(self.preference.get("useserver", False)))
|
147
149
|
self.multicast_group.setText(str(self.preference.get("multicast_group", "")))
|
148
150
|
self.multicast_port.setText(str(self.preference.get("multicast_port", "")))
|
149
151
|
self.interface_ip.setText(str(self.preference.get("interface_ip", "")))
|
@@ -218,6 +220,7 @@ class Settings(QtWidgets.QDialog):
|
|
218
220
|
"""
|
219
221
|
Write preferences to json file.
|
220
222
|
"""
|
223
|
+
self.preference["useserver"] = self.connect_to_server.isChecked()
|
221
224
|
self.preference["send_rtc_scores"] = self.send_rtc_scores.isChecked()
|
222
225
|
self.preference["rtc_url"] = self.rtc_url.currentText()
|
223
226
|
self.preference["rtc_user"] = self.rtc_user.text()
|
not1mm/lib/version.py
CHANGED