add possibility to start Plugins asynchron

If you are using many Plugins or Plugins with a long execution time you could execute them in an asynchronous manner.
It must be pointed out that enabling (0|1) this consume time, so don't use it for one rapid Plugin.
This commit is contained in:
JHCD 2015-07-30 18:55:36 +02:00
parent 3e7cc1f365
commit 30320b3c71
7 changed files with 59 additions and 8 deletions

View file

@ -22,7 +22,7 @@ from includes import doubleFilter # double alarm filter
#
def decode(freq, decoded):
"""
Export FMS Information from Multimon-NG RAW String and call alarmHandler.processAlarm()
Export FMS Information from Multimon-NG RAW String and call alarmHandler.processAlarmHandler()
@type freq: string
@param freq: frequency of the SDR Stick
@ -59,7 +59,7 @@ def decode(freq, decoded):
# processing the alarm
try:
from includes import alarmHandler
alarmHandler.processAlarm("FMS", freq, data)
alarmHandler.processAlarmHandler("FMS", freq, data)
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)

View file

@ -61,7 +61,7 @@ def isAllowed(poc_id):
#
def decode(freq, decoded):
"""
Export POCSAG Information from Multimon-NG RAW String and call alarmHandler.processAlarm()
Export POCSAG Information from Multimon-NG RAW String and call alarmHandler.processAlarmHandler()
@type freq: string
@param freq: frequency of the SDR Stick
@ -117,7 +117,7 @@ def decode(freq, decoded):
# processing the alarm
try:
from includes import alarmHandler
alarmHandler.processAlarm("POC", freq, data)
alarmHandler.processAlarmHandler("POC", freq, data)
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)

View file

@ -44,7 +44,7 @@ def removeF(zvei):
#
def decode(freq, decoded):
"""
Export ZVEI Information from Multimon-NG RAW String and call alarmHandler.processAlarm()
Export ZVEI Information from Multimon-NG RAW String and call alarmHandler.processAlarmHandler()
@type freq: string
@param freq: frequency of the SDR Stick
@ -71,7 +71,7 @@ def decode(freq, decoded):
# processing the alarm
try:
from includes import alarmHandler
alarmHandler.processAlarm("ZVEI", freq, data)
alarmHandler.processAlarmHandler("ZVEI", freq, data)
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)