biddster / node-red-contrib-time-range-switch

A simple Node-RED node that routes messages depending on the time.
17 stars 8 forks source link

Enhancement request: offset time on solar events #12

Closed oakbrad closed 7 years ago

oakbrad commented 7 years ago

Hi, thank you so much for this wonderful node! I am using it to control lighting in my smart home and it is really helpful.

I would love the ability to define the time range with an offset for the suncalc events. For example, set the start to sunset with an offset of -60 minutes would open the range one hour before that event.

This would allow a lot more flexibility to defining the range.

I noticed "bigtimer" has a solar offset if that's helpful, but that node is a lot different than yours.

biddster commented 7 years ago

Fixed in 0.5.0.

oakbrad commented 7 years ago

Wow thank you!!