¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: Parsing a string
Hi Mick, Close ? Your msg6 if/else has true & true.(typo) Here¡¯s the cleaned up, cleaned up version. 73 Dave wo2x var output = msg.payload.split(""); msg.out0 = parseInt(output[0]); msg.out1 =
By Dave wo2x · #1440 ·
Re: Parsing a string
All, Last update.? ?I changed the topic to relay...? Inject of 101010 Give you: Here is the final function: var output = msg.payload.split(""); msg.out0 = parseInt(output[0]); msg.out1 =
By Mick , W8BE · #1439 ·
Re: Parsing a string
Mike I like the method Dave used in his DLI Relay Flow. ?The response is an eight-digit number, with 0 or 1 in each digit, depending on the relay status. ? Dave has a function to do a "logical and"
By Alan Blind, WA9WUD · #1438 ·
Re: Parsing a string
Here you go...I cleaned it up...? edit...apparently not enough....try this...I used an inject of 10101010 var output = msg.payload.split(""); msg.out0 = parseInt(output[0]); msg.out1 =
Re: Parsing a string
BTW, this can all be done in one function node using Mick¡¯s example then looking for each msg.out to either be 0 or 1 and setting msg.out to false or true. (if/else) More than one way to get to the
By Dave wo2x · #1436 ·
Re: Parsing a string
Mick has an extra msg.out. Only need 0 ¨C 7. Here¡¯s a flow using split/switch/function to give false (0) or true (1) for each bit. First bit is top function node and last bit is bottom. Then feed
By Dave wo2x · #1435 ·
Re: Parsing a string
Here is a function to split the input and output a msg for each bit. I used a string of 10000000 as the inject [image: image.png] The output gives you the msg.payload and msg.topic [image: image.png]
By Mick , W8BE · #1434 ·
Re: Parsing a string
Dave, Neal I'm close, but if I follow web instructions, I am having an issue turning that into a true or false. I'm getting 'undefined' on the exit of the switch node. Mike [image: image.png] wrote:
By Michael Walker · #1433 ·
Re: Parsing a string
Neal beat me to it. Split/Switch is the way to go. Easy. 73 Dave wo2x Sent: Friday, January 29, 2021 1:38 PM To: [email protected] Subject: Re: [nodered-hamradio] Parsing a string Another way
By Dave wo2x · #1432 ·
Re: Parsing a string
Perfect! You should see the mess I just glued together! :)
By Michael Walker · #1431 ·
Re: Parsing a string
Another way to split the outputs; https://discourse.nodered.org/t/split-to-different-outputs/5773 wrote:
By Neal AB6G · #1430 ·
Re: Parsing a string
Hi Mike I am using that, but I am not able to figure out the actual verb to use to break it out. Mike va3mw
By Michael Walker · #1429 ·
Re: Parsing a string
Hi Mike. Haven't? used it myself, but have you considered node-red-contrib-string ? node-red-contrib-string ( https://flows.nodered.org/node/node-red-contrib-string )
By Mike Morneau <ve3mic@...> · #1428 ·
Re: Parsing a string
I have a workable solution (Dave, no driving and texting) :) Take the string and convert it to csv. I can manage the rest. But, I will like to see your idea. 73 [image: image.png] wrote:
By Michael Walker · #1427 ·
Re: Parsing a string
Mike: Have you taken a look at the bit unloader node? Would this do what you wish? https://flows.nodered.org/node/node-red-contrib-bitunloader Neal
By Neal AB6G · #1426 ·
Re: Parsing a string
I¡¯ve got a solution. I should be home in 1/2 hr. Dave wo2x Sent from my waxed string and tin cans.
By Dave wo2x · #1425 ·
Re: Parsing a string
Hi Neal Yes, that is the status of 8 relays that I need to break out so I can build an LED panel (so to speak) Mike
By Michael Walker · #1424 ·
Re: Parsing a string
Mike: I don't have the actual answer, but I *think* I understand how to describe what you want: Given a binary string of 1's and 0's such as, for example, 10010110 , parse out each digit position, and
By Neal AB6G · #1423 ·
Parsing a string
Hi All I have a string I need to parse of 8 binary values being returned from a relay board 10000000 What is the best way to parse out the status of each of these relays? I looked at 'string' but I
By Michael Walker · #1422 ·
Re: INA-219 Node Fixed/Updated, no longer requires downgrade to Node.js v10
Thanks Neal. I am going to spend some time updating the Groups.io site tomorrow including fixing the order of FRStack install in the WiKi. There are other node updates I have noticed also. 73 Dave
By Dave wo2x · #1421 ·