mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-06 15:04:06 +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
|
|
@ -23,6 +23,11 @@ def checkFilters(data,typ,plugin):
|
|||
try:
|
||||
logging.debug("search Filter for %s to %s", typ, plugin)
|
||||
|
||||
#extract the correct data for filtering
|
||||
if typ == "FMS": data = data["fms"]
|
||||
if typ == "ZVEI": data = data["zvei"]
|
||||
if typ == "POC": data = data["poc"]
|
||||
|
||||
foundFilter = False
|
||||
for i in globals.filterList:
|
||||
if i["typ"] == typ and i["plugin"] == plugin:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue