jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Add possibility to supply sun and moon times via string #146

Closed jensrossbach closed 4 months ago

jensrossbach commented 4 months ago

This pull request extends the possibilities for providing date and time via a string from message properties, environment variables or context variables. With this change, it is additionally possible to supply a sun time, moon time or custom sun time in the input string.

Additionally, there are some improvements for the calculation of the between and outside operators, especially when dates are supplied and some other minor code improvements/refactorings.