BOSWatch/includes/alarmHandler.py
Bastian Schroll 26c9e23db8 rename pluginHander.py->alarmHandler.py
Method rename:
throwAlarm() ->processAlarm()
2015-05-22 21:32:37 +02:00

14 lines
354 B
Python

#!/usr/bin/python
# -*- coding: cp1252 -*-
import logging
from includes import globals # Global variables
from includes import pluginloader
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("[END ALARM]")