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.7 to 1.0.8

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # node-red-contrib-sun-position

- time-inject
- fixes that time inject will do a recalculation every 1 ms (Problem can only occurs if the time constraints are used.) #106
- blind-control + clock-time
- documentation
- i18n
#### 1.0.7: bug fix
- general

@@ -7,0 +16,0 @@ - added additional caching of sun times calculation to reduce calculation load

6

nodes/clock-timer.js

@@ -611,3 +611,7 @@ /********************************************

this.startDelayTime = parseFloat(config.startDelayTime);
if (isNaN(this.startDelayTime) || this.startDelayTime < 10) { delete this.startDelayTime; }
if (isNaN(this.startDelayTime) || this.startDelayTime < 10) {
delete this.startDelayTime;
} else {
this.startDelayTime = Math.min(this.startDelayTime, 2147483646);
}

@@ -614,0 +618,0 @@ if (config.autoTrigger) {

@@ -75,2 +75,4 @@ {

"startDelay": "Ausgabe bei Start verzögern",
"timeconstraintshow": "zeige zusätzliche Zeitbeschränkungen",
"timeconstrainthide": "verberge zusätzliche Zeitbeschränkungen",
"validForDays": "gültige Tage",

@@ -77,0 +79,0 @@ "validForMonths": "gültige Monate",

@@ -47,2 +47,4 @@ {

"startDelay": "Ausgabe bei Start verzögern",
"timeconstraintshow": "zeige zusätzliche Zeitbeschränkungen",
"timeconstrainthide": "verberge zusätzliche Zeitbeschränkungen",
"validForDays": "gültige Tage",

@@ -49,0 +51,0 @@ "validForMonths": "gültige Monate",

@@ -75,2 +75,4 @@ {

"startDelay": "delay output on start",
"timeconstraintshow": "show additional time constraints",
"timeconstrainthide": "hide additional time constraints",
"validForDays": "valid days",

@@ -77,0 +79,0 @@ "validForMonths": "valid months",

@@ -47,2 +47,4 @@ {

"startDelay": "delay output on start",
"timeconstraintshow": "show additional time constraints",
"timeconstrainthide": "hide additional time constraints",
"validForDays": "valid days",

@@ -49,0 +51,0 @@ "validForMonths": "valid months",

12

nodes/time-inject.js

@@ -151,3 +151,3 @@ /********************************************

try {
node.debug('needsRecalc');
node.debug('performing a recalc of the next inject time');
doCreateTimeout(node);

@@ -266,6 +266,9 @@ } catch (err) {

}
// there is a limitation of nodejs that the maximum setTimeout time
// should not more then 2147483647 ms (24.8 days).
millisec = Math.min((millisec - 129600000), 2147483646);
node.debug('next inject is far far away, plan a inject time recalc in ' + millisec + ' ms');
node.timeOutObj = setTimeout(() => {
doTimeRecalc();
}, millisec - 129600000); // 1,5 days before
}, millisec); // 1,5 days before
fill = 'blue';

@@ -458,2 +461,5 @@ } else {

if (config.once) {
if (config.onceDelay > 2147483) {
config.onceDelay = 2147483;
}
node.status({

@@ -460,0 +466,0 @@ fill: 'yellow',

@@ -263,3 +263,3 @@ /********************************************

node.lastMsgObj.reSendMsgDelayed = false;
const millis = getScheduleTime(time) + 10;
const millis = Math.min(getScheduleTime(time) + 10, 2147483646);
node.debug('timeout for resend last message ' + time + ' is in ' + millis + 'ms');

@@ -266,0 +266,0 @@ node.timeOutObj = setTimeout(() => {

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

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

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

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 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