In order to set an alarm from the GUI I would like to pass a variable as the argument to cron.
This works:
rule "Wake up"
when
Time cron "00 00 06 * * ?"
then
// ...
end
This does not work:
var morning = "00 00 06 * * ?"
rule "Wake up"
when
Time cron morning
then
// ...
end
Should this be possible to do?