node-red-contrib-boolean-logic-ultimate 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# node-red-contrib-boolean-logic-ultimate
|
|
2
2
|
[](https://www.paypal.me/techtoday)
|
|
3
3
|
|
|
4
|
+
<p>
|
|
5
|
+
<b>Version 1.0.42</b> February 2022<br/>
|
|
6
|
+
- Boolean Logic Ultimate: Added the "d" indication, in the node's name, when the delay option is enabled.</br>
|
|
7
|
+
- Boolean Logic Ultimate: Refined the UI.</br>
|
|
8
|
+
</p>
|
|
4
9
|
<p>
|
|
5
10
|
<b>Version 1.0.41</b> January 2022<br/>
|
|
6
11
|
- Boolean Logic Ultimate: UI optimization and remove warning triangle if the delay is not set.</br>
|
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ Set the number of different topics to be evaluated. The node will output a messa
|
|
|
69
69
|
*Remember: each input topic must be different. For example, if you set this field to 3, the node expects 3 different topics.*
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
**Filter output
|
|
72
|
+
**Filter output**
|
|
73
73
|
|
|
74
74
|
- Output both 'true' and 'false' results: Standard behaviour, the node will output <b>true</b> and <b>false</b> whenever it receives an input and calculate the boolean logics as output.
|
|
75
75
|
- Output only 'true' results: whenever the node receives an input, it outputs a payload <b>true</b> only if the result of the logic is true. <b>False</b> results are filtered out.
|
|
@@ -34,9 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
restrictinputevaluation: { value: true },
|
|
37
|
-
delayEvaluation: {
|
|
38
|
-
value: 0
|
|
39
|
-
}
|
|
37
|
+
delayEvaluation: { value: 0 }
|
|
40
38
|
},
|
|
41
39
|
inputs: 1,
|
|
42
40
|
outputs: 3,
|
|
@@ -63,8 +61,14 @@
|
|
|
63
61
|
let label = "";
|
|
64
62
|
let filtered = this.filtertrue == "both" ? "" : "f";
|
|
65
63
|
let trigger = "";
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
let delayEvaluation = "";
|
|
65
|
+
if (this.delayEvaluation === 0 || this.delayEvaluation === "" || this.delayEvaluation === undefined) {
|
|
66
|
+
delayEvaluation = "";
|
|
67
|
+
} else {
|
|
68
|
+
delayEvaluation = "d(" + this.delayEvaluation + ")";
|
|
69
|
+
}
|
|
70
|
+
if (typeof this.outputtriggeredby !== "undefined") trigger = this.outputtriggeredby === "all" ? "" : "t(" + this.triggertopic + ")";
|
|
71
|
+
label = "Gate " + this.inputCount + filtered + delayEvaluation + trigger;
|
|
68
72
|
if (this.name !== undefined && this.name.length > 0) {
|
|
69
73
|
label += " (" + this.name + ")";
|
|
70
74
|
}
|
|
@@ -122,7 +126,7 @@
|
|
|
122
126
|
<label for="node-input-inputCount"><i class="fa fa-step-forward"></i> Inputs count</label>
|
|
123
127
|
<input style="width:100px" type="text" id="node-input-inputCount" placeholder="Inputs count, for example: 2">
|
|
124
128
|
</div>
|
|
125
|
-
<div class="form-tips" style="margin-top: 8px;background-color:
|
|
129
|
+
<div class="form-tips" style="margin-top: 8px;background-color:lightgreen;text-align:center">Inputs count: each incoming msg.topic represents one input.</div>
|
|
126
130
|
<br/>
|
|
127
131
|
<div class="form-row">
|
|
128
132
|
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
|
|
@@ -133,7 +137,7 @@
|
|
|
133
137
|
<input type="text" id="node-input-topic" placeholder="Node's own topic">
|
|
134
138
|
</div>
|
|
135
139
|
<div class="form-row">
|
|
136
|
-
<label for="node-input-filtertrue"><i class="fa fa-filter"></i> Filter output
|
|
140
|
+
<label for="node-input-filtertrue"><i class="fa fa-filter"></i> Filter output</label>
|
|
137
141
|
<select type="text" id="node-input-filtertrue" placeholder="Filter">
|
|
138
142
|
<option value="both">Output both 'true' and 'false' results</option>
|
|
139
143
|
<option value="onlytrue">Output only 'true' results</option>
|
|
@@ -151,8 +155,8 @@
|
|
|
151
155
|
<input type="text" id="node-input-triggertopic" placeholder="Input topic">
|
|
152
156
|
</div>
|
|
153
157
|
<div class="form-row">
|
|
154
|
-
<label for="node-input-sInitializeWith"><i class="fa fa-home"></i> If input states are undefined at boot</label>
|
|
155
|
-
<select type="text" id="node-input-sInitializeWith" placeholder="">
|
|
158
|
+
<label style="width:250px" for="node-input-sInitializeWith"><i class="fa fa-home"></i> If input states are undefined at boot</label>
|
|
159
|
+
<select style="width:170px" type="text" id="node-input-sInitializeWith" placeholder="">
|
|
156
160
|
<option value="WaitForPayload">Leave undefined</option>
|
|
157
161
|
<option value="false">Initialize all with False</option>
|
|
158
162
|
<option value="true">Initialize all with True</option>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-boolean-logic-ultimate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.42",
|
|
4
4
|
"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
5
|
"author": "Supergiovane (https://github.com/Supergiovane)",
|
|
6
6
|
"dependencies": {
|