Socket
Socket
Sign inDemoInstall

node-red-contrib-sun-position

Package Overview
Dependencies
0
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

8

CHANGELOG.md
# node-red-contrib-sun-position
#### 1.0.7: bug fix
- general
- added additional caching of sun times calculation to reduce calculation load
- blind-control + clock-time
- fixed start delay setting causing no output at all
- i18n, spelling, documentation
#### 1.0.6: bug fix

@@ -5,0 +13,0 @@

8

nodes/clock-timer.js

@@ -662,3 +662,5 @@ /********************************************

if (code <= 3) {
if (node.startDelayTime) {
fill = 'red'; // block
} else if (code <= 3) {
fill = 'blue'; // override

@@ -754,3 +756,3 @@ } else if (code === 4 || code === 15 || code === 16) {

(ruleId !== previousData.usedRule)) &&
node.startDelayTime) {
!node.startDelayTime) {
msg.payload = node.payload.current;

@@ -988,3 +990,3 @@ msg.topic = topic;

});
}, node.startDelayTime || (30000 + Math.floor(Math.random() * 30000))); // 30s - 1min
}, node.startDelayTime || (20000 + Math.floor(Math.random() * 30000))); // 20s - 50s
}

@@ -991,0 +993,0 @@ }

@@ -57,3 +57,6 @@ /*

date = new Date();
} else {
date = new Date(date);
}
let ms = date.valueOf();

@@ -196,2 +199,3 @@ if (inUTC === false) {

SunCalc.getPosition = function (date, lat, lng, inUTC) {
// console.log(`getPosition date=${date.toISOString()} lat=${lat}, lng=${lng}, inUTC=${inUTC}`);
if (isNaN(lat)) {

@@ -479,2 +483,3 @@ throw new Error('latitude missing');

SunCalc.getSunTime = function (date, lat, lng, elevationAngle, inUTC) {
// console.log(`getSunTime date=${date.toISOString()} lat=${lat}, lng=${lng}, inUTC=${inUTC}, elevationAngle=${elevationAngle}`);
if (isNaN(lat)) {

@@ -558,2 +563,3 @@ throw new Error('latitude missing');

SunCalc.getMoonPosition = function (date, lat, lng, inUTC) {
// console.log(`getMoonPosition date=${date.toISOString()} lat=${lat}, lng=${lng}, inUTC=${inUTC}`);
if (isNaN(lat)) {

@@ -606,2 +612,3 @@ throw new Error('latitude missing');

SunCalc.getMoonIllumination = function (date, inUTC) {
// console.log(`getMoonIllumination date=${date.toISOString()}`);
const d = toDays(date, inUTC);

@@ -608,0 +615,0 @@ const s = sunCoords(d);

@@ -30,4 +30,8 @@ {

"ruleTimeMin": "frühestens (min)",
"ruleTimeDays": "nur an bestimmten Wochentagen",
"ruleTimeMonths": "nur an bestimmten Monaten",
"ruleDescription": "Beschreibung",
"ruleBlindLevel": "Rollladenposition",
"ruleTimeLimitStart": "nur von",
"ruleTimeLimitEnd": "bis",
"ruleLevelAbs": "↕ Absolut",

@@ -74,2 +78,3 @@ "ruleLevelMin": "⭳❗ Minimum (übersteuernd)",

"validForMonths": "gültige Monate",
"validForDates":"Gültigkeitsdauer (Jahr wird ignoriert)",
"specialDays": "spezielle tage",

@@ -111,4 +116,9 @@ "onlyEven": "nur gerade",

"level": "Behanghöhe",
"ruleTimeDays": "Wählen Sie Tage aus, an denen die Regel gültig sein soll",
"ruleTimeMonths": "Wählen Sie Monate aus, an denen die Regel gültig sein soll",
"autoTrigger": "automatisches triggern der Neuberechnung der Rollladenposition nach einer dynamischen Zeitspanne",
"startDelay": "verzögert die Ausgabe auf dem ersten Ausgang um die angegebene Zeit. Auf 0 setzen zum abschalten."
"startDelay": "0 - aus",
"startDelay2": "verzögert die Ausgabe auf dem ersten Ausgang um die angegebene Zeit. Auf 0 setzen zum abschalten.",
"start":"tt.mm",
"end":"tt.mm"
},

@@ -186,3 +196,2 @@ "text": {

"errors": {
"error": "Fehler: __message__",
"warning": "Warnung: __message__",

@@ -189,0 +198,0 @@ "internal": "Fehler: __message__",

@@ -29,2 +29,4 @@ {

"ruleTopic": "Topic:",
"ruleTimeLimitStart": "only from",
"ruleTimeLimitEnd": "to",
"time": "Zeit",

@@ -42,6 +44,14 @@ "name": "name",

"btnClear": "leeren",
"dialogtitle":"Regel bearbeiten",
"autoTrigger":"automatisch triggern",
"autoTrigger2":"dynamisch aber max aller",
"startDelay": "Ausgabe bei Start verzögern"
"dialogtitle": "Regel bearbeiten",
"autoTrigger": "automatisch triggern",
"autoTrigger2": "dynamisch aber max aller",
"startDelay": "Ausgabe bei Start verzögern",
"validForDays": "gültige Tage",
"validForMonths": "gültige Monate",
"validForDates":"Gültigkeitsdauer (Jahr wird ignoriert)",
"specialDays": "spezielle tage",
"onlyEven": "nur gerade",
"onlyOdd": "nur ungerade",
"onlyEvenDays": "nur gerade Tage",
"onlyOddDays": "nur ungerade Tage"
},

@@ -59,10 +69,13 @@ "placeholder": {

"btnClear": "alle Regeln entfernen",
"condoperand":"operand",
"time":"Zeit",
"offset":"Zeit offset",
"condoperand": "operand",
"time": "Zeit",
"offset": "Zeit offset",
"level": "Behanghöhe",
"ruleTimeDays": "wähle Tage an denen diese Regel gültig sein soll",
"ruleTimeMonths": "wähle Monate an denen diese Regel gültig sein soll",
"autoTrigger":"automatisches triggern der Neuberechnung der Rollladenposition nach einer dynamischen Zeitspanne",
"startDelay": "verzögert die Ausgabe auf dem ersten Ausgang um die angegebene Zeit. Auf 0 setzen zum abschalten."
"ruleTimeDays": "Wählen Sie Tage aus, an denen die Regel gültig sein soll",
"ruleTimeMonths": "Wählen Sie Monate aus, an denen die Regel gültig sein soll",
"autoTrigger": "automatisches triggern der Neuberechnung der Rollladenposition nach einer dynamischen Zeitspanne",
"startDelay": "0 - aus",
"startDelay2": "verzögert die Ausgabe auf dem ersten Ausgang um die angegebene Zeit. Auf 0 setzen zum abschalten.",
"start":"tt.mm",
"end":"tt.mm"
},

@@ -100,3 +113,2 @@ "text": {

"errors": {
"error": "Fehler: __message__",
"warning": "Warnung: __message__",

@@ -103,0 +115,0 @@ "internal": "Fehler: __message__",

@@ -117,3 +117,3 @@ {

"autoTrigger": "automatic triggers new calculation of the blind position in a dynamic changing time interval",
"startDelay": "0",
"startDelay": "0 - off",
"startDelay2": "delay any output to the first (or only) output on start (Node-Red start, Deplay, ...). Set to 0 to deactivate.",

@@ -120,0 +120,0 @@ "start":"tt.mm",

@@ -51,4 +51,4 @@ {

"specialDays": "special days",
"onlyEven": "even",
"onlyOdd": "odd",
"onlyEven": "only even",
"onlyOdd": "only odd",
"onlyEvenDays": "only even days",

@@ -75,3 +75,3 @@ "onlyOddDays": "only odd days"

"autoTrigger": "automatic triggers new calculation of the rule in a dynamic changing time interval",
"startDelay": "0",
"startDelay": "0 - off",
"startDelay2": "delay any output to the first (or only) output on start (Node-Red start, Deplay, ...). Set to 0 to deactivate.",

@@ -78,0 +78,0 @@ "start":"tt.mm",

{
"name": "node-red-contrib-sun-position",
"version": "1.0.6",
"version": "1.0.7",
"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

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc