Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-boolean-logic-ultimate

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-boolean-logic-ultimate - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

17

boolean-logic-ultimate/BlinkerUltimate.js

@@ -6,9 +6,9 @@ module.exports = function (RED) {

node.tBlinker = null;// Timer Blinker
node.blinkfrequency = config.blinkfrequency === undefined ? 500 : config.blinkfrequency;
node.blinkfrequency = config.blinkfrequency === undefined ? 500 : Number(config.blinkfrequency);
node.curPayload = false;
node.isBlinking = false; // Is the timer running?
node.stopbehaviorPIN1 = config.stopbehaviorPIN1 === undefined ? 0 : config.stopbehaviorPIN1;
node.stopbehaviorPIN1 = node.stopbehaviorPIN1 == 0 ? false : true;
node.stopbehaviorPIN1 = config.stopbehaviorPIN1 === undefined ? "0" : config.stopbehaviorPIN1;
node.stopbehaviorPIN1 = node.stopbehaviorPIN1 == "0" ? false : true;
node.stopbehaviorPIN2 = config.stopbehaviorPIN2 === undefined ? 0 : config.stopbehaviorPIN2;
node.stopbehaviorPIN2 = node.stopbehaviorPIN2 == 0 ? false : true;
node.stopbehaviorPIN2 = node.stopbehaviorPIN2 == "0" ? false : true;

@@ -20,3 +20,10 @@ function setNodeStatus({ fill, shape, text }) {

setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" });
// 12/04/2021 Autostart blinker?
if (config.initializewith !== undefined && config.initializewith === "1") {
node.tBlinker = setInterval(handleTimer, node.blinkfrequency); // Start the timer that handles the queue of telegrams
node.isBlinking = true;
setNodeStatus({ fill: "green", shape: "dot", text: "-> Autostarted" });
} else {
setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" });
}

@@ -23,0 +30,0 @@ node.on('input', function (msg) {

@@ -7,5 +7,11 @@ module.exports = function (RED) {

setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" });
node.bInviaMessaggio = true; // Send the message or not
node.currentMsg = {}; // Stores current payload
node.sTriggerTopic = node.config.triggertopic.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '') || "trigger"; // Topic controlling the bInviaMessaggio
node.bInviaMessaggio = (node.config.initializewith === undefined || node.config.initializewith === "1") ? true : false; // Send the message or not
if (node.bInviaMessaggio) {
setNodeStatus({ fill: "green", shape: "dot", text: "-> pass" });
} else {
setNodeStatus({ fill: "red", shape: "dot", text: "|| stop" });
}
this.on('input', function (msg) {

@@ -12,0 +18,0 @@ var sIncomingTopic = "";

@@ -5,3 +5,9 @@ # node-red-contrib-boolean-logic-ultimate

<p>
<b>Version 1.0.25/b> February 2021<br/>
<b>Version 1.0.26</b> April 2021<br/>
- NEW: Interrupt Flow: now you can choose the default state at start, between true (allow telegrams flow) and false (block telegrams flow).</br>
- Blinker: fixed bug in default dropdownbox selection whenever the node was dropped on the flow.</br>
- NEW: Blinker: added autostart option.</br>
</p>
<p>
<b>Version 1.0.25</b> February 2021<br/>
- BlinkerUltimate: added second output pin that emits an inverted payload.</br>

@@ -8,0 +14,0 @@ - BlinkerUltimate: Now you can select to send true or false on both pins once the blinker has been stopped.</br>

{
"name": "node-red-contrib-boolean-logic-ultimate",
"version": "1.0.25",
"version": "1.0.26",
"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)",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc