¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Reading band or frequency from quisk_widgets.py


 

Hi group,

I am trying to extend the following widget:

What I am trying to achieve is to automatically change the selected band on the Hardrock-50 via an API call. At the moment I have added a button for each band (not in the code linked above) and when I click on it a request is sent to the server component which then sends the serial command to the HR50. Now I want to automate this.
To do this, I need to continuously read the selected band (or frequency if band is not possible), but I can only do this at startup by adding
to the function Widgets_0x06(self, app, hardware, conf, frame, gbs, vertBox)

The function "UpdateText(self)" is called all the time so I tried to read out the value from there as a test but I failed since I cannot reach it from inside this function.

Can you please help me here?

Thanks and 73
Michael, DK1MI

Join [email protected] to automatically receive all group messages.