ok got it working
having this log :
that’s the logreader device
{
"id": "timer-device",
"name": "Timer Device",
"class": "LogWatcher",
"file": "/home/recordingservice/timer.log",
"attributes": [
{
"name": "date",
"type": "string"
},
{
"name": "time",
"type": "string"
},
],
"lines": [
{
"match": "([0-9]+.[0-9]+.[0-9]+) [0-9]+:[0-9]+ - naechster Timer",
"date": "$1"
},
{
"match": "[0-9]+.[0-9]+.[0-9]+ ([0-9]+:[0-9]+) - naechster Timer",
"time": "$1"
},
]
},
looks like that at the variables menu:
next step would be to compare the date and time with the actual system date and time.
for that you need a time and a date device that you can create with a shell sensor and the date command.
{
"id": "system-date",
"name": "System Date",
"class": "ShellSensor",
"attributeName": "date",
"attributeType": "string",
"attributeUnit": "",
"command": "date +%d-%m-%Y",
"interval": 60000
},
{
"id": "system-time",
"name": "System Time",
"class": "ShellSensor",
"attributeName": "time",
"attributeType": "string",
"attributeUnit": "",
"command": "date +%H:%M",
"interval": 60000
},
now you can create rules like :
IF $timer-device.date = $system-date.date and $timer-device.time = $system-time.time THEN do some stuff
hope that the comparison in the rule works, haven’t testet it myself right now.