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
·
|
INA-219 Node Fixed/Updated, no longer requires downgrade to Node.js v10
Dave: We can update the note in the Forum Wiki, if you had one there.? ?My bug report last month prompted the maintainer of the INA-219 node to fix the bug.? So now, you can do a fresh install of
By
Neal AB6G
·
#1420
·
Edited
|
Re: Getting started with Node Red
Thanks for the feedback Fred. I have to admit, I do not know JS. Everything I have done in Node Red I have been able to figure out or learn from Google searches and loading example flows from
By
Dave wo2x
·
#1419
·
|
Re: File /Spot Call and Name.json uploaded
#file-notice
ACLog Sent: Thursday, January 28, 2021 4:07 PM To: mailto:[email protected] Subject: Re: [nodered-hamradio] File /Spot Call and Name.json uploaded #file-notice Hi Ed. Yes, it will show up on
By
Edward Dowdy KA9EES
·
#1418
·
|
Re: File /Spot Call and Name.json uploaded
#file-notice
Hi Ed. Yes, it will show up on the M's front panel. What kind of logging software do you use? Alan
By
Alan Blind, WA9WUD
·
#1417
·
|