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

node-red-contrib-sun-position

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-sun-position - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

19

CHANGELOG.md
# node-red-contrib-sun-position
#### 1.0.3: bug fix
- blind-control
- fixed maximum rules #96
#### 1.0.2: bug fix
- time-comp
- fixed #93
- general
- added random offset (not fully tested) #90
- Improve display of days of the week and months (first try) #91
#### 1.0.1: bug fix
- time-inject
- fix downward compatibility for older node settings
#### 1.0.0: mayor release

@@ -4,0 +23,0 @@

30

nodes/clock-timer.js

@@ -37,3 +37,3 @@ /********************************************

if (hlp.isValidDate(dto)) {
node.debug(dto.toISOString());
// node.debug(dto.toISOString());
return dto;

@@ -56,3 +56,3 @@ }

function evalTempData(node, type, value, data, tempData) {
node.debug(`evalTempData type=${type} value=${value} data=${data}`);
// node.debug(`evalTempData type=${type} value=${value} data=${data}`);
const name = `${type}.${value}`;

@@ -184,3 +184,3 @@ if (data === null || typeof data === 'undefined') {

}
node.debug(`overwrite exit true node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
// node.debug(`overwrite exit true node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
}

@@ -195,3 +195,3 @@

function checkTCPosOverwrite(node, msg, now) {
node.debug(`checkTCPosOverwrite act=${node.timeClockData.overwrite.active} `);
// node.debug(`checkTCPosOverwrite act=${node.timeClockData.overwrite.active} `);
let priook = false;

@@ -271,6 +271,6 @@ const prioMustEqual = hlp.getMsgBoolValue2(msg, ['exactPriority', 'exactPrivilege']);

setOverwriteReason(node);
node.debug(`overwrite exit true node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
// node.debug(`overwrite exit true node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
return true;
}
node.debug(`overwrite exit false node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
// node.debug(`overwrite exit false node.timeClockData.overwrite.active=${node.timeClockData.overwrite.active}`);
return false;

@@ -442,3 +442,3 @@ }

function checkRules(node, msg, now, tempData) {
node.debug('checkRules ----------------------------------------------------------------------------');
// node.debug('checkRules --------------------');
const livingRuleData = {};

@@ -451,3 +451,3 @@ const nowNr = now.getTime();

prepareRules(node, msg, tempData);
node.debug(`checkRules nowNr=${nowNr}, rules.count=${node.rules.count}, rules.lastUntil=${node.rules.lastUntil}`); // {colors:true, compact:10}
// node.debug(`checkRules nowNr=${nowNr}, rules.count=${node.rules.count}, rules.lastUntil=${node.rules.lastUntil}`); // {colors:true, compact:10}

@@ -522,3 +522,3 @@ const fktCheck = (rule, cmp) => {

if (res) {
node.debug('2. ruleSel ' + util.inspect(res, { colors: true, compact: 10, breakLength: Infinity }));
// node.debug('2. ruleSel ' + util.inspect(res, { colors: true, compact: 10, breakLength: Infinity }));
ruleSel = res;

@@ -552,3 +552,3 @@ break;

// ruleSel.text = '';
node.debug('ruleSel ' + util.inspect(ruleSel, {colors:true, compact:10, breakLength: Infinity }));
// node.debug('ruleSel ' + util.inspect(ruleSel, {colors:true, compact:10, breakLength: Infinity }));
livingRuleData.id = ruleSel.pos;

@@ -596,4 +596,4 @@ livingRuleData.name = ruleSel.name;

node.reason.description = RED._('clock-timer.reasons.'+name, data);
node.debug(`checkRules data=${util.inspect(data, { colors: true, compact: 10, breakLength: Infinity })}`);
node.debug(`checkRules end pos=${node.payload.current} reason=${node.reason.code} description=${node.reason.description} all=${util.inspect(livingRuleData, { colors: true, compact: 10, breakLength: Infinity })}`);
// node.debug(`checkRules data=${util.inspect(data, { colors: true, compact: 10, breakLength: Infinity })}`);
// node.debug(`checkRules end pos=${node.payload.current} reason=${node.reason.code} description=${node.reason.description} all=${util.inspect(livingRuleData, { colors: true, compact: 10, breakLength: Infinity })}`);
return livingRuleData;

@@ -616,3 +616,3 @@ }

node.reason.description = RED._('clock-timer.reasons.default');
node.debug(`checkRules end pos=${node.payload.current} reason=${node.reason.code} description=${node.reason.description} all=${util.inspect(livingRuleData, { colors: true, compact: 10, breakLength: Infinity })}`);
// node.debug(`checkRules end pos=${node.payload.current} reason=${node.reason.code} description=${node.reason.description} all=${util.inspect(livingRuleData, { colors: true, compact: 10, breakLength: Infinity })}`);
return livingRuleData;

@@ -710,3 +710,3 @@ }

node.debug(`--- clock-timer - input msg.topic=${msg.topic} msg.payload=${msg.payload}`);
node.debug('input ' + util.inspect(msg, { colors: true, compact: 10, breakLength: Infinity })); // Object.getOwnPropertyNames(msg)
// node.debug('input ' + util.inspect(msg, { colors: true, compact: 10, breakLength: Infinity })); // Object.getOwnPropertyNames(msg)
if (!this.positionConfig) {

@@ -748,3 +748,3 @@ // node.error(RED._('node-red-contrib-sun-position/position-config:errors.pos-config'));

node.debug(`result manual=${node.timeClockData.overwrite.active} reasoncode=${node.reason.code} description=${node.reason.description}`);
// node.debug(`result manual=${node.timeClockData.overwrite.active} reasoncode=${node.reason.code} description=${node.reason.description}`);
timeCtrl.reason = node.reason;

@@ -751,0 +751,0 @@ timeCtrl.timeClock = node.timeClockData;

{
"name": "node-red-contrib-sun-position",
"version": "1.0.2",
"version": "1.0.3",
"description": "NodeRED nodes to get sun and moon position",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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