[SOLVED] Check day of the week / between two hours

Hi everyone, I’m new at rules, so I was able to create a few simple rules like making HTTP requests etc.

So I was reading the documentation and I’m now able to make a rule using cron, but I don’t think cron is something I need this time. I want to check if my door is open at mondays between 8pm and 9pm. How can I do this? Searching in Google I found that there’s something like now.getDayOfWeek and similar functions. Where can I find the documentation for the now.?

See:

Thanks, I’ll take a look

Full documentation for now can be found DateTime (Joda time 2.2 API) and the DP Vincent linked to showssome examples of how to use them.

1 Like