timeswitch node: time zone support; do not mark as misconfigured when sunrise/sunset not used and lat/lon not given (#757)

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

* Replaced moment dependency with spacetime

* Timezone defaults to UTC for compatibility with previous node version
This commit is contained in:
Pablo Acosta-Serafini
2021-02-26 09:38:28 -05:00
committed by GitHub
parent c368e3bcd4
commit d69da74843
3 changed files with 649 additions and 7 deletions

View File

@@ -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" : {
"spacetime": "^6.12.5",
"suncalc": "^1.8.0"
},
"repository" : {