From ee89d0776c50216d22e506ded8bc82bc3f1d140b Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 19 May 2015 09:36:35 +0200 Subject: [PATCH] edit template plugin --- plugin_test/config/config.ini | 8 ++++++++ plugin_test/plugins/template/__init__.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugin_test/config/config.ini b/plugin_test/config/config.ini index 193ca98..c14d041 100644 --- a/plugin_test/config/config.ini +++ b/plugin_test/config/config.ini @@ -7,6 +7,7 @@ BosMon = 0 # for developing template-module is enabled template = 1 +none = 1 [BosMon] #Server as IP of DNS-Name (without http://) @@ -18,3 +19,10 @@ bosmon_channel = pocsag #Use this, when BosMon has restricted access bosmon_user = bosmon_password = + + +[template] +data1 = test123 +data2 = test345 +data3 = test567 +data4 = test789 \ No newline at end of file diff --git a/plugin_test/plugins/template/__init__.py b/plugin_test/plugins/template/__init__.py index d0f6005..9fff55c 100644 --- a/plugin_test/plugins/template/__init__.py +++ b/plugin_test/plugins/template/__init__.py @@ -9,6 +9,6 @@ def run(typ,freq,data): if typ == "ZVEI": logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq) else: - logging.warning(typ + " not supportet") + logging.warning(typ + " not implemented") except: - logging.exception("Error in Template Plugin") \ No newline at end of file + logging.exception("") \ No newline at end of file