UNPKG

node-red-contrib-boolean-logic-ultimate

Version:

A set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.

60 lines (52 loc) 2.19 kB
<script type="text/javascript"> RED.nodes.registerType('StatusUltimate', { category: 'Boolean Logic Ultimate', color: '#ff8080', defaults: { name: { value: "Status" }, property: { value: "payload" } }, inputs: 1, outputs: 1, icon: "font-awesome/fa-eye", label: function () { return this.name || "Status"; }, paletteLabel: function () { return "Status"; }, oneditprepare: function () { if ($("#node-input-property").val() === "") $("#node-input-property").val("payload"); $("#node-input-property").typedInput({ default: 'msg', types: ['msg'] }); } }); </script> <script type="text/html" data-template-name="StatusUltimate"> <div class="form-row"> <b>Status 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> &nbsp&nbsp&nbsp<span style="color:red"><i class="fa fa-youtube-play"></i>&nbsp<a target="_blank" href="https://youtu.be/m3p06PN3rTI"><u>Youtube Sample</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-property"><i class="fa fa-ellipsis-h"></i> Show</label> <input type="text" id="node-input-property" placeholder="payload"> </div> </script> <script type="text/markdown" data-help-name="StatusUltimate"> <p>The pourpose of this node is to show a status of the passingthrough message.<p> **Show msg.** Write here the property you want to get the status from. For example, "payload", "mycar.color", etc. <br/> [SEE THE README FOR FULL HELP AND SAMPLES](https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate) [Find it useful?](https://www.paypal.me/techtoday) </script>