node-red-contrib-boolean-logic-ultimate 1.1.16 → 1.1.18
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,14 @@
|
|
|
3
3
|
|
|
4
4
|
# CHANGELOG
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.1.18</b> September 2024<br/>
|
|
8
|
+
- Impulse node: changed the STOP procedure.</br>
|
|
9
|
+
</p>
|
|
10
|
+
<p>
|
|
11
|
+
<b>Version 1.1.17</b> September 2024<br/>
|
|
12
|
+
- Railway Switcher: fixed an issue caused by fixing an issue for backward compatibility of true/false input msg. The node was emitting 0 and 1 instead of true and false</br>
|
|
13
|
+
</p>
|
|
6
14
|
<p>
|
|
7
15
|
<b>Version 1.1.16</b> August 2024<br/>
|
|
8
16
|
- Railway Switcher: fixed an issue for backward compatibility of true/false input msg.</br>
|
|
@@ -90,7 +90,7 @@ module.exports = function (RED) {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
this.on('input', function (msg) {
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
const utils = require("./utils.js");
|
|
95
95
|
let sPayload = utils.fetchFromObject(msg, config.payloadPropName || "payload");
|
|
96
96
|
|
|
@@ -102,8 +102,8 @@ module.exports = function (RED) {
|
|
|
102
102
|
avvio();
|
|
103
103
|
|
|
104
104
|
} else if (sPayload === false) {
|
|
105
|
-
if (node.timerWait !== null) clearTimeout(node.timerWait);
|
|
106
105
|
node.isPlaying = false;
|
|
106
|
+
if (node.timerWait !== null) clearTimeout(node.timerWait);
|
|
107
107
|
node.setNodeStatus({ fill: "red", shape: "dot", text: "Forced stop" });
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -9,7 +9,7 @@ module.exports = function (RED) {
|
|
|
9
9
|
node.topic = config.topic || "Inject";
|
|
10
10
|
node.outputJSON = (config.outputJSON === undefined || config.outputJSON === '') ? '{ \n\t"payload":"hello",\n\t"topic":"1"\n}' : config.outputJSON;
|
|
11
11
|
setNodeStatus({ fill: "grey", shape: "dot", text: "Waiting" });
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
RED.httpAdmin.post("/InjectUltimate/:id", RED.auth.needsPermission("InjectUltimate.write"), function (req, res) {
|
|
15
15
|
var node = RED.nodes.getNode(req.params.id);
|
|
@@ -38,14 +38,10 @@ module.exports = function (RED) {
|
|
|
38
38
|
node.alignStatus();
|
|
39
39
|
|
|
40
40
|
this.on("input", function (msg) {
|
|
41
|
-
// Backward compatibility
|
|
42
|
-
// Pass msg.payload = false switches the msg input to the UPPER output
|
|
43
|
-
// Pass msg.payload = true switches the msg input to the LOWER output
|
|
44
|
-
if (msg.payload === false) msg.payload = '0';
|
|
45
|
-
if (msg.payload === true) msg.payload = '1';
|
|
46
41
|
|
|
47
42
|
var sIncomingTopic = "";
|
|
48
43
|
if (msg.hasOwnProperty("topic")) {
|
|
44
|
+
|
|
49
45
|
// 06/11/2019
|
|
50
46
|
if (!msg.hasOwnProperty("topic") || msg.topic === undefined)
|
|
51
47
|
msg.topic = "NoTopicReceived";
|
|
@@ -54,6 +50,12 @@ module.exports = function (RED) {
|
|
|
54
50
|
""
|
|
55
51
|
); // Cut unwanted Characters
|
|
56
52
|
if (sIncomingTopic === node.sTriggerTopic) {
|
|
53
|
+
// Backward compatibility
|
|
54
|
+
// Pass msg.payload = false switches the msg input to the UPPER output
|
|
55
|
+
// Pass msg.payload = true switches the msg input to the LOWER output
|
|
56
|
+
if (msg.payload === false) msg.payload = '0';
|
|
57
|
+
if (msg.payload === true) msg.payload = '1';
|
|
58
|
+
|
|
57
59
|
const utils = require("./utils.js");
|
|
58
60
|
let sPayload = utils.fetchFromObject(
|
|
59
61
|
msg,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-boolean-logic-ultimate",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
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": {
|