mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 14:07:25 +00:00
add filter check to alarm
add filter.checkFilters() to alarmHandler.processAlarm()
This commit is contained in:
parent
206463f8e9
commit
02a84b6ec9
2 changed files with 11 additions and 4 deletions
|
|
@ -7,8 +7,10 @@ from includes import globals # Global variables
|
|||
|
||||
def processAlarm(typ,freq,data):
|
||||
logging.debug("[ ALARM ]")
|
||||
for name, plugin in globals.pluginList.items():
|
||||
logging.debug("call Plugin: %s", name)
|
||||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", name)
|
||||
for pluginName, plugin in globals.pluginList.items():
|
||||
from includes import filter
|
||||
if filter.checkFilters(data,typ,pluginName):
|
||||
logging.debug("call Plugin: %s", pluginName)
|
||||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", pluginName)
|
||||
logging.debug("[END ALARM]")
|
||||
Loading…
Add table
Add a link
Reference in a new issue