mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-21 06:13:39 +00:00
rename pluginHander.py->alarmHandler.py
Method rename: throwAlarm() ->processAlarm()
This commit is contained in:
parent
82a837c19e
commit
26c9e23db8
3 changed files with 19 additions and 19 deletions
14
includes/alarmHandler.py
Normal file
14
includes/alarmHandler.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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]")
|
||||
Loading…
Add table
Add a link
Reference in a new issue