This page last changed on Dec 03, 2015 by fichrist.

Hi,

I am strugling with cron in the rules.
I installed the openremote pro ebox image on an ebox.
This rule works fine:

package org.openremote.controller.model.event

global org.openremote.controller.statuscache.CommandFacade execute;
global org.openremote.controller.statuscache.SwitchFacade switches;
global org.openremote.controller.statuscache.LevelFacade levels;
import org.openremote.controller.protocol.*;

rule "Buiten LED aan"

timer (cron: 0 30 15 * * ?) when eval (true) then

execute.command("Licht Schakelen - LED poort (ON)"); // this is the name of my KNX Command

end

but if I replace (as described in the cron tutorial)
(cron: 0 30 15 * * ?) with (cron: 0 30 15 * * 2-5)
no rules are executed anymore.

try: (cron: 0 30 15 ? * 2-5)

I have several that work like this.

Posted by niedejb at Dec 07, 2015 19:56
Document generated by Confluence on Jun 05, 2016 09:33