Neal beat me to it. ? Split/Switch is the way to go. Easy. ? 73 Dave wo2x ? ?
toggle quoted message
Show quoted text
From: [email protected] < [email protected]> On Behalf Of Neal Pollack Sent: Friday, January 29, 2021 1:38 PM To: [email protected]Subject: Re: [nodered-hamradio] Parsing a string ? Another way to split the outputs; ? On Fri, Jan 29, 2021 at 10:24 AM Michael Walker <va3mw@...> wrote: 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. ? On Fri, Jan 29, 2021 at 1:17 PM David De Coons wo2x <RocketNJ@...> wrote: I’ve got a solution. I should be home in 1/2 hr. Dave wo2x ? Sent from my waxed string and tin cans.?
On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:
? 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) ? On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack <nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for? ? On Fri, Jan 29, 2021 at 9:52 AM Michael Walker <va3mw@...> wrote: Hi All I have a string I need to parse of 8 binary values being returned from a relay board What is the best way to parse out the status of each of these relays??? I looked at 'string' but I can't see a method that allows me to pull the boolean out 1 at a time.
|
Perfect!??
You should see the mess I just glued together! :)
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 1:38 PM Neal Pollack < nealix@...> wrote: Another way to split the outputs;
On Fri, Jan 29, 2021 at 10:24 AM Michael Walker < va3mw@...> wrote: 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
On Fri, Jan 29, 2021 at 1:17 PM David De Coons wo2x < RocketNJ@...> wrote: I’ve got a solution. I should be home in 1/2 hr.
Dave wo2x
Sent from my waxed string and tin cans.? On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:
? 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? On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
Another way to split the outputs;
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 10:24 AM Michael Walker < va3mw@...> wrote: 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
On Fri, Jan 29, 2021 at 1:17 PM David De Coons wo2x < RocketNJ@...> wrote: I’ve got a solution. I should be home in 1/2 hr.
Dave wo2x
Sent from my waxed string and tin cans.? On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:
? 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? On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
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
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 1:36 PM Mike Morneau < ve3mic@...> wrote: Hi Mike.
Haven't? used it myself, but have you considered node-red-contrib-string ?
?
|
Hi Mike.
Haven't? used it myself, but have you considered node-red-contrib-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
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 1:17 PM David De Coons wo2x < RocketNJ@...> wrote: I’ve got a solution. I should be home in 1/2 hr.
Dave wo2x
Sent from my waxed string and tin cans.? On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:
? 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? On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
Mike:
Have you taken a look at the bit unloader node?? Would this do what you wish?
Neal
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 10:09 AM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
I’ve got a solution. I should be home in 1/2 hr.
Dave wo2x
Sent from my waxed string and tin cans.?
toggle quoted message
Show quoted text
On Jan 29, 2021, at 1:11 PM, Michael Walker <va3mw@...> wrote:
? 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? On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
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?
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 1:09 PM Neal Pollack < nealix@...> wrote: 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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
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 assign?each digit to a separate boolean variable name set to 1 or 0.? ? Is that what?you're looking for?
Neal
toggle quoted message
Show quoted text
On Fri, Jan 29, 2021 at 9:52 AM Michael Walker < va3mw@...> wrote: 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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
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 can't see a method that allows me to pull the boolean out 1 at a time.
thoughts?
Mike va3mw
|
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 wo2x Sent from my waxed string and tin cans.?
toggle quoted message
Show quoted text
On Jan 28, 2021, at 10:48 PM, Neal Pollack <nealix@...> wrote:
? 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 the current Raspberry Pi OS and Node Red, and the INA-219 node should agree to install, for those who use it.? You can see the details at the link below.
REF:??
Cheers,
Neal N6YFM
|
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 the current Raspberry Pi OS and Node Red, and the INA-219 node should agree to install, for those who use it.? You can see the details at the link below.
REF:?? Summary:??This node WILL NOT install if your system is using Node.js v12.x or higher. So if you did a fresh install of a raspberry pi OS in 2020 or later, you will need to roll back the Node.js portion to 10.x? [NOW FIXED according to the maintainer.]
Cheers,
Neal N6YFM
|
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 different sites I found using Google. ? It is really a 3 step process in creating a flow: - Getting the data into Node Red
- Manipulating the data into format for viewing
- Laying out the dashboard to display data
? There are tutorials on using the Raspberry OS via telnet (terminal) and/or VNC or local desktop to Pi (monitor keyboard and mouse connected to Pi). I’ll try to ferret out a good video and provide a link. ? I think the next Zoom session we could work on building a couple of flows. One for getting and sending info to a device and another for controlling simple relays. I actually saw a video online the other day where the author used 3 relays to create a traffic light system. It was very good in explaining how to wire things up. ? 73 Dave wo2x ? ?
toggle quoted message
Show quoted text
From: [email protected] < [email protected]> On Behalf Of wa9mvz via groups.io Sent: Thursday, January 28, 2021 8:51 AM To: [email protected]Subject: Re: [nodered-hamradio] Getting started with Node Red ? Alan, Dave ... thanks for the Zoom meeting last night. I appreciate your taking the time to host that.? I have a very extensive? multi-state remote radio system in place and have been remoting since the 1990's. As automated as I am, I often have to bring up multiple systems. There is an appealing elegance to the Node Red dashboards I'd seen.? I was attracted to Node-Red for the control simplicity it offered.
I had a steep learning curve over the past few days to get where I am on Node-Red. I have done a lot of work with Arduino and C++, but I've never played with an OS, the RPi or JavaScript. In future lessons, you might help others along by realizing that there are really 4 steps to mastering this for someone like me (an RF engineer):
1. Learn how to run the Rasberry Pi itself. How to interface to a terminal, etc.? 2. How to load and run the OS.? 3. Learn how to load simple flows in Node-Red using GPIO interfaces.? 4. Learn programming in JavaScript and building the dashboard.
Most Node-Red "beginner" tutorials assume you already know steps 1,2, and 4. That was not the case for me. I felt there was a lack of mid-level tutorials out there. For example, I could find little about how to build and arrange a dashboard. Your meeting last night filled that gap and got me heading in the right direction.?
That said, sometimes the only way to drink from a fire hose is to start drinking.
Thanks for making yourselves available to true beginners and for your patience.?
Fred K9SO
|
toggle quoted message
Show quoted text
Sent: Thursday, January 28, 2021 4:07 PM
Subject: Re: [nodered-hamradio] 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
?
|
Hi Ed. ? Yes, it will show up on the M's front panel.
What kind of logging software do you use?
Alan
toggle quoted message
Show quoted text
On Thu, Jan 28, 2021 at 4:56 PM Edward Dowdy < ka9ees@...> wrote:
Can we do that with the front panel of an M model?
?
Ed, KA9EES
?
Sent: Thursday, January 28, 2021 12:07 PM
Subject: Re: [nodered-hamradio] File /Spot Call and Name.json
uploaded #file-notice
?
I
have a short memory retention time and needed aid to show me the Name and Call
Sign of the ham I was having a QSO with. Last night, Dave explained that
we can receive the UDP broadcasts from our various Ham apps and use the results
in Node-Red.? In this case, I am taking the UDP broadcast from MacLoggerDX'
"Lookup", parsing out the contact's Name and Call sign.? I then wrote
functions to build the command to display the "Name>Call Sign" as a spot on
the panadapter. So...When I use my logging software to look up the info
on QRZ.com of the other ham, his/her name will be shown on my panadapter on the
TX frequency, until I look up a new call or when I trigger the "remove all
spots" function. Mine is set up for MacLogger DX.? You will need
your own connector to extract Name and Call from other popular Logging
Applications.? I am sure Dave and/I could help/write the adapters....just
ask. Here is a screenshot of my Maestro's Panadapter. Alan.
WA9WUD 
|
Can we do that with the front panel of an M model?
?
Ed, KA9EES
toggle quoted message
Show quoted text
Sent: Thursday, January 28, 2021 12:07 PM
Subject: Re: [nodered-hamradio] File /Spot Call and Name.json
uploaded #file-notice
?
I
have a short memory retention time and needed aid to show me the Name and Call
Sign of the ham I was having a QSO with. Last night, Dave explained that
we can receive the UDP broadcasts from our various Ham apps and use the results
in Node-Red.? In this case, I am taking the UDP broadcast from MacLoggerDX'
"Lookup", parsing out the contact's Name and Call sign.? I then wrote
functions to build the command to display the "Name>Call Sign" as a spot on
the panadapter. So...When I use my logging software to look up the info
on QRZ.com of the other ham, his/her name will be shown on my panadapter on the
TX frequency, until I look up a new call or when I trigger the "remove all
spots" function. Mine is set up for MacLogger DX.? You will need
your own connector to extract Name and Call from other popular Logging
Applications.? I am sure Dave and/I could help/write the adapters....just
ask. Here is a screenshot of my Maestro's Panadapter. Alan.
WA9WUD 
|
I’m famous! (Or infamous)
;-)
Dave wo2x Sent from my waxed string and tin cans.?
toggle quoted message
Show quoted text
On Jan 28, 2021, at 1:07 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:
?I have a short memory retention time and needed aid to show me the Name and Call Sign of the ham I was having a QSO with. Last night, Dave explained that we can receive the UDP broadcasts from our various Ham apps and use the results in Node-Red. ?In this case, I am taking the UDP broadcast from MacLoggerDX' "Lookup", parsing out the contact's Name and Call sign. ?I then wrote functions to build the command to display the "Name>Call Sign" as a spot on the panadapter. So...When I use my logging software to look up the info on QRZ.com of the other ham, his/her name will be shown on my panadapter on the TX frequency, until I look up a new call or when I trigger the "remove all spots" function. Mine is set up for MacLogger DX. ?You will need your own connector to extract Name and Call from other popular Logging Applications. ?I am sure Dave and/I could help/write the adapters....just ask. Here is a screenshot of my Maestro's Panadapter. Alan. WA9WUD <Spots - 1.jpeg> <Spots - 2.jpeg>
|
I have a short memory retention time and needed aid to show me the Name and Call Sign of the ham I was having a QSO with. Last night, Dave explained that we can receive the UDP broadcasts from our various Ham apps and use the results in Node-Red. ?In this case, I am taking the UDP broadcast from MacLoggerDX' "Lookup", parsing out the contact's Name and Call sign. ?I then wrote functions to build the command to display the "Name>Call Sign" as a spot on the panadapter. So...When I use my logging software to look up the info on QRZ.com of the other ham, his/her name will be shown on my panadapter on the TX frequency, until I look up a new call or when I trigger the "remove all spots" function. Mine is set up for MacLogger DX. ?You will need your own connector to extract Name and Call from other popular Logging Applications. ?I am sure Dave and/I could help/write the adapters....just ask. Here is a screenshot of my Maestro's Panadapter. Alan. WA9WUD  
|
The following files have been uploaded to
the Files area of the [email protected] group.
By: Alan Blind, WA9WUD
Description:
Node-Red Flow to "Spot" the Call Sign and Name of the Ham you lookup via QRZ.com via your favorite logging app. I have it set up to work with MacLoggerDX. Most logger programs will UDP broadcast the QSO info when you do a QRZ.com lookup and can be adapted to my flow. I am sure Dave or I can help others build the needed connectors....just ask.
|