¿ªÔÆÌåÓý

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

Re: NodeRed on Windows 10

 

Charlie

Lots of methods to build a string, but, staying with the "Change Node" to build a string with text added to the msg.payload, use the Jasonata code method:




Here is the JSON for above:

===========

[{"id":"e9ea804.bae69","type":"change","z":"a45b533d.45c3b8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload & \"added text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":760,"wires":[["c65e9a7.5717768"]]}]


Re: NodeRed on Windows 10

 

¿ªÔÆÌåÓý

Use a function node

msg.payload = ¡°ZZGT¡± + msg.payload + ¡°;¡±;
return msg;

The above starting at msg.payload thru the ¡°;¡±; is all on line 1 and return msg; is on line 2

If the number from prior node is 56 you will have output ZZGT56;;

Dave wo2x


Sent from my waxed string and tin cans.?

On Feb 25, 2021, at 6:26 PM, Charlie Rubenstein <charlier@...> wrote:

?Alan:

Yea....I was just playing with it, but it isn't worth all this.....runs fine on my Pi's. ha ha.

I do have a quick question, if that's ok..... I'm trying to insert the output of one node (which outputs a number) into the middle of another string.
I tried using a change node, and SET the msg.payload as xxxOUTPUTOFTHEPRIORNODExxx

I've tried putting {{msg.payload}}, {msg.payload}, (msg.payload) and some other attempts to insert it, but none work.....I just don't know what syntax to use.

<dummyfile.0.part>


The ZZGT is the command to change the AGC on the rig, and the trailing ; is the command end.? The prior node outputs a number. I'm trying to use the drop-down list to change AGC, and it outputs that number fine (using debug) but I don't know how to name it in the change node.

Charlie


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

Charlie

Here is an example of a flow, using the "gate" node, triggered on TX>closed, and RX>open. ?Also, I have circled where you can get help on any node you select on the editor. ?Also, below is the JSON code for the example gate flow.

Alan




================================

