Thanks to the help from forum members I’ve my first knowledge hurdle and laid out the framework for a custom app.
Now I’m curious what is the best way to add a time constraint. In Rule Machine it is easy to add sunrise/sunset to the triggers. Without using RM how would you add similar functionality to a custom app?
I can do something like this:
def currentTime = new Date()
def isNight = (currentTime < location.sunrise || currentTime > location.sunset)
Is there a better way in HE? Is there an input type I can use to add a configuration item or would that need to be made from scratch?
For my current app it isn’t difficult to add the above code but I don’t want to get into a bad habit of there is something better.