The title is a quote from Larry Wall, the creator of the language perl. It's a very good quote to live by in general when designing software (and other systems), and I would claim it's applicable to Rule Machine for the following reason.
I wanted to set up a rule that triggers once a week. In the context of the quote this is one of the "hard things". You've made the easy things easy with Rule Machine, how about making some of the hard things possible?
Granted, I have a HUGE amount of experience scheduling tasks with Unix and Linux cron, for example a weekly log cleanup on a system was something I did fairly regularly. "0 6 * * 0" will get you there.
I'd see two possible ways to do this.
-
The "Hubitat" way would be to add a couple more input fields: one for an optional day of week, and while you're at it, add another for a single day of month to allow a task to run once a month.
-
The "Nerd" way would be to just let us put in a cron string and be done with it. That's a little bit on the dangerous side admittedly, because while they are powerful, they are also incredibly easy to get wrong.
I can solve my problem very simply by just putting together a quick user app. But that's like taking a 12 gauge shotgun to kill a mosquito - it gets the job done but I shouldn't need to do it this way.