Hi Steve, thanks for these excelent tutorial. For me as an beginner the best way to get knowledge about Node Red. Hope we get many more of these stuff.
Are you using your own flow or mine.? If iy is your own flow then contact me using the ask steve page so you can then email me the flow and I can take a look. stevessmarthomeguide.com/ask-steve/
Do you have any course for beginner-beginners? I have a serial input into node-red, and in the debug-menu I only get "msg.payload : String[31] "example:31" and I use split and trim to get 31 out of this. The problem is that I get another string after this one, that I want to ignore.. but I dont understand how. So i cant chart my data cause of this.
Hi It looks like your data is a JSON string so you can pass it into the JSON node to get a Javascript object. The use the change node to extract msg.payload.example and ignore the rest. You may find this useful Working With JSON Data in Node Red th-cam.com/video/24ZY3CEsiow/w-d-xo.html If still no luck then use the ask steve page on the site to send me you flow. www.steves-internet-guide.com/ask-steve/ rgds steve
I know this is a little old, but when you say "there are other nodes that will split on keys other than 'payload' " - what are they? .. I've looked around and can't find anything comparable.
The switch node will split the message into different paths based on any property. You can also use a function node with your own code. If you are stuck with splitting something then get back to me on the site stevesnoderedguide.com/ask-steve rgds steve
hi steve, thanks for all your lessons, they are fantastic. i guess, you have slightly "msispoken" that the key is part of the payload when copied in the split-node (here: th-cam.com/video/VK5Uy38s6V0/w-d-xo.html), i downloaded your flow and checked the debug, so one can see, that the copied key is part of msg.key, not msg.payload.key (anyway thanks for all lessons: 🎉🎉🎉👍)
I really like your videos. They're really good for when you just need info, on THAT specific little detail.
Hi Steve, thanks for these excelent tutorial. For me as an beginner the best way to get knowledge about Node Red. Hope we get many more of these stuff.
Steve I split the incoming json array of objects and to loop through it and insert in data base what should I do?
Very useful. Thanks!!
I follow your tutorial exactly how you discussed my flow doesn't work. the debug is always showing: Expected "]" match error. Problem on Line 4.
Are you using your own flow or mine.? If iy is your own flow then contact me using the ask steve page so you can then email me the flow and I can take a look.
stevessmarthomeguide.com/ask-steve/
Do you have any course for beginner-beginners? I have a serial input into node-red, and in the debug-menu I only get "msg.payload : String[31] "example:31" and I use split and trim to get 31 out of this. The problem is that I get another string after this one, that I want to ignore.. but I dont understand how. So i cant chart my data cause of this.
Hi
It looks like your data is a JSON string so you can pass it into the JSON node to get a Javascript object. The use the change node to extract msg.payload.example and ignore the rest. You may find this useful
Working With JSON Data in Node Red
th-cam.com/video/24ZY3CEsiow/w-d-xo.html
If still no luck then use the ask steve page on the site to send me you flow.
www.steves-internet-guide.com/ask-steve/
rgds
steve
I know this is a little old, but when you say "there are other nodes that will split on keys other than 'payload' " - what are they? .. I've looked around and can't find anything comparable.
The switch node will split the message into different paths based on any property. You can also use a function node with your own code. If you are stuck with splitting something then get back to me on the site stevesnoderedguide.com/ask-steve
rgds
steve
@@stevecope thanks, that lead me to finding the solution in the function node much better than using a separate split node!
Can I use a split inside another split?
Not inside but after. As far as I know nodes can't be used inside other nodes.
Hi Steve how can I contact you, I need your advice please
There is acontact form on the website
www.steves-internet-guide.com/about/
or
email
steve@steves-internet-guide.com
hi steve, thanks for all your lessons, they are fantastic. i guess, you have slightly "msispoken" that the key is part of the payload when copied in the split-node (here: th-cam.com/video/VK5Uy38s6V0/w-d-xo.html), i downloaded your flow and checked the debug, so one can see, that the copied key is part of msg.key, not msg.payload.key (anyway thanks for all lessons: 🎉🎉🎉👍)