UNPKG

node-red-contrib-boolean-logic-ultimate

Version:

A set of Node-RED enhanced boolean logic node, flow interruption node, blinker node, invert node, filter node, with persisten values after reboot and more.

75 lines (68 loc) 2.63 kB
<script type="text/javascript"> RED.nodes.registerType('InterruptFlowUltimate', { category: 'boolean logic ultimate', color: '#ff8080', defaults: { name: { value: "Interrupt Flow" }, triggertopic: { value: "trigger" }, initializewith: { value: "1" }, }, inputs: 1, outputs: 1, outputLabels: function (i) { var ret = ""; switch (i) { case 0: return "True"; break; case 1: return "False"; break; default: break; } }, icon: "file-in.png", label: function () { return (this.name || "Interrupt") + " (" + this.triggertopic + ")"; }, paletteLabel: function () { return "InterruptFlowUltimate"; } }); </script> <script type="text/x-red" data-template-name="InterruptFlowUltimate"> <div class="form-row"> <b>Interrupt Flow Ultimate</b>&nbsp&nbsp&nbsp&nbsp<span style="color:red"><i class="fa fa-question-circle"></i>&nbsp<a target="_blank" href="https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate"><u>Help online</u></a></span> <br/> <br/> </div> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-triggertopic"><i class="icon-tag"></i> Trigger by topic</label> <input type="text" id="node-input-triggertopic" placeholder="Name"> <div><i>Whenever the node receives a payload = false from this topic,<br/> it stops output messages to the flow.<br/>As soon it receives payload = true from this topic,<br/>the output messages start to flow out again. <br/>The node will output the current stored message<br/>plus an added property "isReplay = true",<br/>as soon as it receives a "play" = true from this topic. </i></div> </div> <div class="form-row"> <label for="node-input-initializewith"><i class="fa fa-home"></i> At node-red start</label> <select type="text" id="node-input-initializewith" placeholder=""> <option value="1">Pass telegrams</option> <option value="0">Block telegrams</option> </select> </div> </script> <script type="text/x-red" data-help-name="InterruptFlowUltimate"> <p> SEE THE README FOR HELP CONFIGURING THE NODE </p> <p> <a href="https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate" target="_blank">Click here to learn how to configure the node.</a> </p> <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a> </script>