DigiSkimmer
DigiSkimmer copied to clipboard
Single digit dBm WSPR spots not uploaded (with solution)
Hi,
It seems that spots with single digit dBm value are not recognized by digiskimmer and thus not uploaded.
For example I get:
2023-08-17 09:10:37,028 INFO 209383 [QW-0] [kiwi] WSPR T090800 DB-21.0 DT0.2 F14.097133 PA3BTI JO22 3 : -
It prints "-" at the end instead of "PA3BTI 3".
Happens also with 0 dBm and 7 dBm spots.
The problem could be, that on the output there is an additional blank space between the locator and single digit power level.
I think it needs to be
wspr_splitter_pattern = re.compile("[<]?([A-Z0-9/]*)[>]?\s([A-R]{2}[0-9]{2}[\w]{0,2})\s+([0-9]+)")
instead of
wspr_splitter_pattern = re.compile("[<]?([A-Z0-9/]*)[>]?\s([A-R]{2}[0-9]{2}[\w]{0,2})\s([0-9]+)")
Tried it and it works (But I don't know if there could be side effects)