node-red-contrib-boolean-logic-ultimate
Advanced tools
Comparing version
@@ -40,3 +40,3 @@ module.exports = function (RED) { | ||
} | ||
} catch (error) { | ||
} catch (error) { | ||
RED.log.error("BooleanLogicUltimate: error creating persistent folder. Check user permission to write to the filesystem " + error.message); | ||
@@ -69,3 +69,15 @@ } | ||
// 21/04/2021 Msg to reset all inputs | ||
if (msg.hasOwnProperty("reset")) { | ||
setNodeStatus({ fill: "blue", shape: "ring", text: "All inputs have been reset." }); | ||
node.jSonStates = []; | ||
return; | ||
} | ||
// 28/08/2020 inform user about undefined topic or payload | ||
if (!msg.hasOwnProperty("payload") || typeof (msg.payload) == "undefined") { | ||
setNodeStatus({ fill: "red", shape: "dot", text: "Received invalid payload!" }); | ||
return; | ||
} | ||
// 28/08/2020 inform user about undefined topic or payload | ||
if (!msg.hasOwnProperty("topic") || typeof (msg.topic) == "undefined") { | ||
@@ -72,0 +84,0 @@ setNodeStatus({ fill: "red", shape: "dot", text: "Received invalid topic!" }); |
@@ -5,2 +5,7 @@ # node-red-contrib-boolean-logic-ultimate | ||
<p> | ||
<b>Version 1.0.27</b> April 2021<br/> | ||
- Boolean logic ultimate: msg.reset = true now resets all inputs.</br> | ||
- Update the help in the README to reflect the changes.</br> | ||
</p> | ||
<p> | ||
<b>Version 1.0.26</b> April 2021<br/> | ||
@@ -7,0 +12,0 @@ - NEW: Interrupt Flow: now you can choose the default state at start, between true (allow telegrams flow) and false (block telegrams flow).</br> |
{ | ||
"name": "node-red-contrib-boolean-logic-ultimate", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "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.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
@@ -85,3 +85,15 @@ # node-red-contrib-boolean-logic-ultimate | ||
**INPUT MSG TO THE NODE** | ||
<code> | ||
msg.reset = true; | ||
</code> | ||
Resets all inputs to undefined. | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
# INTERRUPT FLOWS ULTIMATE | ||
@@ -100,4 +112,5 @@ | ||
<br/> | ||
In this other example, you can see the property "play" in action. This property allow you to replay the last previously stored message.<br/> | ||
This allow to save the state of a node and then replay it back whenever you want. | ||
This allow to save the state of a node and then replay it back whenever you want.<br/> | ||
@@ -112,2 +125,8 @@ <img src='https://raw.githubusercontent.com/Supergiovane/node-red-contrib-boolean-logic-ultimate/master/img/if1.png' width='60%'> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
# INVERT ULTIMATE | ||
@@ -118,2 +137,8 @@ | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
# FILTER ULTIMATE | ||
@@ -126,2 +151,8 @@ | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
# BLINKER ULTIMATE | ||
@@ -150,2 +181,7 @@ | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
@@ -165,2 +201,7 @@ # SIMPLE OUTPUT ULTIMATE | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
<br/> | ||
@@ -167,0 +208,0 @@ # INJECT ULTIMATE |
548695
0.17%574
1.95%221
22.78%