seaside1 / jrule

openHAB Java Rules Engine
Eclipse Public License 2.0
29 stars 15 forks source link

notify for rule runs #152

Closed querdenker2k closed 1 year ago

querdenker2k commented 1 year ago

needed for metrics e. g. openhab_rule_runs_total{metric="openhab.core.metric.rules",openhab_core_metric="true",rule="Weather.weatherOverview",rulename="Weather overview",} 62.0

querdenker2k commented 1 year ago

@seime can you tell my what's wrong with the EventPublisher injection? I am getting an error: Unresolved requirement: Import-Package: org.openhab.core.automation.internal

seime commented 1 year ago

Not really sure. But it is referring to an internal package which probably isn't exported (a star import has been added; import org.openhab.core.automation.*; )

querdenker2k commented 1 year ago

Got it, imported another class from .internal. which i didn't recognized.

querdenker2k commented 1 year ago

sorry, class was just a copy paste from oh core. removed all unused code for jrule now.