¿ªÔÆÌåÓý

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

Re: File /!1! Flows by Type/RADIOS/HRD_ve9gfi_2022.06.08.2130.json updated #file-notice

 
Edited

Hi Adrian,

?

I created two dynamic dropdown lists, and each one works.

Then I added a Switch node to select what list should be used, based on the getradio response.? ? I'm stuck ... but I wanted to share that this will work for your radio and mine, automatically, if I can get the Switch node to cooperate.

I tried using both the msg.payload output from MQTT and the flow.getradio variables... same response (not working).

It's Saturday here, and I need to run the roads ...? If you see my error, please let me know.

?

EDIT>>>? The one thing that comes to mind is that perhaps the getradio and mqtt string is UTF16 and is not matching my typed in string.

Greg VE9GFI

?







Re: Permissions question...

 

Dave

Perhaps the file is in a directory that requires administrative privileges??

I suggest two ideas.

1- Move the file to different locations, like the documents directory.
2- prepend a "sudo" to your Node-Red read file command, with a password. ?The command will look like this: ? "sudo -S <<< "password"?



Alan. WA9WUD


Re: Permissions question...

 

Dave can? you run the following command and print the output:

ls -l /home/dcole/scripts/solar_data/incoming/lotwcount.txt
--
Mick, W8BE


Permissions question...

 

Hi,

I am trying to read a file under Ubuntu... The file is under my home directory, as shown in the screen capture...

I am using readfile, and all permissions are set to read/write for everyone on system, for the target file.

I know this is some sort of permissions issue, but I don't know what it is... Any suggestions?


--
73, and thanks,
Dave (NK7Z)

ARRL Volunteer Examiner
ARRL Technical Specialist, RFI
ARRL Asst. Director, NW Division, Technical Resources


Re: Power Master 2 watt meter flow

 

¿ªÔÆÌåÓý

You can set a jumper in the meter or use a Y cable and connect two sensors parallel. The sensor with highest reading will show output.?

This is fine for amp output in SO2R but will not show input and output of amp at same time.

I set the jumper in the PM 2 meter which parallels the two sensors. Works fine.

Dave wo2x


On Jun 10, 2022, at 9:45 PM, AH0U <bruce@...> wrote:

?Can it show these for both inputs to the PowerMaster or just one??

Non praeses meus

