Hi...
I'm running Raspbian Jessie and Openremote 2.6.
Here is my stripped-down rules file:
package org.openremote.controller.protocol
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.*;
import org.openremote.controller.model.event.*;
import java.lang.Float;rule "MBath to NIGHT"
timer (cron : 0 30 22 * * * ?) // 0th sec, 30th min, 10pm, any DOM, any DOW, no yr
when
eval(true)
then
execute.command("Set MBath to Night");
end
When I run start Openremote, I get these errors in the dev.log file:
2017-07-10 13:33:06,999 ERROR [Controller Definition File Watcher for Default Deployer]:
Rule definition 'modeler_rules.drl' could not be deployed. See errors below.2017-07-10 13:33:07,000 ERROR [Controller Definition File Watcher for Default Deployer]:
Protocol for timer does not exist 'cron : 0 30 22 * * * ?'
Where does the cron protocol come from? Do I need a global or import? Which one?
Thanks folks...
73,
Gary