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.50 to 1.0.51

12

boolean-logic-ultimate/BlinkerUltimate.js

@@ -15,3 +15,3 @@ module.exports = function (RED) {

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -22,2 +22,3 @@ }

if (config.initializewith !== undefined && config.initializewith === "1") {
if (node.tBlinker !== null) clearInterval(node.tBlinker);
node.tBlinker = setInterval(handleTimer, node.blinkfrequency); // Start the timer that handles the queue of telegrams

@@ -73,5 +74,5 @@ node.isBlinking = true;

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
if (typeof value === 'boolean') {

@@ -88,4 +89,3 @@ res = value;

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -92,0 +92,0 @@ else {

@@ -20,3 +20,3 @@ module.exports = function (RED) {

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -225,3 +225,3 @@ }

}
setTimeout(() => { setNodeStatus({ fill: "green", shape: "ring", text: "Initialized " + nTotalDummyToCreate + " undefined inputs with " + node.sInitializeWith }); }, 4000)
let t = setTimeout(() => { setNodeStatus({ fill: "green", shape: "ring", text: "Initialized " + nTotalDummyToCreate + " undefined inputs with " + node.sInitializeWith }); }, 4000)
}

@@ -283,4 +283,4 @@ }

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/

@@ -297,4 +297,3 @@ if (typeof value === 'boolean') {

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -301,0 +300,0 @@ else {

@@ -8,3 +8,3 @@ module.exports = function (RED) {

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -51,4 +51,4 @@ }

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/

@@ -65,4 +65,3 @@ if (typeof value === 'boolean') {

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -69,0 +68,0 @@ else {

@@ -15,3 +15,3 @@

node.setNodeStatus = ({ fill, shape, text }) => {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -18,0 +18,0 @@ }

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

setNodeStatus({ fill: "green", shape: "dot", text: "Pin1:true, Pin2:false, Pin3:" + node.curVal.toString() + " (next " + (!node.curVal).toString() + ")" });
var msgTrue = { payload: true, topic: node.topic };
var msgFalse = { payload: false, topic: node.topic };
var msgToggled = { payload: node.curVal, topic: node.topic };
let msgTrue = { payload: true, topic: node.topic };
let msgFalse = { payload: false, topic: node.topic };
let msgToggled = { payload: node.curVal, topic: node.topic };
node.curVal = !node.curVal;

@@ -38,3 +38,3 @@ node.send([msgTrue, msgFalse, msgToggled]);

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -41,0 +41,0 @@ }

@@ -13,3 +13,3 @@ module.exports = function (RED) {

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -63,3 +63,3 @@ }

// Restore previous status
setTimeout(() => {
let t = setTimeout(() => {
if (node.bInviaMessaggio) {

@@ -101,4 +101,4 @@ setNodeStatus({ fill: "green", shape: "dot", text: "-> pass" });

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/

@@ -115,4 +115,3 @@ if (typeof value === 'boolean') {

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -119,0 +118,0 @@ else {

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

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -51,4 +51,4 @@ }

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/

@@ -65,4 +65,3 @@ if (typeof value === 'boolean') {

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -69,0 +68,0 @@ else {

@@ -21,3 +21,3 @@ module.exports = function(RED) {

{
var dDate = new Date();
let dDate = new Date();
node.status({fill: fill,shape: shape,text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")"})

@@ -24,0 +24,0 @@ }

@@ -8,3 +8,3 @@ module.exports = function (RED) {

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -11,0 +11,0 @@ }

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

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -12,0 +12,0 @@ }

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

function setNodeStatus({ fill, shape, text }) {
var dDate = new Date();
let dDate = new Date();
node.status({ fill: fill, shape: shape, text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")" })

@@ -27,3 +27,3 @@ }

var msgOUT = RED.util.cloneMessage(msg);
let msgOUT = RED.util.cloneMessage(msg);
try {

@@ -42,4 +42,4 @@ msgOUT.payload = node.valueToToggle;

function ToBoolean(value) {
var res = false;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
let res = false;
let decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/

@@ -56,4 +56,3 @@ if (typeof value === 'boolean') {

if (decimal.test(value)) {
var v = parseFloat(value);
res = v != 0;
res = parseFloat(value) != 0;
}

@@ -60,0 +59,0 @@ else {

# node-red-contrib-boolean-logic-ultimate
[![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square)](https://www.paypal.me/techtoday)
# CHANGELOG
<p>
<b>Version 1.0.51</b> February 2022<br/>
- Blinker Ultimate: fixed minor problem with an orphan timer.</br>
- Better scoping of some vars, to leave the memory garbace collector to get rid of unused references.</br>
</p>
<p>
<b>Version 1.0.50</b> February 2022<br/>

@@ -6,0 +13,0 @@ - NEW: Added Youtube example for each node. You can find the link in the config window of each one and hede the playlist https://youtube.com/playlist?list=PL9Yh1bjbLAYoRH4IyQB7EL5srHAihiKpy.</br>

{
"name": "node-red-contrib-boolean-logic-ultimate",
"version": "1.0.50",
"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.",
"version": "1.0.51",
"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 ON and OFF values.",
"author": "Supergiovane (https://github.com/Supergiovane)",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -13,7 +13,4 @@ # node-red-contrib-boolean-logic-ultimate

A set of Node-RED enhanced boolean logic, with persisten values after reboot and more.
A set of Node-RED enhanced boolean logic and utility nodes, with persistent values after reboot. Compatible also with Homeassistant ON and OFF values.
> Welcome! First of all thank you for your interest in my nodes. This is a set of logic nodes, to overcome the simplicity of the default node-red boolean logic nodes.
Hope you enjoy that and if you're in trouble, please ask!
<br/>

@@ -20,0 +17,0 @@ <br/>

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