Moderated
Zeroing meters when rig or amp off (eg. KPA500, Flex)
Is there a way to zero the meters/text data for the meters when the radio or amplifier is turned off? Currently, when they are off, the meters register full scale. Thanks, Charlie KB8CR
By
Charlie Rubenstein
·
#1448
·
|
Re: INA-219 Node Fixed/Updated, no longer requires downgrade to Node.js v10
Sorry Neal.? I should of clicked on the link before posting.? It's right there!!!!! LOL
By
Kyle AA0Z
·
#1447
·
|
Re: Parsing a string
Since it's fixed length (8) convert it into an array then you can access each position via an index Object.assign([], string); newObject?=?Object.assign([], string); OR without conversion const
By
the gadget techie
·
#1446
·
|
Re: INA-219 Node Fixed/Updated, no longer requires downgrade to Node.js v10
Yes there is Kyle. Look to the beginning of the thread. Procedure is in the link to the bug report. It is not hard. I am running the workaround myself. Neal
By
Neal AB6G
·
#1445
·
|
Re: INA-219 Node Fixed/Updated, no longer requires downgrade to Node.js v10
I just got my INA219 boards last week and were going to start playing around with them.? I had not installed the INA-219 node yet.? I installed my OS in 2020. I'm assuming there isn't a procedure on
By
Kyle AA0Z
·
#1444
·
|
Re: Parsing a string
Advantage of a 50¡± 4k TV as a monitor. Good for my tired old eyes (age 59). I do like your single function solution! 73 Dave wo2x Sent: Friday, January 29, 2021 4:07 PM To:
By
Dave wo2x
·
#1443
·
|
Re: Parsing a string
Hi Alan, Mick¡¯s single function node is fine for processing Mike¡¯s string input. With the DLI the input is a base 10 number which equates to the binary position of the eight outlets. A combo of
By
Dave wo2x
·
#1442
·
|
Re: Parsing a string
Thanks Dave, I caught it... I need a bigger monitor. Doing it on a laptop screen. It would seem Michaels has a plethora of options available to him now. wrote:
By
Mick , W8BE
·
#1441
·
|
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 =
By
Mick , W8BE
·
#1437
·
Edited
|
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
·
|