开云体育

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

Changing font color by value of msg.payload


 

I'm trying to make my OUTPUT SWR font change from GREEN to YELLOW to ORANGE to RED as the SWR value climbs past certain levels. Here is what I've been trying to use, but it doesn't work.?

Charlie KB8CR


 

开云体育

Hi Charlie,

I have used the ui-level node for power and SWR meters. I set meter to go from 1 to 5.
Green 1 to 2, yellow 2 to 3, and red 3 to 5.

Gives a good bar graph with ability to have numerical value underneath.

73
Dave wo2x


On Aug 2, 2021, at 10:32 PM, Charlie Rubenstein <charlier@...> wrote:

?I'm trying to make my OUTPUT SWR font change from GREEN to YELLOW to ORANGE to RED as the SWR value climbs past certain levels. Here is what I've been trying to use, but it doesn't work.?

Charlie KB8CR
<font-color-flow.json>


 

Hi Dave:

Yea, I have the meter on the dashboard, but wanted a real simple display with just large numbers for PA output and PA SWR. Really wish we would somehow send that information back to be displayed on the screen of the Maestro (like the PGXL) ha ha.

Charlie


 

BTW, Dave......I've been using the Elecraft utilities to run the KPA500/KAT500 set for a while, but decided I prefer the dashboard on NR. (Acutally was sorta QRT for? while taking care of some medical issues and my 92 yr old mom).
I couldn't get the flow to work at all when I hooked it back up to the PI. Alan helped me get the serial (USB) ports talking, and then I realized I needed to update some things for the new firmware. Got it all running in short order after that.? For a full-sized screen, the dash is great. But I'd like to make just a small touch screen to display PWR OUT from the amp, and the SWR, as well as a button switch OPERATE/STANDBY. I could do it on a small Pi and sit it next to my Meastro.

Charlie


 

开云体育

Well you could
Probably use some of Alan’s tricks to use a msg.topic to set color. Before sending msg.payload to the dash you would need to set msg.topic based on range of number. I format SWR to two decimal places.?

It’s more fun when you get SWR from the Power Genius or Tuner Genius. It is in return loss then you have to convert it.?

Have fun!

Dave wo2x

Sent from my waxed string and tin cans.?

On Aug 2, 2021, at 11:21 PM, Charlie Rubenstein <charlier@...> wrote:

?Hi Dave:

Yea, I have the meter on the dashboard, but wanted a real simple display with just large numbers for PA output and PA SWR. Really wish we would somehow send that information back to be displayed on the screen of the Maestro (like the PGXL) ha ha.

Charlie


 

Oh.....RUB IT IN...hi hi. I'm very happy with my little KPA500. It really has enhanced ham radio for me. All those Asian countries that had been out of reach are now in the log. Just about to cross the 200 DXCC mark. Very pleased with the station. No big yagi or tower here, just a EFHW up 50'. When I first installed the amp, I was having some RFI issues, but with some tweaks to the feedline length and a LPF, it's pretty much gone.?

I wonder if there is an API for sending data to the Maestro.....would really like to send PA output power and SWR to its screen.


73 de Charlie KB8CR


 

Charlie

You were very close. ?I revised your flow. ?Now it works. ?Attached.

Alan. WA9WUD


 

Charlie

Contact?me off-line.? We can build a "toggle" operate/standby button for your?amplifier, together, via Team View.

Alan

On Mon, Aug 2, 2021 at 11:27 PM Charlie Rubenstein <charlier@...> wrote:
BTW, Dave......I've been using the Elecraft utilities to run the KPA500/KAT500 set for a while, but decided I prefer the dashboard on NR. (Acutally was sorta QRT for? while taking care of some medical issues and my 92 yr old mom).
I couldn't get the flow to work at all when I hooked it back up to the PI. Alan helped me get the serial (USB) ports talking, and then I realized I needed to update some things for the new firmware. Got it all running in short order after that.? For a full-sized screen, the dash is great. But I'd like to make just a small touch screen to display PWR OUT from the amp, and the SWR, as well as a button switch OPERATE/STANDBY. I could do it on a small Pi and sit it next to my Meastro.

Charlie


 

There is no direct API for sending data to the Maestro - exactly. It has to be accomplished via another path - via the Radio server itself. I have this in my work-in-progress list and is only in "proof-of-concept" status.

It is part of another interesting application, when finished, will allow a KPA500/KPA1500 to partially emulate a PGXL for display purposes.

That project has been stalled lately, as I'm busy finalizing another larger and exciting, Ham radio / Node-Red team project which is nearing completion. The RIB is going Node-Red.

Warren, KD4Z

On 8/3/2021 12:17 AM, Charlie Rubenstein wrote:
I wonder if there is an API for sending data to the Maestro.....would really like to send PA output power and SWR to its screen.
73 de Charlie KB8CR


 

