package com.github.thomasfischl.aihome.controller;

import java.io.File;

import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;

public class SensorDataProcessorService extends AbstractPipelineService {

  private RuleEngine engine = new RuleEngine(new File("/tmp/rule.config"));

  public SensorDataProcessorService(AbstractPipelineService nextService) {
    super(nextService);
  }

  public void process(SensorDataGroup data) {
    SensorDataGroup newData = engine.evaluate(data);
    executeNextService(newData);
  }

}

@@ -354,11 +354,22 @@
 e(%22/
-tmp
+home/pi/aihome
 /rul

Use other location for rule.config file