Re: How to add leading zeros to a number
Understand, I think.... The string node, pad method will keep the number of characters the same and adjust with the "fill character" to adjust the empty space. Here are two examples, 50, and 14074. In
By
Alan Blind, WA9WUD
·
#1844
·
|
Re: How to add leading zeros to a number
Alan The issue is he may need 0, 1, or two leading zeroes thus the if else statement is probably best solution. 73 Dave Sent from my waxed string and tin cans.
By
Dave wo2x
·
#1843
·
|
Re: How to add leading zeros to a number
Charlie Look at the "String" Node, "PadLeft" Method. ?You can specify the number of characters and what to use to "fill" the empty space. ?Here is an example with six digits, fill left with "0".
By
Alan Blind, WA9WUD
·
#1842
·
|
Re: How to add leading zeros to a number
Try this Only need <= and not <== Heading out to dinner for my birthday. 73 Dave wo2x Sent: Sunday, February 28, 2021 4:44 PM To: [email protected] Subject: Re: [nodered-hamradio] How to add
By
Dave wo2x
·
#1841
·
|
Re: How to add leading zeros to a number
It didn't like that......
By
Charlie Rubenstein
·
#1840
·
|
Re: How to add leading zeros to a number
Function node If (msg.payload <== 9) { msg.payload = ¡°00¡± + msg.payload; } else if (msg.payload <== 99) { Msg.payload = ¡°0¡± + msg.payload; } Return msg; If the number is between 0 and 9 it
By
Dave wo2x
·
#1839
·
|
How to add leading zeros to a number
I have made some great progress today with the Flex3000 flow. I solved the problem of the built-in TCP server in PowerSDR not accepting multiple connections, with a program I found called Com by TCP.
By
Charlie Rubenstein
·
#1838
·
|
Re: Newbie Programming Question
Hey, Neighbor.... tnx Mike / W5JR Alpharetta GA
By
Mike/W5JR <w5jr.lists@...>
·
#1837
·
|
Moderated
Re: Trying to read things from Flex 3000 using CAT commands
Maybe an email to ke9ns and ask him? 73 Dave wo2x
By
Dave wo2x
·
#1836
·
|
Moderated
Re: Trying to read things from Flex 3000 using CAT commands
It's currently going thru a TCP port to a "TCP CAT Server" in PowerSDR. I don't know how I can adjust it's baud rate. Charlie KB8CR
By
Charlie Rubenstein
·
#1835
·
|
Moderated
Re: Trying to read things from Flex 3000 using CAT commands
You could use a USB crossover cable to go from the Pi to PC. Then use a serial request Node on the Pi and in PowerSDR you choose the com port the cable creates. Another thing to check, can you
By
Dave wo2x
·
#1834
·
|
Re: Newbie Programming Question
Hi Steve Welcome aboard! The people on here have done a lot of great things with Node Red. It is an easy was to integrate software, hardware, and Internet services together! (That is from the Node Red
By
Dave wo2x
·
#1833
·
|
Moderated
Re: Trying to read things from Flex 3000 using CAT commands
I uploaded v.0.2 of the Flex 3000 flow. I finally (after a couple of ridiculously late nights) get most of the bugs out. What I can't do still is to send commands to the radio through the same TCP
By
Charlie Rubenstein
·
#1832
·
|
Re: Newbie Programming Question
Thanks Alan. -- Steve - K5FR
By
Steve, K5FR
·
#1831
·
|
Re: Newbie Programming Question
The Node-Red website has excellent education/reference documentation. https://nodered.org/docs/ Alan WA9WUD
By
Alan Blind, WA9WUD
·
#1830
·
|
Newbie Programming Question
While I've done a lot of Windows programming I'm new to Node-Red and its programming languages specifically Node.js and JSON. However, I do have some background with Java Script. I would appreciate
By
Steve, K5FR
·
#1829
·
|
File //KB8CR's Flows/Flex3000v02.json updated
#file-notice
The following files have been updated in the Files area of the [email protected] group. * //KB8CR's Flows/Flex3000v02.json ( /g/nodered-hamradio/files//KB8CR's
By
[email protected] Notification <noreply@...>
·
#1828
·
|
File /Webswitch Remoterig 1216H.json uploaded
#file-notice
The following files have been uploaded to the Files area of the [email protected] group. * /Webswitch Remoterig 1216H.json ( /g/nodered-hamradio/files/Webswitch Remoterig
By
[email protected] Notification <noreply@...>
·
#1827
·
|
Re: File /Flex3000Flow.rtf uploaded
#file-notice
Dave: OK, I already had changed the IP for the radio in the FlexRadio flow, but I hadn't put the IP in the ping node. Now it is returning FALSE, so that function node I made works again.? Now I know
By
Charlie Rubenstein
·
#1826
·
|
Re: File /Flex3000Flow.rtf uploaded
#file-notice
Make sure you use both my VITA49 and FlexRadio v6 flows. They are in a single zip file. Read the comment nodes in both. You need to set the IP to the radio IP in the TCP FlexRadio flow and the ping
By
Dave wo2x
·
#1825
·
|