开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: Parsing a string

Mike Morneau
 

Hi Mike.
Haven't? used it myself, but have you considered node-red-contrib-string ?
?


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.png


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


Re: Parsing a string

 

Mike:

Have you taken a look at the bit unloader node?? Would this do what you wish?


Neal


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


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.?

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


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?

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


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 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


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 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.?

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

 
Edited

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

?

?

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


Re: File /Spot Call and Name.json uploaded #file-notice

 

开云体育

ACLog
?
?

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
?


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

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




Re: File /Spot Call and Name.json uploaded #file-notice

 

开云体育

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




Re: File /Spot Call and Name.json uploaded #file-notice

 

开云体育

I’m famous!
(Or infamous)

;-)

Dave wo2x

Sent from my waxed string and tin cans.?

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>


Re: 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




File /Spot Call and Name.json uploaded #file-notice

[email protected] Notification
 

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.


Video of last night’s training for getting started with Node Red

 

开云体育

Hi all,

Thank you to the members that attended last night’s Zoom meeting on getting started with Node Red for ham radio.?

The video is now up on my YouTube channel. I did not edit the video so you will be able to see and hear everything from the presentation.?

Here is the link


73
Dave wo2x

Sent from my waxed string and tin cans.?


Re: Node Red Training - Getting Started After Loading Your Raspberry Pi

 

开云体育

Hi Ed

It is uploading to YouTube now. Then it needs to process so may take a couple of hours to complete.?

I will post a link when it is done.?

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Jan 28, 2021, at 9:57 AM, Edward Dowdy <ka9ees@...> wrote:

?Let me know where the recording of it will be posted. I was having some servere ?neuropathic pain and had to leave early. I’d also like to apologize for not being ?muted when I entered. I’m still learning ?how to use my iPad. I had no idea how to mute it. I know now how it is done.

73,
Ed KA9EES?


Re: Node Red Training - Getting Started After Loading Your Raspberry Pi

 

Let me know where the recording of it will be posted. I was having some servere ?neuropathic pain and had to leave early. I’d also like to apologize for not being ?muted when I entered. I’m still learning ?how to use my iPad. I had no idea how to mute it. I know now how it is done.

73,
Ed KA9EES?


Re: 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