From e40215976a8a02ee9330451642b792a766f64d03 Mon Sep 17 00:00:00 2001 From: JHCD Date: Mon, 18 May 2015 19:41:52 +0200 Subject: [PATCH] - insert globals for logging and config - insert configuration-file - pluginloader use only enabled modules (config.ini) --- plugin_test/config/config.ini | 22 ++++++++++++++++++++++ plugin_test/globals.py | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 plugin_test/config/config.ini create mode 100644 plugin_test/globals.py diff --git a/plugin_test/config/config.ini b/plugin_test/config/config.ini new file mode 100644 index 0000000..1bf64af --- /dev/null +++ b/plugin_test/config/config.ini @@ -0,0 +1,22 @@ +######################## +# BOSWatch Config File # +######################## + +#can take on or off the modules (0|1) +[Module] +MySQL = 0 +HTTPrequest = 0 +BosMon = 0 +# for developing template-module is enabled +template = 1 + +[BosMon] +#Server as IP of DNS-Name (without http://) +#actually no ssl supported +bosmon_server = 192.168.0.1 +bosmon_port = 80 +#channel-name of typ "Web-Telegramm" +bosmon_channel = channelname +#Use this, when you have security enabled +bosmon_user = user +bosmon_password = password diff --git a/plugin_test/globals.py b/plugin_test/globals.py new file mode 100644 index 0000000..f412ff6 --- /dev/null +++ b/plugin_test/globals.py @@ -0,0 +1,5 @@ +#!/usr/bin/python +# -*- coding: cp1252 -*- + +#Global variables +config = 0 \ No newline at end of file