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.
86 lines (80 loc) • 2.92 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('BlinkerUltimate', {
category: 'boolean logic ultimate',
color: '#ff8080',
defaults: {
name: { value: "Blinker" },
stopbehaviorPIN1: { value: "0" },
stopbehaviorPIN2: { value: "0" },
blinkfrequency: { value: "500" },
initializewith: { value: "0" },
},
inputs: 1,
outputs: 2,
outputLabels: function (i) {
switch (i) {
case 0:
return "Output";
break;
case 1:
return "Inverted Output";
break;
default:
break;
}
},
icon: "light.png",
label:
function () {
return (this.name || "Blinker") + " (" + this.blinkfrequency + "ms)";
},
paletteLabel: function () {
return "BlinkerUltimate";
}
});
</script>
<script type="text/x-red" data-template-name="BlinkerUltimate">
<div class="form-row">
<b>Blinker 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>
<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-blinkfrequency"><i class="fa fa-clock-o"></i> Blink every (in milliseconds)</label>
<input type="text" id="node-input-blinkfrequency" placeholder="Example: 500">
</div>
<div class="form-row">
<label for="node-input-stopbehaviorPIN1"><i class="fa fa-stop"></i> PIN1 stop behavior</label>
<select type="text" id="node-input-stopbehaviorPIN1">
<option value="0">Send false</option>
<option value="1">Send true</option>
</select>
</div>
<div class="form-row">
<label for="node-input-stopbehaviorPIN2"><i class="fa fa-stop"></i> PIN2 stop behavior</label>
<select type="text" id="node-input-stopbehaviorPIN2">
<option value="0">Send false</option>
<option value="1">Send true</option>
</select>
</div>
<div class="form-row">
<label for="node-input-initializewith"><i class="fa fa-home"></i> Autostart</label>
<select type="text" id="node-input-initializewith" placeholder="">
<option value="0">Don't start the blinker automatically</option>
<option value="1">Start the blinker automatically</option>
</select>
</div>
</script>
<script type="text/x-red" data-help-name="BlinkerUltimate">
<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>