[{"id":"c5e41188.2b1d","type":"inject","z":"a45b533d.45c3b8","name":"TX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"TX","payloadType":"str","x":250,"y":180,"wires":[["205f5e26.87f082"]]},{"id":"314ffca0.fe1414","type":"inject","z":"a45b533d.45c3b8","name":"RX","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"RX","payloadType":"str","x":250,"y":260,"wires":[["205f5e26.87f082"]]},{"id":"ed8eba93.895ed8","type":"gate","z":"a45b533d.45c3b8","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"x":890,"y":420,"wires":[["153eda49.526e76"]]},{"id":"205f5e26.87f082","type":"switch","z":"a45b533d.45c3b8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"TX","vt":"str"},{"t":"eq","v":"RX","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":220,"wires":[["78589c51.e3700c"],["d80099de.31fdf8"]]},{"id":"d80099de.31fdf8","type":"change","z":"a45b533d.45c3b8","name":"TX","rules":[{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":260,"wires":[["ed8eba93.895ed8"]]},{"id":"78589c51.e3700c","type":"change","z":"a45b533d.45c3b8","name":"TX","rules":[{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":180,"wires":[["ed8eba93.895ed8"]]},{"id":"6b603fad.a821d8","type":"comment","z":"a45b533d.45c3b8","name":"Gate Control","info":"","x":480,"y":120,"wires":[]},{"id":"153eda49.526e76","type":"debug","z":"a45b533d.45c3b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1120,"y":320,"wires":[]},{"id":"3ebf3d6b.1d2372","type":"inject","z":"a45b533d.45c3b8","name":"Simulated Frequncy","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"7.074","payloadType":"num","x":310,"y":420,"wires":[["ed8eba93.895ed8"]]},{"id":"74f2248e.1972d4","type":"comment","z":"a45b533d.45c3b8","name":"Gate Input","info":"","x":490,"y":360,"wires":[]}]


Re: NodeRed on Windows 10

 

Alan:

Yea....I was just playing with it, but it isn't worth all this.....runs fine on my Pi's. ha ha.

I do have a quick question, if that's ok..... I'm trying to insert the output of one node (which outputs a number) into the middle of another string.
I tried using a change node, and SET the msg.payload as xxxOUTPUTOFTHEPRIORNODExxx

I've tried putting {{msg.payload}}, {msg.payload}, (msg.payload) and some other attempts to insert it, but none work.....I just don't know what syntax to use.



The ZZGT is the command to change the AGC on the rig, and the trailing ; is the command end.? The prior node outputs a number. I'm trying to use the drop-down list to change AGC, and it outputs that number fine (using debug) but I don't know how to name it in the change node.

Charlie


Re: NodeRed on Windows 10

 

And, configured each of the dashboard nodes, using the dashboard tool, unto a Dashboard Tab/group?

Alan

On Thu, Feb 25, 2021 at 6:00 PM Alan Blind, WA9WUD via <a.alan.blind=[email protected]> wrote:
Charlie

Sorry if you have done so, but with all, you have checked and I am out of ideas, I need to ask.? Have you loaded the Dashboard Pallett's?into your Window Node-Red install?

Alan

On Thu, Feb 25, 2021 at 5:30 PM Charlie Rubenstein <charlier@...> wrote:
Tried it on a different computer.....same result.

Charlie


Re: NodeRed on Windows 10

 

Charlie

Sorry if you have done so, but with all, you have checked and I am out of ideas, I need to ask.? Have you loaded the Dashboard Pallett's?into your Window Node-Red install?

Alan

On Thu, Feb 25, 2021 at 5:30 PM Charlie Rubenstein <charlier@...> wrote:
Tried it on a different computer.....same result.

Charlie


Moderated Re: Trying to read things from Flex 3000 using CAT commands

 

Dave:

While I have the meters in for the 6400's flow zeroing fine, the same isn't the case for the 3000.

I can't figure out the GATE node....Can't find any examples that don't just show the pasted "code" which I don't know how to look thru.

I tried using a Function node and write a if/else statement (unsuccessfully....hi hi) using the TX/RX status that I have from the 3000. I even tried making a global.RXTX that I could use....no joy.

I think part of the problem, is that for the FWD PWR and SWR meters, the serial data is not sent at all until it's in transmit. As such, the meters just show the last data it DID get, while it was in transmit. I tried configuring the switch node that uses regex looking for ZZRM5 (which is returned with FWD PWR) or ZZRM8 for SWR, and then add an OTHERWISE option, connecting that to a Change node to set the payload to "0". When I tried that it would pulse up and down....???

Any links to how to use the gate node?

Charlie


Re: NodeRed on Windows 10

 

Tried it on a different computer.....same result.

Charlie


Re: NodeRed on Windows 10

 

Also, if clearing the browser's Cache does not allow you to see the Dashboard, can your try another browser? ?Or, even a different computer?

Alan


Re: NodeRed on Windows 10

 

Charlie

Clear the browser's Cache.? Sometimes it does not get updated correctly from Node-Red.

Alan

On Thu, Feb 25, 2021 at 4:43 PM Charlie Rubenstein <charlier@...> wrote:
Alan:

I was just testing it with a simple flow unrelated to the Flex.? When I go to? 192.168.1.xxx:1880/ui , the browser just shows a blank page.
Yes the node red cmd window is still open. It can't be the browser, as it works fine accessing my RPi node red machine.

Have no idea what could be awry.

Charlie


Re: NodeRed on Windows 10

 

Alan:

I was just testing it with a simple flow unrelated to the Flex.? When I go to? 192.168.1.xxx:1880/ui , the browser just shows a blank page.
Yes the node red cmd window is still open. It can't be the browser, as it works fine accessing my RPi node red machine.

Have no idea what could be awry.

Charlie


Re: Alexa Node-Red interface

Dave
 

¿ªÔÆÌåÓý

Thanks Alan

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Alan Blind, WA9WUD
Sent: Thursday, February 25, 2021 12:09 PM
To: [email protected]
Subject: Re: [nodered-hamradio] Alexa Node-Red interface

?

Hi Dave

I need to be careful my iPhone does not see me responding. ? Anyway, here is a UTube video that may assist you.



Alan
WA9WUD


Re: Alexa Node-Red interface

 

Hi Dave

I need to be careful my iPhone does not see me responding. ? Anyway, here is a UTube video that may assist you.



Alan
WA9WUD


Alexa Node-Red interface

Dave
 

Does anyone have experience with using Alexa to control a node red flow??
Thanks in advance for your input,
Dave - k9uk


Re: NodeRed on Windows 10

 

Charlie

Perhaps Node-Red is not running when you try to see it on the browser.

On Windows Node-Red you must keep the CMD window open after giving Node-Red the start command "node-red".? If you close the CMD window, Node-Red stops running.

Also, for Windows FRStack, there is an extra "/api" in the URL.? If you want to command your Windows FRstack from Windows Node-Red, use the following?in the "Set Parameters?Here" node:


Alan
WA9WUD


On Thu, Feb 25, 2021 at 12:58 AM Charlie Rubenstein <charlier@...> wrote:
I turned the firewall OFF and it still does not display the dashboard.
I uninstalled and reinstalled Node Red and same result.


Charlie


Re: NodeRed on Windows 10

 

I turned the firewall OFF and it still does not display the dashboard.
I uninstalled and reinstalled Node Red and same result.


Charlie


Re: NodeRed on Windows 10

 

Try a different browser.

73, Marty WD9GYM?




On Wednesday, February 24, 2021, 8:36 PM, Leslie Hooe <hooeld@...> wrote:

Turn OFFwindows Firewall and test. That will tell you if it is the firewall.

Turn back on after the test.

On Wed, Feb 24, 2021 at 5:57 PM Charlie Rubenstein <charlier@...> wrote:
It does it even with localhost:1880/ui
I went to "allow a program to pass the firewall" and node js is checked

Charlie


Re: NodeRed on Windows 10

 

Turn OFFwindows Firewall and test. That will tell you if it is the firewall.

Turn back on after the test.

On Wed, Feb 24, 2021 at 5:57 PM Charlie Rubenstein <charlier@...> wrote:
It does it even with localhost:1880/ui
I went to "allow a program to pass the firewall" and node js is checked

Charlie


Re: File /Flex3000Flow.rtf uploaded #file-notice

 
Edited

I installed the Vita49 and Flex v6 flows.....it's not the TX meters.......it's only the S-Meter that goes full scale on disconnect for the 6400

I modified the function node you had in there to set the meter to -140dBm if no client. It worked.

Charlie


Re: NodeRed on Windows 10

 
Edited

It doesn't display the dashboard even with localhost:1880/ui
I went to "allow a program to pass the firewall" and node js is checked
so I don't know what else could be blocking it.


Charlie