not1mm 24.11.21__py3-none-any.whl → 24.12.3.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 +65 -66
- not1mm/bandmap.py +9 -0
- not1mm/data/bandmap.ui +43 -12
- not1mm/data/configuration.ui +77 -67
- not1mm/data/donors.html +4 -0
- not1mm/data/new_contest.ui +5 -0
- not1mm/lib/cat_interface.py +24 -14
- not1mm/lib/database.py +17 -0
- not1mm/lib/settings.py +5 -0
- not1mm/lib/version.py +1 -1
- not1mm/plugins/10_10_fall_cw.py +91 -0
- not1mm/plugins/10_10_spring_cw.py +91 -0
- not1mm/plugins/10_10_summer_phone.py +91 -0
- not1mm/plugins/10_10_winter_phone.py +91 -0
- not1mm/plugins/arrl_10m.py +110 -0
- not1mm/plugins/arrl_160m.py +543 -0
- not1mm/plugins/arrl_vhf_jan.py +92 -1
- not1mm/plugins/arrl_vhf_jun.py +92 -1
- not1mm/plugins/arrl_vhf_sep.py +95 -1
- not1mm/plugins/cq_160_cw.py +94 -5
- not1mm/plugins/cq_160_ssb.py +94 -5
- not1mm/plugins/cq_ww_cw.py +14 -5
- not1mm/plugins/cq_ww_ssb.py +13 -5
- not1mm/plugins/iaru_fieldday_r1_cw.py +91 -0
- not1mm/plugins/iaru_fieldday_r1_ssb.py +91 -0
- not1mm/plugins/iaru_hf.py +110 -0
- not1mm/radio.py +5 -4
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/METADATA +28 -38
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/RECORD +33 -32
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/LICENSE +0 -0
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/WHEEL +0 -0
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/entry_points.txt +0 -0
- {not1mm-24.11.21.dist-info → not1mm-24.12.3.1.dist-info}/top_level.txt +0 -0
not1mm/plugins/arrl_vhf_jun.py
CHANGED
@@ -490,11 +490,102 @@ def ft8_handler(the_packet: dict):
|
|
490
490
|
ALTEREGO.save_contact()
|
491
491
|
|
492
492
|
|
493
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
494
|
+
"""ESM State Machine"""
|
495
|
+
|
496
|
+
# self.pref["run_state"]
|
497
|
+
|
498
|
+
# -----===== Assigned F-Keys =====-----
|
499
|
+
# self.esm_dict["CQ"]
|
500
|
+
# self.esm_dict["EXCH"]
|
501
|
+
# self.esm_dict["QRZ"]
|
502
|
+
# self.esm_dict["AGN"]
|
503
|
+
# self.esm_dict["HISCALL"]
|
504
|
+
# self.esm_dict["MYCALL"]
|
505
|
+
# self.esm_dict["QSOB4"]
|
506
|
+
|
507
|
+
# ----==== text fields ====----
|
508
|
+
# self.callsign
|
509
|
+
# self.sent
|
510
|
+
# self.receive
|
511
|
+
# self.other_1
|
512
|
+
# self.other_2
|
513
|
+
|
514
|
+
if new_focused_widget is not None:
|
515
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
516
|
+
|
517
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
518
|
+
|
519
|
+
for a_button in [
|
520
|
+
self.esm_dict["CQ"],
|
521
|
+
self.esm_dict["EXCH"],
|
522
|
+
self.esm_dict["QRZ"],
|
523
|
+
self.esm_dict["AGN"],
|
524
|
+
self.esm_dict["HISCALL"],
|
525
|
+
self.esm_dict["MYCALL"],
|
526
|
+
self.esm_dict["QSOB4"],
|
527
|
+
]:
|
528
|
+
if a_button is not None:
|
529
|
+
self.restore_button_color(a_button)
|
530
|
+
|
531
|
+
buttons_to_send = []
|
532
|
+
|
533
|
+
if self.pref.get("run_state"):
|
534
|
+
if self.current_widget == "callsign":
|
535
|
+
if len(self.callsign.text()) < 3:
|
536
|
+
self.make_button_green(self.esm_dict["CQ"])
|
537
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
538
|
+
elif len(self.callsign.text()) > 2:
|
539
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
540
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
541
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
542
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
543
|
+
|
544
|
+
elif self.current_widget in ["other_2"]:
|
545
|
+
if self.other_2.text() == "":
|
546
|
+
self.make_button_green(self.esm_dict["AGN"])
|
547
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
548
|
+
else:
|
549
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
550
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
551
|
+
buttons_to_send.append("LOGIT")
|
552
|
+
|
553
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
554
|
+
for button in buttons_to_send:
|
555
|
+
if button:
|
556
|
+
if button == "LOGIT":
|
557
|
+
self.save_contact()
|
558
|
+
continue
|
559
|
+
self.process_function_key(button)
|
560
|
+
else:
|
561
|
+
if self.current_widget == "callsign":
|
562
|
+
if len(self.callsign.text()) > 2:
|
563
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
564
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
565
|
+
|
566
|
+
elif self.current_widget in ["other_2"]:
|
567
|
+
if self.other_2.text() == "":
|
568
|
+
self.make_button_green(self.esm_dict["AGN"])
|
569
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
570
|
+
else:
|
571
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
572
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
573
|
+
buttons_to_send.append("LOGIT")
|
574
|
+
|
575
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
576
|
+
for button in buttons_to_send:
|
577
|
+
if button:
|
578
|
+
if button == "LOGIT":
|
579
|
+
self.save_contact()
|
580
|
+
continue
|
581
|
+
self.process_function_key(button)
|
582
|
+
|
583
|
+
|
493
584
|
def populate_history_info_line(self):
|
494
585
|
result = self.database.fetch_call_history(self.callsign.text())
|
495
586
|
if result:
|
496
587
|
self.history_info.setText(
|
497
|
-
f"{result.get('Call', '')}, {result.get('Loc1', '')}, {result.get('UserText','...')}"
|
588
|
+
f"{result.get('Call', '')}, {result.get('Name', '')}, {result.get('Loc1', '')}, {result.get('UserText','...')}"
|
498
589
|
)
|
499
590
|
else:
|
500
591
|
self.history_info.setText("")
|
not1mm/plugins/arrl_vhf_sep.py
CHANGED
@@ -490,11 +490,102 @@ def ft8_handler(the_packet: dict):
|
|
490
490
|
ALTEREGO.save_contact()
|
491
491
|
|
492
492
|
|
493
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
494
|
+
"""ESM State Machine"""
|
495
|
+
|
496
|
+
# self.pref["run_state"]
|
497
|
+
|
498
|
+
# -----===== Assigned F-Keys =====-----
|
499
|
+
# self.esm_dict["CQ"]
|
500
|
+
# self.esm_dict["EXCH"]
|
501
|
+
# self.esm_dict["QRZ"]
|
502
|
+
# self.esm_dict["AGN"]
|
503
|
+
# self.esm_dict["HISCALL"]
|
504
|
+
# self.esm_dict["MYCALL"]
|
505
|
+
# self.esm_dict["QSOB4"]
|
506
|
+
|
507
|
+
# ----==== text fields ====----
|
508
|
+
# self.callsign
|
509
|
+
# self.sent
|
510
|
+
# self.receive
|
511
|
+
# self.other_1
|
512
|
+
# self.other_2
|
513
|
+
|
514
|
+
if new_focused_widget is not None:
|
515
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
516
|
+
|
517
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
518
|
+
|
519
|
+
for a_button in [
|
520
|
+
self.esm_dict["CQ"],
|
521
|
+
self.esm_dict["EXCH"],
|
522
|
+
self.esm_dict["QRZ"],
|
523
|
+
self.esm_dict["AGN"],
|
524
|
+
self.esm_dict["HISCALL"],
|
525
|
+
self.esm_dict["MYCALL"],
|
526
|
+
self.esm_dict["QSOB4"],
|
527
|
+
]:
|
528
|
+
if a_button is not None:
|
529
|
+
self.restore_button_color(a_button)
|
530
|
+
|
531
|
+
buttons_to_send = []
|
532
|
+
|
533
|
+
if self.pref.get("run_state"):
|
534
|
+
if self.current_widget == "callsign":
|
535
|
+
if len(self.callsign.text()) < 3:
|
536
|
+
self.make_button_green(self.esm_dict["CQ"])
|
537
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
538
|
+
elif len(self.callsign.text()) > 2:
|
539
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
540
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
541
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
542
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
543
|
+
|
544
|
+
elif self.current_widget in ["other_2"]:
|
545
|
+
if self.other_2.text() == "":
|
546
|
+
self.make_button_green(self.esm_dict["AGN"])
|
547
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
548
|
+
else:
|
549
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
550
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
551
|
+
buttons_to_send.append("LOGIT")
|
552
|
+
|
553
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
554
|
+
for button in buttons_to_send:
|
555
|
+
if button:
|
556
|
+
if button == "LOGIT":
|
557
|
+
self.save_contact()
|
558
|
+
continue
|
559
|
+
self.process_function_key(button)
|
560
|
+
else:
|
561
|
+
if self.current_widget == "callsign":
|
562
|
+
if len(self.callsign.text()) > 2:
|
563
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
564
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
565
|
+
|
566
|
+
elif self.current_widget in ["other_2"]:
|
567
|
+
if self.other_2.text() == "":
|
568
|
+
self.make_button_green(self.esm_dict["AGN"])
|
569
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
570
|
+
else:
|
571
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
572
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
573
|
+
buttons_to_send.append("LOGIT")
|
574
|
+
|
575
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
576
|
+
for button in buttons_to_send:
|
577
|
+
if button:
|
578
|
+
if button == "LOGIT":
|
579
|
+
self.save_contact()
|
580
|
+
continue
|
581
|
+
self.process_function_key(button)
|
582
|
+
|
583
|
+
|
493
584
|
def populate_history_info_line(self):
|
494
585
|
result = self.database.fetch_call_history(self.callsign.text())
|
495
586
|
if result:
|
496
587
|
self.history_info.setText(
|
497
|
-
f"{result.get('Call', '')}, {result.get('Loc1', '')}, {result.get('UserText','...')}"
|
588
|
+
f"{result.get('Call', '')}, {result.get('Name', '')}, {result.get('Loc1', '')}, {result.get('UserText','...')}"
|
498
589
|
)
|
499
590
|
else:
|
500
591
|
self.history_info.setText("")
|
@@ -507,3 +598,6 @@ def check_call_history(self):
|
|
507
598
|
self.history_info.setText(f"{result.get('UserText','')}")
|
508
599
|
if self.other_2.text() == "":
|
509
600
|
self.other_2.setText(f"{result.get('Loc1', '')}")
|
601
|
+
|
602
|
+
|
603
|
+
# !!Order!!,Call,Name,Loc1,UserText,
|
not1mm/plugins/cq_160_cw.py
CHANGED
@@ -436,11 +436,102 @@ def recalculate_mults(self):
|
|
436
436
|
trigger_update(self)
|
437
437
|
|
438
438
|
|
439
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
440
|
+
"""ESM State Machine"""
|
441
|
+
|
442
|
+
# self.pref["run_state"]
|
443
|
+
|
444
|
+
# -----===== Assigned F-Keys =====-----
|
445
|
+
# self.esm_dict["CQ"]
|
446
|
+
# self.esm_dict["EXCH"]
|
447
|
+
# self.esm_dict["QRZ"]
|
448
|
+
# self.esm_dict["AGN"]
|
449
|
+
# self.esm_dict["HISCALL"]
|
450
|
+
# self.esm_dict["MYCALL"]
|
451
|
+
# self.esm_dict["QSOB4"]
|
452
|
+
|
453
|
+
# ----==== text fields ====----
|
454
|
+
# self.callsign
|
455
|
+
# self.sent
|
456
|
+
# self.receive
|
457
|
+
# self.other_1
|
458
|
+
# self.other_2
|
459
|
+
|
460
|
+
if new_focused_widget is not None:
|
461
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
462
|
+
|
463
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
464
|
+
|
465
|
+
for a_button in [
|
466
|
+
self.esm_dict["CQ"],
|
467
|
+
self.esm_dict["EXCH"],
|
468
|
+
self.esm_dict["QRZ"],
|
469
|
+
self.esm_dict["AGN"],
|
470
|
+
self.esm_dict["HISCALL"],
|
471
|
+
self.esm_dict["MYCALL"],
|
472
|
+
self.esm_dict["QSOB4"],
|
473
|
+
]:
|
474
|
+
if a_button is not None:
|
475
|
+
self.restore_button_color(a_button)
|
476
|
+
|
477
|
+
buttons_to_send = []
|
478
|
+
|
479
|
+
if self.pref.get("run_state"):
|
480
|
+
if self.current_widget == "callsign":
|
481
|
+
if len(self.callsign.text()) < 3:
|
482
|
+
self.make_button_green(self.esm_dict["CQ"])
|
483
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
484
|
+
elif len(self.callsign.text()) > 2:
|
485
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
486
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
487
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
488
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
489
|
+
|
490
|
+
elif self.current_widget in ["other_2"]:
|
491
|
+
if self.other_2.text() == "":
|
492
|
+
self.make_button_green(self.esm_dict["AGN"])
|
493
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
494
|
+
else:
|
495
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
496
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
497
|
+
buttons_to_send.append("LOGIT")
|
498
|
+
|
499
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
500
|
+
for button in buttons_to_send:
|
501
|
+
if button:
|
502
|
+
if button == "LOGIT":
|
503
|
+
self.save_contact()
|
504
|
+
continue
|
505
|
+
self.process_function_key(button)
|
506
|
+
else:
|
507
|
+
if self.current_widget == "callsign":
|
508
|
+
if len(self.callsign.text()) > 2:
|
509
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
510
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
511
|
+
|
512
|
+
elif self.current_widget in ["other_2"]:
|
513
|
+
if self.other_2.text() == "":
|
514
|
+
self.make_button_green(self.esm_dict["AGN"])
|
515
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
516
|
+
else:
|
517
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
518
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
519
|
+
buttons_to_send.append("LOGIT")
|
520
|
+
|
521
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
522
|
+
for button in buttons_to_send:
|
523
|
+
if button:
|
524
|
+
if button == "LOGIT":
|
525
|
+
self.save_contact()
|
526
|
+
continue
|
527
|
+
self.process_function_key(button)
|
528
|
+
|
529
|
+
|
439
530
|
def populate_history_info_line(self):
|
440
531
|
result = self.database.fetch_call_history(self.callsign.text())
|
441
532
|
if result:
|
442
533
|
self.history_info.setText(
|
443
|
-
f"{result.get('Call', '')}, {result.get('UserText','...')}"
|
534
|
+
f"{result.get('Call', '')}, {result.get('Name', '')}, {result.get('State', '')}, {result.get('UserText','...')}"
|
444
535
|
)
|
445
536
|
else:
|
446
537
|
self.history_info.setText("")
|
@@ -451,7 +542,5 @@ def check_call_history(self):
|
|
451
542
|
result = self.database.fetch_call_history(self.callsign.text())
|
452
543
|
if result:
|
453
544
|
self.history_info.setText(f"{result.get('UserText','')}")
|
454
|
-
|
455
|
-
|
456
|
-
# if self.other_2.text() == "":
|
457
|
-
# self.other_2.setText(f"{result.get('State', '')}")
|
545
|
+
if self.other_2.text() == "":
|
546
|
+
self.other_2.setText(f"{result.get('State', '')}")
|
not1mm/plugins/cq_160_ssb.py
CHANGED
@@ -436,11 +436,102 @@ def recalculate_mults(self):
|
|
436
436
|
trigger_update(self)
|
437
437
|
|
438
438
|
|
439
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
440
|
+
"""ESM State Machine"""
|
441
|
+
|
442
|
+
# self.pref["run_state"]
|
443
|
+
|
444
|
+
# -----===== Assigned F-Keys =====-----
|
445
|
+
# self.esm_dict["CQ"]
|
446
|
+
# self.esm_dict["EXCH"]
|
447
|
+
# self.esm_dict["QRZ"]
|
448
|
+
# self.esm_dict["AGN"]
|
449
|
+
# self.esm_dict["HISCALL"]
|
450
|
+
# self.esm_dict["MYCALL"]
|
451
|
+
# self.esm_dict["QSOB4"]
|
452
|
+
|
453
|
+
# ----==== text fields ====----
|
454
|
+
# self.callsign
|
455
|
+
# self.sent
|
456
|
+
# self.receive
|
457
|
+
# self.other_1
|
458
|
+
# self.other_2
|
459
|
+
|
460
|
+
if new_focused_widget is not None:
|
461
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
462
|
+
|
463
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
464
|
+
|
465
|
+
for a_button in [
|
466
|
+
self.esm_dict["CQ"],
|
467
|
+
self.esm_dict["EXCH"],
|
468
|
+
self.esm_dict["QRZ"],
|
469
|
+
self.esm_dict["AGN"],
|
470
|
+
self.esm_dict["HISCALL"],
|
471
|
+
self.esm_dict["MYCALL"],
|
472
|
+
self.esm_dict["QSOB4"],
|
473
|
+
]:
|
474
|
+
if a_button is not None:
|
475
|
+
self.restore_button_color(a_button)
|
476
|
+
|
477
|
+
buttons_to_send = []
|
478
|
+
|
479
|
+
if self.pref.get("run_state"):
|
480
|
+
if self.current_widget == "callsign":
|
481
|
+
if len(self.callsign.text()) < 3:
|
482
|
+
self.make_button_green(self.esm_dict["CQ"])
|
483
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
484
|
+
elif len(self.callsign.text()) > 2:
|
485
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
486
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
487
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
488
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
489
|
+
|
490
|
+
elif self.current_widget in ["other_2"]:
|
491
|
+
if self.other_2.text() == "":
|
492
|
+
self.make_button_green(self.esm_dict["AGN"])
|
493
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
494
|
+
else:
|
495
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
496
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
497
|
+
buttons_to_send.append("LOGIT")
|
498
|
+
|
499
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
500
|
+
for button in buttons_to_send:
|
501
|
+
if button:
|
502
|
+
if button == "LOGIT":
|
503
|
+
self.save_contact()
|
504
|
+
continue
|
505
|
+
self.process_function_key(button)
|
506
|
+
else:
|
507
|
+
if self.current_widget == "callsign":
|
508
|
+
if len(self.callsign.text()) > 2:
|
509
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
510
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
511
|
+
|
512
|
+
elif self.current_widget in ["other_2"]:
|
513
|
+
if self.other_2.text() == "":
|
514
|
+
self.make_button_green(self.esm_dict["AGN"])
|
515
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
516
|
+
else:
|
517
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
518
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
519
|
+
buttons_to_send.append("LOGIT")
|
520
|
+
|
521
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
522
|
+
for button in buttons_to_send:
|
523
|
+
if button:
|
524
|
+
if button == "LOGIT":
|
525
|
+
self.save_contact()
|
526
|
+
continue
|
527
|
+
self.process_function_key(button)
|
528
|
+
|
529
|
+
|
439
530
|
def populate_history_info_line(self):
|
440
531
|
result = self.database.fetch_call_history(self.callsign.text())
|
441
532
|
if result:
|
442
533
|
self.history_info.setText(
|
443
|
-
f"{result.get('Call', '')}, {result.get('UserText','...')}"
|
534
|
+
f"{result.get('Call', '')}, {result.get('Name', '')}, {result.get('State', '')}, {result.get('UserText','...')}"
|
444
535
|
)
|
445
536
|
else:
|
446
537
|
self.history_info.setText("")
|
@@ -451,7 +542,5 @@ def check_call_history(self):
|
|
451
542
|
result = self.database.fetch_call_history(self.callsign.text())
|
452
543
|
if result:
|
453
544
|
self.history_info.setText(f"{result.get('UserText','')}")
|
454
|
-
|
455
|
-
|
456
|
-
# if self.other_2.text() == "":
|
457
|
-
# self.other_2.setText(f"{result.get('State', '')}")
|
545
|
+
if self.other_2.text() == "":
|
546
|
+
self.other_2.setText(f"{result.get('State', '')}")
|
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
|
|
@@ -433,3 +433,94 @@ def recalculate_mults(self):
|
|
433
433
|
else:
|
434
434
|
contact["IsMultiplier1"] = 0
|
435
435
|
self.database.change_contact(contact)
|
436
|
+
|
437
|
+
|
438
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
439
|
+
"""ESM State Machine"""
|
440
|
+
|
441
|
+
# self.pref["run_state"]
|
442
|
+
|
443
|
+
# -----===== Assigned F-Keys =====-----
|
444
|
+
# self.esm_dict["CQ"]
|
445
|
+
# self.esm_dict["EXCH"]
|
446
|
+
# self.esm_dict["QRZ"]
|
447
|
+
# self.esm_dict["AGN"]
|
448
|
+
# self.esm_dict["HISCALL"]
|
449
|
+
# self.esm_dict["MYCALL"]
|
450
|
+
# self.esm_dict["QSOB4"]
|
451
|
+
|
452
|
+
# ----==== text fields ====----
|
453
|
+
# self.callsign
|
454
|
+
# self.sent
|
455
|
+
# self.receive
|
456
|
+
# self.other_1
|
457
|
+
# self.other_2
|
458
|
+
|
459
|
+
if new_focused_widget is not None:
|
460
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
461
|
+
|
462
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
463
|
+
|
464
|
+
for a_button in [
|
465
|
+
self.esm_dict["CQ"],
|
466
|
+
self.esm_dict["EXCH"],
|
467
|
+
self.esm_dict["QRZ"],
|
468
|
+
self.esm_dict["AGN"],
|
469
|
+
self.esm_dict["HISCALL"],
|
470
|
+
self.esm_dict["MYCALL"],
|
471
|
+
self.esm_dict["QSOB4"],
|
472
|
+
]:
|
473
|
+
if a_button is not None:
|
474
|
+
self.restore_button_color(a_button)
|
475
|
+
|
476
|
+
buttons_to_send = []
|
477
|
+
|
478
|
+
if self.pref.get("run_state"):
|
479
|
+
if self.current_widget == "callsign":
|
480
|
+
if len(self.callsign.text()) < 3:
|
481
|
+
self.make_button_green(self.esm_dict["CQ"])
|
482
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
483
|
+
elif len(self.callsign.text()) > 2:
|
484
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
485
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
486
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
487
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
488
|
+
|
489
|
+
elif self.current_widget in ["other_2"]:
|
490
|
+
if self.other_2.text() == "":
|
491
|
+
self.make_button_green(self.esm_dict["AGN"])
|
492
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
493
|
+
else:
|
494
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
495
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
496
|
+
buttons_to_send.append("LOGIT")
|
497
|
+
|
498
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
499
|
+
for button in buttons_to_send:
|
500
|
+
if button:
|
501
|
+
if button == "LOGIT":
|
502
|
+
self.save_contact()
|
503
|
+
continue
|
504
|
+
self.process_function_key(button)
|
505
|
+
else:
|
506
|
+
if self.current_widget == "callsign":
|
507
|
+
if len(self.callsign.text()) > 2:
|
508
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
509
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
510
|
+
|
511
|
+
elif self.current_widget in ["other_2"]:
|
512
|
+
if self.other_2.text() == "":
|
513
|
+
self.make_button_green(self.esm_dict["AGN"])
|
514
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
515
|
+
else:
|
516
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
517
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
518
|
+
buttons_to_send.append("LOGIT")
|
519
|
+
|
520
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
521
|
+
for button in buttons_to_send:
|
522
|
+
if button:
|
523
|
+
if button == "LOGIT":
|
524
|
+
self.save_contact()
|
525
|
+
continue
|
526
|
+
self.process_function_key(button)
|