BOSWatch/plugin_test/plugins/template/__init__.py

14 lines
338 B
Python
Raw Normal View History

#!/usr/bin/python
# -*- coding: cp1252 -*-
import logging # Global logger
import globals # Global variables
2015-05-18 14:56:01 +02:00
def run(typ,freq,data):
2015-05-18 22:10:23 +02:00
try:
if typ == "ZVEI":
logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq)
2015-05-19 07:29:39 +02:00
else:
logging.warning(typ + " not supportet")
2015-05-18 22:10:23 +02:00
except:
logging.exception("Error in Template Plugin")