Those who would give up essential liberty, to purchase a little temporary safety,
deserve neither liberty nor safety. Benjamin Franklin (1706-1790



On Jun 10, 2022, at 18:02, David De Coons wo2x <RocketNJ@...> wrote:

?

Hi All,

?

Making progress with Power Master II watt meter flow. I¡¯ve got metering working as well as alarm indication for high SWR and High Forward Power. These can be set in meter to auto reset or be latching. The alarms light up LEDs in the dashboard and can be reset via a Clear Alarms button.

Trying to think of anything else (control wise) to add to the meter.

?

73

Dave wo2x

?

image001.png


Re: Power Master 2 watt meter flow

AH0U
 

¿ªÔÆÌåÓý

Can it show these for both inputs to the PowerMaster or just one??

Non praeses meus

Those who would give up essential liberty, to purchase a little temporary safety,
deserve neither liberty nor safety. Benjamin Franklin (1706-1790



On Jun 10, 2022, at 18:02, David De Coons wo2x <RocketNJ@...> wrote:

?

Hi All,

?

Making progress with Power Master II watt meter flow. I¡¯ve got metering working as well as alarm indication for high SWR and High Forward Power. These can be set in meter to auto reset or be latching. The alarms light up LEDs in the dashboard and can be reset via a Clear Alarms button.

Trying to think of anything else (control wise) to add to the meter.

?

73

Dave wo2x

?

image001.png


Power Master 2 watt meter flow

 

¿ªÔÆÌåÓý

Hi All,

?

Making progress with Power Master II watt meter flow. I¡¯ve got metering working as well as alarm indication for high SWR and High Forward Power. These can be set in meter to auto reset or be latching. The alarms light up LEDs in the dashboard and can be reset via a Clear Alarms button.

Trying to think of anything else (control wise) to add to the meter.

?

73

Dave wo2x

?


Programming help needed - CRC8 calculations

 

¿ªÔÆÌåÓý

Hello all,

?

Working on a flow for the Array Solutions Power Master II watt meter.

?

I have most of it working except a couple of commands where I cannot determine the CRC checksum. I am NOT a programmer so therefore I have met my match and hoping some of the brain power in the group may have an answer.

?

The meter wants an STX + command + ETX + CRC + <CR>

?

I am attaching below the information I received from Array Solutions on how to calculate the CRC. According to their info the CRC is based solely on the payload and not the STX or ETX (hex 0x02 and 0x03). I would like this to be able to be put into a function node to calculate a msg.crc based upon payload.

?

If a payload of v? is sent the CRC is 0x42 0x42 hex or BB ascii.

?

The below info has the CRC table they use. So looking for someone with programming that can come up with a function to determine CRC for a payload.

?

73

Dave wo2x

?

?

?

?

PowerMaster VSWR Meter serial protocol

10-17-06

?

There are 3 baud rates selectable from the meter menu. The default is 38,400, no parity, 1 stop bit.

?

The first character of a packet is an STX ($02). This is followed by the packet payload. The payload is followed by an ETX ($03). An 8 bit CRC is appended after the ETX. The CRC covers the packet payload, not the STX or ETX. Finally a <cr> ($0D) is appended. Line feeds ($10) may be added, they are stripped by the receive protocol.

?

Here is an example of the packet CRC testing:

?

byte

CRC_Check(void)

{

byte *ptr, b_udata, b_crc;

?

ptr = c_UserInBuf + 1;? /* skip STX */

b_CRC8 = 0;

while((b_udata = *ptr++) != '\0')? /* end of string safety limit */

????? {

????? if(b_udata == ETX)

??????????? {

??????????? b_crc = MakeHex(*ptr++) * 16;

??????????? b_crc += MakeHex(*ptr);

??????????? b_CRC8 = ~b_CRC8;???????????? /* CRC sent complimented */

??????????? if(b_crc == b_CRC8)

????????????????? return(0);

??????????? else

????????????????? return(1);

??????????? }

????? else

??????????? CRC8char(b_udata);

????? }

return(2);? /* missing ETX */

}

?

void

CRC8char(byte d)

{

b_CRC8 = crc8revtab[b_CRC8 ^ d]; /*crc must be complimented elsewhere*/

}

?

?

?

A lookup table is used to calculate the CRC for speed.
const unsigned char crc8revtab[256] ={

?

??????????????????????? 0x00, 0xB1, 0xD3, 0x62, 0x17, 0xA6, 0xC4, 0x75,

??????????????????????? 0x2E, 0x9F, 0xFD, 0x4C, 0x39, 0x88, 0xEA, 0x5B,

?????????????????? ?????0x5C, 0xED, 0x8F, 0x3E, 0x4B, 0xFA, 0x98, 0x29,

??????????????????????? 0x72, 0xC3, 0xA1, 0x10, 0x65, 0xD4, 0xB6, 0x07,

??????????????????????? 0xB8, 0x09, 0x6B, 0xDA, 0xAF, 0x1E, 0x7C, 0xCD,

??????????????????????? 0x96, 0x27, 0x45, 0xF4, 0x81, 0x30, 0x52, 0xE3,

??????????????????????? 0xE4, 0x55, 0x37, 0x86, 0xF3, 0x42, 0x20, 0x91,

??????????????????????? 0xCA, 0x7B, 0x19, 0xA8, 0xDD, 0x6C, 0x0E, 0xBF,

??????????????????????? 0xC1, 0x70, 0x12, 0xA3, 0xD6, 0x67, 0x05, 0xB4,

??????????????????????? 0xEF, 0x5E, 0x3C, 0x8D, 0xF8, 0x49, 0x2B, 0x9A,

??????????????????????? 0x9D, 0x2C, 0x4E, 0xFF, 0x8A, 0x3B, 0x59, 0xE8,

??????????????????????? 0xB3, 0x02, 0x60, 0xD1, 0xA4, 0x15, 0x77, 0xC6,

??????????????????????? 0x79, 0xC8, 0xAA, 0x1B, 0x6E, 0xDF, 0xBD, 0x0C,

??????????????????????? 0x57, 0xE6, 0x84, 0x35, 0x40, 0xF1, 0x93, 0x22,

??????????????????????? 0x25, 0x94, 0xF6, 0x47, 0x32, 0x83, 0xE1, 0x50,

??????????????????????? 0x0B, 0xBA, 0xD8, 0x69, 0x1C, 0xAD, 0xCF, 0x7E,

??????????????????????? 0x33, 0x82, 0xE0, 0x51, 0x24, 0x95, 0xF7, 0x46,

??????????????????????? 0x1D, 0xAC, 0xCE, 0x7F, 0x0A, 0xBB, 0xD9, 0x68,

??????????????????????? 0x6F, 0xDE, 0xBC, 0x0D, 0x78, 0xC9, 0xAB, 0x1A,

??????????????????????? 0x41, 0xF0, 0x92, 0x23, 0x56, 0xE7, 0x85, 0x34,

??????????????????????? 0x8B, 0x3A, 0x58, 0xE9, 0x9C, 0x2D, 0x4F, 0xFE,

??????????????????????? 0xA5, 0x14, 0x76, 0xC7, 0xB2, 0x03, 0x61, 0xD0,

??????????????????????? 0xD7, 0x66, 0x04, 0xB5, 0xC0, 0x71, 0x13, 0xA2,

??????????????????????? 0xF9, 0x48, 0x2A, 0x9B, 0xEE, 0x5F, 0x3D, 0x8C,

??????????????????????? 0xF2, 0x43, 0x21, 0x90, 0xE5, 0x54, 0x36, 0x87,

??????????????????????? 0xDC, 0x6D, 0x0F, 0xBE, 0xCB, 0x7A, 0x18, 0xA9,

??????????????????????? 0xAE, 0x1F, 0x7D, 0xCC, 0xB9, 0x08, 0x6A, 0xDB,

??????????????????????? 0x80, 0x31, 0x53, 0xE2, 0x97, 0x26, 0x44, 0xF5,

??????????????????????? 0x4A, 0xFB, 0x99, 0x28, 0x5D, 0xEC, 0x8E, 0x3F,

??????????????????????? 0x64, 0xD5, 0xB7, 0x06, 0x73, 0xC2, 0xA0, 0x11,

??????????????????????? 0x16, 0xA7, 0xC5, 0x74, 0x01, 0xB0, 0xD2, 0x63,

??????????????????????? 0x38, 0x89, 0xEB, 0x5A, 0x2F, 0x9E, 0xFC, 0x4D

};

?


Re: Stream Deck and Node Red

 

Hey David?
I have been following your stream on integrating Stream deck into Node Red.
I have managed to get my Icom IC-7300 to display the frequency on the display dashboard using the CIV get freq that works fine.
So now i have that working i was experimenting getting to display it on a button like yours.
I was looking at your Youtube video and one of the stream deck buttons second row 4th from the left displays the freq.
Im assuming that is a flex radio thing?
I couldn't see in the flow chart how you brought in the freq display to the stream deck.
Do you have any screen grabs or tips how I can replicate that now that im getting the freq to display on the web UI.
Im hoping i can share my progress on making some IC-7300 available to the group
Cheers Glenn
VK2HTV??


Basics of Node Red Presentation - Arizona Outlaws Contest Club

 

I gave a presentation to the Arizona Outlaws Contest Club last night, mainly about my contesting dashboard, but they wanted to know more about the basics of Node Red.? I put together about 3 presentations for them and this is what came out of it. I spent a good 45 mins brain dump of Node Red and basic configurations on how to get started.



At the end we talk about the contest dashboard, but I think the first part will help some of the new people get started with Node Red if you haven't already.

Kyle
AA0Z


Re: TGXL and Streamdeck

 

¿ªÔÆÌåÓý

Hi Joe

I do not have a 1x3 TG to test with.?

Email me direct and we can try to work on it remotely.?

I will do some research on my end in the meantime.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Jun 10, 2022, at 10:17 AM, Joe W. <jwussler@...> wrote:

?Good morning all,

I can't find the api call list for the TGXL. What is the API command to switch antenna ports?

Thanks,

Joe
WA?O


TGXL and Streamdeck

 

Good morning all,

I can't find the api call list for the TGXL. What is the API command to switch antenna ports?

Thanks,

Joe
WA?O


Re: Getting started with Node Red

 

Wow - Thank you Alan that payload.id worked in seconds - such an easy fix
It fixed up all my hours of attempts at failed patches.
Thanks?
- and Ron yes I could get an online weather service ( actually my sensors feed into those online services ) but as a true Ham I wanted to extract the radio version direct from my sensors. More of a learning first project for myself to tackle bigger Ham projects, I thought start simple with the temperature extraction. I actually might extract it and do a side by side comparison on the side of my display to see how far my sensors are from the online data.

I was struggling because Now I know those sensors have a lot of data and i wrote a function script to test the extraction of the data that worked but i couldn't extract the numbers. Thanks again Alan I wouldn't have ever gone down that payload.id path.

Now that I have that as my first dip my toe in the water experiment.
The next project is integrating an elgato stream deck and an Icom IC-7300. Alan I think it was your video i was looking at that has integration for the Flex radio
I noticed there was an Icom CIV and i thing a 7100 control so i might give those a go and see if I can adapt that to the 7300

This is the script i did in the function to extract the temp/humid/etc
(var o = msg.payload
msg.payload = o.temperature_C;
return msg;)


Re: Background color problem

 

Dave:
The version I am running is 2.2.2 and the node-red-dashboard is 3.1.7. Does that help diagnose where the problem lies?
Tnx de Arnie W8DU


Re: Power Master II wattmeter flow

 

Hi Dave,

I have the original Power Master wattmeter. Will your new NR flow work for
it? It will be interesting to try to see if it does.

73,

Kirk, K6KAR

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of
David De Coons wo2x
Sent: Thursday, June 9, 2022 4:34 PM
To: [email protected] Group Moderators <[email protected]>
Subject: [nodered-hamradio] Power Master II wattmeter flow

Hi all

Forgot I ordered an Array Solutions Power Master II wattmeter 5 months ago
(they were back ordered). It arrives today and I started writing a flow for
Node Red. Should have it completed by tomorrow. Works well in Node Red.

73
Dave wo2x

Sent from my waxed string and tin cans.


Elecraft K4D flow

 

Hi all

I started writing a basic Node Red flow for the K4D. Looking for ideas on what features to add.

73
Dave wo2x

Sent from my waxed string and tin cans.


Power Master II wattmeter flow

 

Hi all

Forgot I ordered an Array Solutions Power Master II wattmeter 5 months ago (they were back ordered). It arrives today and I started writing a flow for Node Red. Should have it completed by tomorrow. Works well in Node Red.

73
Dave wo2x

Sent from my waxed string and tin cans.


Re: Getting started with Node Red

 

Glenn,

I don't have an answer to your question as I have not looked at the flow.?

I am going to offer a different solution that you can feel free to ignore. I elected to get my WX data from an online service and use Node Red to display the data on my dashboard. It eliminates the need for local sensors and, in my case, since I'm sheltered, wind data would be very inaccurate.

You can check out the data for Sydney at the link below.



Use requires registering to get an API key (no cost). This would also allow you to pull data from different locations which might be useful based on your QRZ page. If you'd like, I'll share the flow.

73, Ron WB2WGH?
PS: never flew rotary wing but for many years I flew gliders and single engine (both ends of the rope). Instructed in gliders and towed in the single engine.

On Thu, Jun 9, 2022, 11:39 AM <vk2htv@...> wrote:
Hey there?
Great group here
I am taking the advice and starting small before i get onto bigger things
So i have started with taking the weather data from an sdr dongle
I can get it to display no problem but it mixes the values
i have been trying to use RTL-433 as the inject to display weather on my shack display.
The problem i have is the temperature value coming from the SDR is mixing multiple sensors.
So the same display rotates the different temps from the different sensors .
the sensors have different channels and different ID's. if i try and block the ID it seems to block everything
one sensor is?id:?339746605 the other id:?-2139593976
i thought the obvious way would be to block the alternate ID
maybe its too late in the night but i just cant seem to divert one sensor?
i have attached the map?
any tips would be good
I have been trying everything but my json knowledge is poor.
I tried functions/gates/seperate switches/filters but cant think of the correct way to do it?
Glenn VK2HTV

Gl


Re: Getting started with Node Red

 

Also, and to correct my first response. ?I just noticed the id text were blue in the debug window. ?This means they are a "number" variable type. ?If they were red text, they would be a variable type of "string".

In the switch node, you must specify the type of variable you are using. ?Here is a corrected screenshot using a variable type of "number". ?My first response showed a variable type of "string".

Alan


Re: Getting started with Node Red

 

Glenn

An easy method is to use the "Switch" node.

I see the the "id" comes thru as "msg.payload.id". ? FYI, if you expand the JSON by clicking the small arrow next to the object in the debug window, you can see a more straightforward path to the desired variable. ?Click on the "copy path" to move that into the switch node, "Property" box.

The switch node can use "msg.payload.id" property, to only allow the full object to flow, only if the value meets the value set in the selection. ?Here is an example using your data. ?Each sensor's variable will flow to the respective output of the switch as msg.payload, or whatever you have set up in the source nodes.

Alan. WA9WUD