mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-06 23:13:37 +00:00
insert a Lots of Docu in includes
This commit is contained in:
parent
c22400420a
commit
5394bceedf
9 changed files with 255 additions and 30 deletions
|
|
@ -1,13 +1,38 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: cp1252 -*-
|
||||
|
||||
import logging
|
||||
"""
|
||||
Handler for the Filter and Plugins at an Alarm
|
||||
|
||||
@author: Bastian Schroll
|
||||
|
||||
@requires: none
|
||||
"""
|
||||
|
||||
import logging # Global logger
|
||||
|
||||
from includes import globals # Global variables
|
||||
|
||||
|
||||
def processAlarm(typ,freq,data):
|
||||
"""
|
||||
Function to process Filters and Plugins at Alarm
|
||||
|
||||
@type typ: string (FMS|ZVEI|POC)
|
||||
@param typ: Typ of the dataset
|
||||
@type freq: string
|
||||
@param freq: frequency of the SDR Stick
|
||||
@type data: map of data (structure see interface.txt)
|
||||
@param data: Contains the parameter
|
||||
|
||||
@requires: active Plugins in pluginList
|
||||
|
||||
@return: nothing
|
||||
@exception: Exception if Alarm processing failed
|
||||
"""
|
||||
try:
|
||||
logging.debug("[ ALARM ]")
|
||||
#Go to all Plugins in pluginList
|
||||
for pluginName, plugin in globals.pluginList.items():
|
||||
|
||||
#if enabled use RegEx-Filter
|
||||
|
|
@ -18,7 +43,7 @@ def processAlarm(typ,freq,data):
|
|||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", pluginName)
|
||||
|
||||
else:
|
||||
else: #RegEX Filter off - Call Plugin direct
|
||||
logging.debug("call Plugin: %s", pluginName)
|
||||
plugin.run(typ,freq,data)
|
||||
logging.debug("return from: %s", pluginName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue