From 8089a83c63f98ecb42405b8e4bafca20d027c0df Mon Sep 17 00:00:00 2001 From: Pablo Acosta-Serafini Date: Thu, 18 Feb 2021 12:07:10 -0500 Subject: [PATCH] timeswitch node: a) do not mark node as misconfigured if sunrise and sunset are not used and latitude/longitude are not given. b) support for specifying time zone when on and/or off times are not specified as sunrise and/or sunset. --- time/timeswitch/package.json | 1 + time/timeswitch/timeswitch.html | 635 +++++++++++++++++++++++++++++++- time/timeswitch/timeswitch.js | 9 +- 3 files changed, 638 insertions(+), 7 deletions(-) diff --git a/time/timeswitch/package.json b/time/timeswitch/package.json index acaf2bf0..9b699382 100644 --- a/time/timeswitch/package.json +++ b/time/timeswitch/package.json @@ -3,6 +3,7 @@ "version" : "0.0.8", "description" : "A Node-RED node to provide a simple timeswitch to schedule daily on/off events.", "dependencies" : { + "moment-timezone": "^0.5.33", "suncalc": "^1.8.0" }, "repository" : { diff --git a/time/timeswitch/timeswitch.html b/time/timeswitch/timeswitch.html index 910cca6a..7689f5bf 100644 --- a/time/timeswitch/timeswitch.html +++ b/time/timeswitch/timeswitch.html @@ -214,6 +214,605 @@ +
+ + +
+
@@ -280,6 +879,15 @@