Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customized CQ calls are not recognized #2

Open
shadow974 opened this issue Feb 28, 2024 · 1 comment
Open

Customized CQ calls are not recognized #2

shadow974 opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@shadow974
Copy link

Thank you so much for this script!

I found a problem in the detection part of the script. If a Station calls "CQ POTA xyz" than "POTA" will be the caller which is never matching any POTA-Activator call. Same for OMs calling "CQ DX xyz". Maybe you could also match part "2" of the wsjtx split message?

vy73,
Karl, DD7KT

@SA0TAY SA0TAY added the bug Something isn't working label Mar 24, 2024
@SA0TAY
Copy link
Owner

SA0TAY commented Mar 24, 2024

Thank you for the bug report! In fairness, this was more meant as a proof of concept, so it's not something I'm actively working on. Nevertheless, the fix ought to be easily implemented, so I might as well make one.

If you have the opportunity to do so, could you check if the following change fixes the issue? I'm not really in a position to hunt at the moment.

diff --git a/potassium/__init__.py b/potassium/__init__.py
index c740949..99a5ee5 100755
--- a/potassium/__init__.py
+++ b/potassium/__init__.py
@@ -24,6 +24,8 @@ while True:
         if type(decoded_packet) == pywsjtx.DecodePacket:
             try:
                 caller = decoded_packet.message.split()[1].translate(str.maketrans("", "", "<>"))
+                if caller in ["POTA", "DX"]:
+                    caller = decoded_packet.message.split()[2].translate(str.maketrans("", "", "<>"))
             except IndexError:
                 print("DEBUG: Can't split payload: {}".format(decoded_packet.message))
                 continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants