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.
64 lines (56 loc) • 2.29 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('SimpleOutputUltimate', {
category: 'Boolean Logic Ultimate',
color: '#ff8080',
defaults: {
name: {
value: "Output"
}
},
inputs: 1,
outputs: 2,
outputLabels: function (i) {
var ret = "";
switch (i) {
case 0:
return "True";
break;
case 1:
return "False";
break;
default:
break;
}
},
icon: "font-awesome/fa-arrow-circle-o-right",
label:
function () {
return this.name || "Simple Output";
},
paletteLabel: function () {
return "Simple Output";
}
});
</script>
<script type="text/html" data-template-name="SimpleOutputUltimate">
<div class="form-row">
<b>Simple Output Ultimate</b>    <span style="color:red"><i class="fa fa-question-circle"></i> <a target="_blank" href="https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate"><u>Help online</u></a></span>
   <span style="color:red"><i class="fa fa-youtube-play"></i> <a target="_blank" href="https://youtu.be/tCKolVculuw"><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>
</script>
<script type="text/markdown" data-help-name="SimpleOutputUltimate">
<p>The pourpose of this node is to send a message with payload TRUE on the first output and FALSE on second output, independently from the msg input.</p>
This is useful if you need to simply send a true or false payload.
|Property|Description|
|--|--|
| Input | It's the msg property to be evaluated. By default, it is "payload", but you can also specify other properties, for example "payload.value" |
<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>