add template plugin

This commit is contained in:
Bastian Schroll 2018-01-14 16:28:11 +01:00
parent 9c824ff862
commit d80db0d6cc
6 changed files with 68 additions and 8 deletions

View file

@ -17,6 +17,9 @@
import logging
import time
from boswatch.utils import paths
from boswatch.config import Config
logging.debug("- %s loaded", __name__)
@ -43,6 +46,10 @@ class Plugin:
self._alarmErrorCount = 0
self._teardownErrorCount = 0
if paths.FileExist(paths.PLUGIN_PATH + pluginName + "/" + pluginName + ".ini"):
self.config = Config()
self.config.loadConfigFile(paths.PLUGIN_PATH + pluginName + "/" + pluginName + ".ini", pluginName)
logging.debug("[%s] onLoad()", pluginName)
self.onLoad()