# node-red-contrib-boolean-logic-ultimate | # node-red-contrib-boolean-logic-ultimate | ||||
<p> | <p> | ||||
<b>Version 0.0.4</b><br/> | |||||
- Fixed conflict issue if you have the old boolean logic installed<br/> | |||||
</p> | |||||
<p> | |||||
<b>Version 0.0.3</b><br/> | <b>Version 0.0.3</b><br/> | ||||
- Fixed status display<br/> | - Fixed status display<br/> | ||||
</p> | </p> |
<script type="text/javascript"> | <script type="text/javascript"> | ||||
RED.nodes.registerType('Invert',{ | |||||
RED.nodes.registerType('InvertUltimate',{ | |||||
category: 'boolean logic ultimate', | category: 'boolean logic ultimate', | ||||
color: '#ff8080', | color: '#ff8080', | ||||
defaults: { | defaults: { | ||||
name: { | name: { | ||||
value: "Invert" | |||||
value: "InvertUltimate" | |||||
} | } | ||||
}, | }, | ||||
inputs:1, | inputs:1, | ||||
icon: "serial.png", | icon: "serial.png", | ||||
label: | label: | ||||
function() { | function() { | ||||
return this.name||"Invert"; | |||||
return this.name||"InvertUltimate"; | |||||
}, | }, | ||||
paletteLabel: function() { | paletteLabel: function() { | ||||
return "Invert"; | |||||
return "InvertUltimate"; | |||||
} | } | ||||
}); | }); | ||||
</script> | </script> | ||||
<script type="text/x-red" data-template-name="Invert"> | |||||
<script type="text/x-red" data-template-name="InvertUltimate"> | |||||
<div class="form-row"> | <div class="form-row"> | ||||
<label for="node-input-name"><i class="icon-tag"></i> Name</label> | <label for="node-input-name"><i class="icon-tag"></i> Name</label> | ||||
<input type="text" id="node-input-name" placeholder="Name"> | <input type="text" id="node-input-name" placeholder="Name"> | ||||
</div> | </div> | ||||
</script> | </script> | ||||
<script type="text/x-red" data-help-name="Invert"> | |||||
<script type="text/x-red" data-help-name="InvertUltimate"> | |||||
<p>A node that emits the inverted input value.<br/> | <p>A node that emits the inverted input value.<br/> | ||||
The status indicator represents the output value. | The status indicator represents the output value. | ||||
</p> | </p> |
module.exports = function(RED) { | module.exports = function(RED) { | ||||
function Invert(config) { | |||||
function InvertUltimate(config) { | |||||
RED.nodes.createNode(this,config); | RED.nodes.createNode(this,config); | ||||
this.config = config; | this.config = config; | ||||
var node = this; | var node = this; | ||||
} | } | ||||
RED.nodes.registerType("Invert",Invert); | |||||
RED.nodes.registerType("InvertUltimate",InvertUltimate); | |||||
} | } |
{ | { | ||||
"name": "node-red-contrib-boolean-logic-ultimate", | "name": "node-red-contrib-boolean-logic-ultimate", | ||||
"version": "0.0.3", | |||||
"version": "0.0.4", | |||||
"description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more", | "description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more", | ||||
"author": "Supergiovane (https://github.com/Supergiovane)", | "author": "Supergiovane (https://github.com/Supergiovane)", | ||||
"dependencies": { | "dependencies": { | ||||
"node-red": { | "node-red": { | ||||
"nodes": { | "nodes": { | ||||
"BooleanLogicUltimate": "boolean-logic-ultimate/BooleanLogicUltimate.js", | "BooleanLogicUltimate": "boolean-logic-ultimate/BooleanLogicUltimate.js", | ||||
"Invert": "boolean-logic-ultimate/Invert.js" | |||||
"InvertUltimate": "boolean-logic-ultimate/InvertUltimate.js" | |||||
} | } | ||||
} | } | ||||
} | } |