not1mm 24.9.10.2__py3-none-any.whl → 24.9.11.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/lib/fldigi_watcher.py +1 -0
- not1mm/lib/lookup.py +37 -43
- not1mm/lib/version.py +1 -1
- not1mm/test.py +12 -5
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/METADATA +3 -1
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/RECORD +10 -10
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/LICENSE +0 -0
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/WHEEL +0 -0
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/entry_points.txt +0 -0
- {not1mm-24.9.10.2.dist-info → not1mm-24.9.11.1.dist-info}/top_level.txt +0 -0
not1mm/lib/fldigi_watcher.py
CHANGED
not1mm/lib/lookup.py
CHANGED
@@ -323,7 +323,7 @@ class HamQTH:
|
|
323
323
|
return
|
324
324
|
logger.info("resultcode: %s", query_result.status_code)
|
325
325
|
baseroot = xmltodict.parse(query_result.text)
|
326
|
-
root = baseroot.get("HamQTH")
|
326
|
+
root = baseroot.get("HamQTH", {})
|
327
327
|
session = root.get("session")
|
328
328
|
if session:
|
329
329
|
if session.get("session_id"):
|
@@ -344,55 +344,49 @@ class HamQTH:
|
|
344
344
|
"error_text": False,
|
345
345
|
}
|
346
346
|
if self.session:
|
347
|
-
payload = {"id": self.session, "callsign": call, "prg": "
|
347
|
+
payload = {"id": self.session, "callsign": call, "prg": "not1mm"}
|
348
348
|
try:
|
349
349
|
query_result = requests.get(self.url, params=payload, timeout=10.0)
|
350
350
|
except requests.exceptions.Timeout:
|
351
351
|
self.error = True
|
352
352
|
return the_result
|
353
353
|
logger.info("resultcode: %s", query_result.status_code)
|
354
|
-
baseroot = xmltodict.parse(query_result.text)
|
355
|
-
root = baseroot.get("HamQTH")
|
356
|
-
search = root.get("search")
|
357
|
-
session = root.get("session")
|
358
|
-
if not search:
|
359
|
-
if session:
|
360
|
-
if session.get("error"):
|
361
|
-
if session.get("error") == "Callsign not found":
|
362
|
-
the_result["error_text"] = session.get("error")
|
363
|
-
return the_result
|
364
|
-
if session.get("error") == "Session does not exist or expired":
|
365
|
-
self.getsession()
|
366
|
-
query_result = requests.get(
|
367
|
-
self.url, params=payload, timeout=10.0
|
368
|
-
)
|
369
|
-
the_result = self.parse_lookup(root)
|
370
|
-
return the_result
|
371
354
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
"
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
if
|
388
|
-
the_result
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
the_result["name"] =
|
355
|
+
query_dict = xmltodict.parse(query_result.text)
|
356
|
+
|
357
|
+
the_result["grid"] = (
|
358
|
+
query_dict.get("HamQTH", {}).get("search", {}).get("grid", False)
|
359
|
+
)
|
360
|
+
the_result["name"] = (
|
361
|
+
query_dict.get("HamQTH", {}).get("search", {}).get("name", False)
|
362
|
+
)
|
363
|
+
the_result["nickname"] = (
|
364
|
+
query_dict.get("HamQTH", {}).get("search", {}).get("nickname", False)
|
365
|
+
)
|
366
|
+
the_result["error_text"] = (
|
367
|
+
query_dict.get("HamQTH", {}).get("session", {}).get("error", False)
|
368
|
+
)
|
369
|
+
|
370
|
+
if the_result.get("error_text") == "Callsign not found":
|
371
|
+
return the_result
|
372
|
+
if the_result.get("error_text") == "Session does not exist or expired":
|
373
|
+
self.getsession()
|
374
|
+
query_result = requests.get(self.url, params=payload, timeout=10.0)
|
375
|
+
the_result["grid"] = (
|
376
|
+
query_dict.get("HamQTH", {}).get("search", {}).get("grid", False)
|
377
|
+
)
|
378
|
+
the_result["name"] = (
|
379
|
+
query_dict.get("HamQTH", {}).get("search", {}).get("name", False)
|
380
|
+
)
|
381
|
+
the_result["nickname"] = (
|
382
|
+
query_dict.get("HamQTH", {})
|
383
|
+
.get("search", {})
|
384
|
+
.get("nickname", False)
|
385
|
+
)
|
386
|
+
the_result["error_text"] = (
|
387
|
+
query_dict.get("HamQTH", {}).get("session", {}).get("error", False)
|
388
|
+
)
|
389
|
+
|
396
390
|
return the_result
|
397
391
|
|
398
392
|
|
not1mm/lib/version.py
CHANGED
not1mm/test.py
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
import
|
1
|
+
import xmltodict
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
# import xmlrpc.client
|
4
|
+
|
5
|
+
# target = "http://127.0.0.1:8421"
|
6
|
+
# server = xmlrpc.client.ServerProxy(target)
|
7
|
+
# adif = "<QSO_DATE:8>20150721<QSO_DATE_OFF:8>20150721<TIME_ON:4>1333<TIME_OFF:6>133436<CALL:5>N3FJP<FREQ:8>3.081500<MODE:0><RST_SENT:0><RST_RCVD:0><TX_PWR:0><NAME:5>Glenn<QTH:7>Bel Air<STATE:2>MD<VE_PROV:0><COUNTRY:13>United States<GRIDSQUARE:6>FM19tm<STX:0><SRX:0><SRX_STRING:0><STX_STRING:0><NOTES:0><IOTA:0><DXCC:0><QSL_VIA:0><QSLRDATE:0><QSLSDATE:0><eor>"
|
8
|
+
# response = server.log.add_record(adif)
|
9
|
+
|
10
|
+
|
11
|
+
xml = '<?xml version="1.0"?>\n<HamQTH version="2.8" xmlns="https://www.hamqth.com">\n <search>\n <callsign>K6GTE</callsign>\n <nick>Mike</nick>\n <qth>Anaheim</qth>\n <country>United States</country>\n <adif>291</adif>\n <itu>6</itu>\n <cq>3</cq>\n <grid>DM13AT</grid>\n <adr_name>Michael C Bridak</adr_name>\n <adr_street1>2854 W Bridgeport Ave</adr_street1>\n <adr_city>Anaheim</adr_city>\n <adr_zip>92804</adr_zip>\n <adr_country>United States</adr_country>\n <adr_adif>291</adr_adif>\n <us_state>CA</us_state>\n <us_county>Orange</us_county>\n <lotw>Y</lotw>\n <qsldirect>Y</qsldirect>\n <qsl>?</qsl>\n <eqsl>N</eqsl>\n <email>michael.bridak@gmail.com</email>\n <birth_year>1967</birth_year>\n <lic_year>2017</lic_year>\n <latitude>33.81</latitude>\n <longitude>-117.97</longitude>\n <continent>NA</continent>\n <utc_offset>-8</utc_offset>\n <picture>https://www.hamqth.com/userfiles/k/k6/k6gte/_header/header.jpg?ver=3</picture>\n </search>\n</HamQTH>'
|
12
|
+
result = xmltodict.parse(xml)
|
13
|
+
print(f"{result=}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: not1mm
|
3
|
-
Version: 24.9.
|
3
|
+
Version: 24.9.11.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
|
@@ -229,6 +229,8 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
|
|
229
229
|
|
230
230
|
## Recent Changes
|
231
231
|
|
232
|
+
- [24-9-11-1] Fixed high clock cycle usage from the FlDigiWatcher class.
|
233
|
+
- [24-9-11] Fixed the HamQTH call lookups.
|
232
234
|
- [24-9-10-2] Removed mapping of FM to PH in the ARRL VHF Cabrillo logs
|
233
235
|
- [24-9-10-1] ft8_watcher now used default WSJT-X Multicast address and port.
|
234
236
|
- [24-9-10] Add WSJT FT8/4 and fldigi support to ARRL VHF.
|
@@ -5,7 +5,7 @@ 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/radio.py,sha256=eiB04LPMPBeMrBRI021Z7VXth66EOYb0Ujh11T9877c,3362
|
8
|
-
not1mm/test.py,sha256=
|
8
|
+
not1mm/test.py,sha256=xbGtnhdoX16C6nrqzLDydqgQtiWxYWmZ2NN74DF-VLM,1736
|
9
9
|
not1mm/vfo.py,sha256=IvmUQYMIPzLJw_BHQGis4J_IEW-vlBtdfxZLXPh7OzI,12335
|
10
10
|
not1mm/voice_keying.py,sha256=sA3gw5_k7kShTg2qhG7HkKDM5M6KheJVRkAc_C7mxDk,3006
|
11
11
|
not1mm/data/JetBrainsMono-Regular.ttf,sha256=UOHctAKY_PzCGh7zy-6f6egnCcSK0wzmF0csBqO9lDY,203952
|
@@ -99,10 +99,10 @@ not1mm/lib/edit_contact.py,sha256=Ki9bGPpqyQQBB1cU8VIBDCal3lbXeQ6qxhzklmhE2_w,35
|
|
99
99
|
not1mm/lib/edit_macro.py,sha256=raKWBwsHInj5EUKmvyLQ6gqc3ZFDlstsD3xqoM4PC8E,517
|
100
100
|
not1mm/lib/edit_opon.py,sha256=j3qJ1aBsQoIOnQ9yiBl3lyeISvKTP0I_rtBYBPAfgeI,359
|
101
101
|
not1mm/lib/edit_station.py,sha256=doL21Hs6jzIE43ohAopdFt_iqnRJZHFcqzcnCS0-iio,1965
|
102
|
-
not1mm/lib/fldigi_watcher.py,sha256=
|
102
|
+
not1mm/lib/fldigi_watcher.py,sha256=reZz3fZLDoJVVZhJD9nIssk2aczCzadDSQTVu-5mTCM,919
|
103
103
|
not1mm/lib/ft8_watcher.py,sha256=npHTjO5mtg3lvYSK6G8BEMMrtZ_1M5xM6Q8NnEQ6MlI,4585
|
104
104
|
not1mm/lib/ham_utility.py,sha256=uRErxCxZr8dfxzekPyett0e_BABDVOCvSUUTzXq6ctE,11790
|
105
|
-
not1mm/lib/lookup.py,sha256=
|
105
|
+
not1mm/lib/lookup.py,sha256=i7ZF1bzJ_ofbE_r2OEEud0lKOOiDfeis8CVUo3s2pdI,13801
|
106
106
|
not1mm/lib/multicast.py,sha256=bnFUNHyy82GmIb3_88EPBVVssj7-HzkJPaH671cK8Qw,3249
|
107
107
|
not1mm/lib/n1mm.py,sha256=H54mpgJF0GAmKavM-nb5OAq2SJFWYkux4eMWWiSRxJc,6288
|
108
108
|
not1mm/lib/new_contest.py,sha256=IznTDMq7yXHB6zBoGUEC_WDYPCPpsSZW4wwMJi16zK0,816
|
@@ -111,7 +111,7 @@ not1mm/lib/plugin_common.py,sha256=yefvcX61fXSjs__OPssJqVlZyg1AlcV1VDkl2MQP6kk,9
|
|
111
111
|
not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
|
112
112
|
not1mm/lib/settings.py,sha256=MWiKXbasaFbzeHTjfzTaTqbCBrIijudP_-0a5jNmUAA,9265
|
113
113
|
not1mm/lib/super_check_partial.py,sha256=p5l3u2ZOCBtlWgbvskC50FpuoaIpR07tfC6zTdRWbh4,2334
|
114
|
-
not1mm/lib/version.py,sha256=
|
114
|
+
not1mm/lib/version.py,sha256=Gc-EEmfG38sVdxZNs1wtiI9jjVJPfHUzr1dD8W26SuE,50
|
115
115
|
not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
|
116
116
|
not1mm/plugins/10_10_fall_cw.py,sha256=IttjX1yy4nDdACGsiYlPteFG8eVseX_WtoFio6bqHE8,10953
|
117
117
|
not1mm/plugins/10_10_spring_cw.py,sha256=ThCptdM3dX4ywhoy2JRcOEyHSqcJolFaT7O_PYzM1Mg,10958
|
@@ -152,9 +152,9 @@ not1mm/plugins/ref_cw.py,sha256=aWjHHkqIKutjRUtzh09y5haFfnZK9poRQDWRQMDRxxU,1632
|
|
152
152
|
not1mm/plugins/stew_perry_topband.py,sha256=CKBQbYl4ETxhXJd2dma4fg_C5pag_s7Nf61SCztZtqE,10668
|
153
153
|
not1mm/plugins/weekly_rtty.py,sha256=DQcy3SY0Zn56EdlYGf3NxrRhTnkNa5IqRQPRQdKDSPs,14255
|
154
154
|
not1mm/plugins/winter_field_day.py,sha256=4rcfRtobwjHO6BNL3WOTHzBmyyeuX79BNGBG8PfjrI8,10238
|
155
|
-
not1mm-24.9.
|
156
|
-
not1mm-24.9.
|
157
|
-
not1mm-24.9.
|
158
|
-
not1mm-24.9.
|
159
|
-
not1mm-24.9.
|
160
|
-
not1mm-24.9.
|
155
|
+
not1mm-24.9.11.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
156
|
+
not1mm-24.9.11.1.dist-info/METADATA,sha256=0LOjahCtholQQaSA7q-_-2W-C3kwEnayTMmFRkCP5SE,30902
|
157
|
+
not1mm-24.9.11.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
158
|
+
not1mm-24.9.11.1.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
|
159
|
+
not1mm-24.9.11.1.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
|
160
|
+
not1mm-24.9.11.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|