Yes, if you connect to the radio as the PG XL client and format the data correctly then technically you can get amp info to show in SmartSDR.

Good one Warren!

Dave wo2x

On Aug 3, 2021, at 6:32 AM, Warren Merkel <hullspeed21@...> wrote:

?There is no direct API for sending data to the Maestro - exactly. It has to be accomplished via another path - via the Radio server itself. I have this in my work-in-progress list and is only in "proof-of-concept" status.

It is part of another interesting application, when finished, will allow a KPA500/KPA1500 to partially emulate a PGXL for display purposes.

That project has been stalled lately, as I'm busy finalizing another larger and exciting, Ham radio / Node-Red team project which is nearing completion. The RIB is going Node-Red.

Warren, KD4Z

On 8/3/2021 12:17 AM, Charlie Rubenstein wrote:
I wonder if there is an API for sending data to the Maestro.....would really like to send PA output power and SWR to its screen.
73 de Charlie KB8CR





 

Warren:

That would be TOO cool. Having the KPA500 show up on the Maestro or SSDR would be awesome.

Charlie KB8CR


 

Alan:

THANKS for the color-coded SWR text flow !? Works perfectly.?

I'm playing around with a real simplified Dash window that just shows output power and swr for when I just want to see those things alone.
I have a Operate/Standby toggle on the Amp flow now. I can either click on the word "OPERATE" or "STANDBY" to toggle to the other, or click on the LED Dot.

How do you change the text BACKGROUND color?? Or, is that done with a "button" node?

73 de Charlie KB8CR


 

Warren:

Did you ever get anywhere with fooling the radio and Maestro to display metering from a KPA500 as a PGXL?

Charlie KB8CR


 

Hey Charlie,

That project is stalled unfortunately for the?time being.? Actually, I'm still needing data from Wireshark to connect the dots.? I had someone lined up to borrow a PGXL for a while, but that didn't?happen yet.? It's still on my?to do list however...

I do have the Operate/Standby working. In the attached pics, you can see the AMP icon and tab is enabled....waiting for data :)

Warren

On Fri, Nov 26, 2021, 11:54 AM Charlie Rubenstein <charlier@...> wrote:
Warren:

Did you ever get anywhere with fooling the radio and Maestro to display metering from a KPA500 as a PGXL?

Charlie KB8CR


 

开云体育

Hi Warren

Contact me direct. I have the commands for the PGXL and can WireShark what you need.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Nov 26, 2021, at 12:39 PM, Warren Merkel <hullspeed21@...> wrote:

?
Hey Charlie,

That project is stalled unfortunately for the?time being.? Actually, I'm still needing data from Wireshark to connect the dots.? I had someone lined up to borrow a PGXL for a while, but that didn't?happen yet.? It's still on my?to do list however...

I do have the Operate/Standby working. In the attached pics, you can see the AMP icon and tab is enabled....waiting for data :)

Warren

On Fri, Nov 26, 2021, 11:54 AM Charlie Rubenstein <charlier@...> wrote:
Warren:

Did you ever get anywhere with fooling the radio and Maestro to display metering from a KPA500 as a PGXL?

Charlie KB8CR


 
Edited

You can send meter data to the radio. I had a "working prototype" at one point. You just have to tell the radio the meter parameters (in the create meter command) and then encode the vita49 datagrams. There's some stub code to encode in the vita49-js part of the node-red-contrib-flexradio code. Not having a use case... or PGXL-like data to look at, I left it there for the unknown future.

I'd be interested in a PGXL wireshark dump... if you are willing to share!

Stephen


 
Edited

Stephen

I did a WireShark with the PG-XL as the source and the Power SDR as the destination.

There were no packets from the PG-XL to the Flex Server.

Text file is attached. ?

Not sure what you are looking for. ?If you need different info/commands, we can do a screen share and get what you need.

Alan


 

Alan,

Thank you!

Nothing between the radio and the PG-XL. That's strange.

Stephen


 

开云体育

Unless he uses a managed Ethernet switch with a port programmed to monitor, he will not capture radio to amp traffic.


Dave wo2x

?

?

From: [email protected] <[email protected]> On Behalf Of Stephen Houser, N1SH
Sent: Monday, November 29, 2021 8:47 PM
To: [email protected]
Subject: Re: [nodered-hamradio] Changing font color by value of msg.payload

?

Alan,

Thank you!

Nothing between the radio and the PG-XL. That's strange.

Stephen


 

Thanks, Warren !! At least that's SOME progress......This would be the "Holy Grail" of KPA500/1500 control for the Flex.
Hope what Alan and Dave can contribute can help it move along.?

73 de Charlie KB8CR