[{"data":1,"prerenderedAt":125},["ShallowReactive",2],{"blog-\u002Fblog\u002F2023\u002F03\u002F3-quick-node-red-tips-3":3},{"id":4,"title":5,"body":6,"description":12,"extension":114,"meta":115,"navigation":120,"path":121,"seo":122,"stem":123,"__hash__":124},"blog\u002Fblog\u002F2023\u002F03\u002F3-quick-node-red-tips-3.md","Node-RED Tips - Exec, Filter, and Debug",{"type":7,"value":8,"toc":105},"minimark",[9,13,18,21,29,33,36,42,45,51,55,58,64,67,73,82,87,95,98],[10,11,12],"p",{},"There is usually more than one way to complete a given task in software, and Node-RED is no exception. In each of this series of blog posts, we are going to share three useful tips to save yourself time when working on your flows.",[14,15,17],"h3",{"id":16},"_1-the-exec-node-allows-you-to-interact-with-bash-from-node-red","1. The Exec node allows you to interact with BASH from Node-RED",[10,19,20],{},"Exec allows you to run Shell commands and receive the value back into your flow. This opens up almost any command which can be run on the host devices CLI to your Node-RED flows.",[10,22,23],{},[24,25],"img",{"alt":26,"src":27,"title":28},"\"Example flow using the Exec node\"","\u002Fblog\u002F2023\u002F03\u002Fimages\u002Fexec-example.gif","Example flow using the Exec node",[14,30,32],{"id":31},"_2-the-filter-node-helps-you-discard-duplicate-messages","2. The Filter node helps you discard duplicate messages",[10,34,35],{},"It can be useful to only allow messages to proceed through a flow where their value is unique. Filter makes that task simple, no need to store the past values and check each new message against a list.",[10,37,38],{},[24,39],{"alt":40,"src":41,"title":40},"Configuring the Filter node to only allow unique payloads through","\u002Fblog\u002F2023\u002F03\u002Fimages\u002Ffilter-config.png",[10,43,44],{},"Once your filter is configured as shown above, try sending different payloads through to see the outcome.",[10,46,47],{},[24,48],{"alt":49,"src":50,"title":49},"Demonstration showing the Filter node","\u002Fblog\u002F2023\u002F03\u002Fimages\u002Ffilter-example.gif",[14,52,54],{"id":53},"_3-counting-the-amount-of-messages-sent-to-a-debug-node","3. Counting the amount of messages sent to a Debug node",[10,56,57],{},"The Debug node has a lot of great features that we don't see used that often. One example is the ability to show a count of how many messages have been sent to that Debug node since the last deploy.",[10,59,60],{},[24,61],{"alt":62,"src":63,"title":62},"Setting up the debug to count messages","\u002Fblog\u002F2023\u002F03\u002Fimages\u002Fsetup-counting-debug.png",[10,65,66],{},"Once you've setup the node as shown above, you will see a counter under the debug.",[10,68,69],{},[24,70],{"alt":71,"src":72,"title":71},"Each message sent to the debug node is counted","\u002Fblog\u002F2023\u002F03\u002Fimages\u002Fcounting-debug.gif",[10,74,75,76,81],{},"We hope you found these tips useful, if you'd like to suggest some of your own tips which you think we should share in our future blog posts please ",[77,78,80],"a",{"href":79},"mailto:contact@flowfuse.com","get in touch",".",[83,84,86],"h2",{"id":85},"effortless-communication-between-node-red-instances-with-flowfuse-project-nodes","Effortless Communication Between Node-RED Instances with FlowFuse Project Nodes",[10,88,89,90,94],{},"Managing communication between multiple Node-RED instances can be a complex task, but FlowFuse ",[77,91,93],{"href":92},"\u002Fdocs\u002Fuser\u002Fprojectnodes\u002F","Project Nodes"," simplify this process dramatically. With these nodes, you can easily send messages between different Node-RED instances without worrying about complex configurations or network setup.",[10,96,97],{},"All you need to do is select the target instance by name, and FlowFuse takes care of the rest. This makes it faster and more efficient to handle multi-instance environments, ensuring seamless communication between flows across different devices or locations. Whether you're managing multiple environments or working on large-scale projects, FlowFuse Project Nodes save you time and reduce the risk of errors.",[10,99,100,101,81],{},"FlowFuse continues to innovate, making collaboration and scalability in Node-RED projects even easier. To learn more about these features, check out the ",[77,102,104],{"href":103},"\u002F","FlowFuse website",{"title":106,"searchDepth":107,"depth":107,"links":108},"",2,[109,111,112,113],{"id":16,"depth":110,"text":17},3,{"id":31,"depth":110,"text":32},{"id":53,"depth":110,"text":54},{"id":85,"depth":107,"text":86},"md",{"navTitle":5,"excerpt":116},{"type":7,"value":117},[118],[10,119,12],{},true,"\u002Fblog\u002F2023\u002F03\u002F3-quick-node-red-tips-3",{"title":5,"description":12},"blog\u002F2023\u002F03\u002F3-quick-node-red-tips-3","YTJOs1l4Ki7tyCfAuW_GabbTwFdzkm6c43bLOGS0caE",1780070550253]