node-red-contrib-boolean-logic-ultimate 1.0.58 → 1.0.60
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
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.0.60</b> March 2023<br/>
|
|
8
|
+
- FIX: Fixed some little issues to the Railways Node and fixed the youtube video not having audio https://youtu.be/iPVyiwDIUMg.
|
|
9
|
+
</p>
|
|
10
|
+
<p>
|
|
11
|
+
<b>Version 1.0.59</b> January 2023<br/>
|
|
12
|
+
- NEW: added msg.gatecount property, to dinamically change the gate input count.</br>
|
|
13
|
+
- Updated the README</br>
|
|
14
|
+
</p>
|
|
6
15
|
<p>
|
|
7
16
|
<b>Version 1.0.58</b> December 2022<br/>
|
|
8
17
|
- NEW: added string conversion from "home", "not_home" to boolean.</br>
|
|
@@ -30,7 +39,7 @@
|
|
|
30
39
|
</p>
|
|
31
40
|
<p>
|
|
32
41
|
<b>Version 1.0.52</b> Mai 2022<br/>
|
|
33
|
-
- NEW: Railway Switcher Ultimate: new node to switch the input message to an output pin (https://youtu.be/
|
|
42
|
+
- NEW: Railway Switcher Ultimate: new node to switch the input message to an output pin (https://youtu.be/iPVyiwDIUMg).</br>
|
|
34
43
|
- Updated README with samples of Railway Switch node.
|
|
35
44
|
</p>
|
|
36
45
|
<p>
|
package/README.md
CHANGED
|
@@ -96,10 +96,12 @@ The node can convert arbitrary input values to true/false. It supports Homeassis
|
|
|
96
96
|
|
|
97
97
|
**INPUT MSG TO THE NODE**
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
|Input msg|Description|
|
|
100
|
+
|--|--|
|
|
101
|
+
| msg.reset = true | Resets all saved input values to undefined |
|
|
102
|
+
| msg.inputcount | Changes the inputs count property. For example, <b>msg.inputcount = 3</b> Whenever you lower the inputcount from a higher number to a lower one, for example from 3 to 2, it's suggested to do a <b>msg.reset=true</b> to reset all stored input values. |
|
|
103
|
+
|
|
104
|
+
|
|
103
105
|
|
|
104
106
|
<br/>
|
|
105
107
|
<br/>
|
|
@@ -207,4 +207,11 @@
|
|
|
207
207
|
| Reject non boolean (true/false) input values | If checked, the node will accept only boolean true/false values. Otherwise, it will try to convert the payload value to a logic true/false boolean. |
|
|
208
208
|
| Delay evaluation (ms) | Delays the evaluation until this time (in milliseconds) is elapsed. Each time a message or "topic trigger message" (see **Trigger mode**) arrives, the delay is restarted. This option is useful for debouncing pourposes or simply for adding some delay. For example, you can turn on a light if the room is occupied for a long time, allowing people to fast transit repeatedly, without the need of turning the light on. Another example, if you have many sensors changing state rapidly, you can wait until these sensor reach a quiet state, then evaluate the inputs.|
|
|
209
209
|
|
|
210
|
+
<br/>
|
|
211
|
+
|
|
212
|
+
|Input msg|Description|
|
|
213
|
+
|--|--|
|
|
214
|
+
| msg.reset = true | Resets all saved input values to undefined |
|
|
215
|
+
| msg.inputcount | Changes the inputs count property. For example, <b>msg.inputcount = 3</b> Whenever you lower the inputcount from a higher number to a lower one, for example from 3 to 2, it's suggested to do a <b>msg.reset=true</b> to reset all stored input values.|
|
|
216
|
+
|
|
210
217
|
</script>
|
|
@@ -89,13 +89,24 @@ module.exports = function (RED) {
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
// 26/01/2023 you can change the input count from msg
|
|
93
|
+
if (msg.hasOwnProperty("inputcount")) {
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
setNodeStatus({ fill: "grey", shape: "dot", text: "Input count changed to " + msg.inputcount });
|
|
96
|
+
}, 500);
|
|
97
|
+
try {
|
|
98
|
+
node.config.inputCount = Number(msg.inputcount);
|
|
99
|
+
} catch (error) {
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
|
|
92
104
|
// 15/11/2021 inform user about undefined topic or payload
|
|
93
105
|
if (!msg.hasOwnProperty("topic") || msg.topic === undefined || msg.topic === null) {
|
|
94
106
|
setNodeStatus({ fill: "red", shape: "dot", text: "Received invalid topic!" });
|
|
95
107
|
return;
|
|
96
108
|
}
|
|
97
109
|
|
|
98
|
-
|
|
99
110
|
var topic = msg.topic;
|
|
100
111
|
const utils = require("./utils.js");
|
|
101
112
|
let sPayload = utils.fetchFromObject(msg, config.payloadPropName || "payload");
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<script type="text/x-red" data-template-name="RailwaySwitchUltimate">
|
|
43
43
|
<div class="form-row">
|
|
44
44
|
<b>Railway Switch 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>
|
|
45
|
-
   <span style="color:red"><i class="fa fa-youtube-play"></i> <a target="_blank" href="https://youtu.be/
|
|
45
|
+
   <span style="color:red"><i class="fa fa-youtube-play"></i> <a target="_blank" href="https://youtu.be/iPVyiwDIUMg"><u>Youtube Sample</u></a></span>
|
|
46
46
|
<br/>
|
|
47
47
|
<br/>
|
|
48
48
|
</div>
|
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.60",
|
|
4
4
|
"description": "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.",
|
|
5
5
|
"author": "Supergiovane (https://github.com/Supergiovane)",
|
|
6
6
|
"dependencies": {
|