BOSWatch/plugin_test/plugins/template/__init__.py
2015-05-19 07:29:39 +02:00

14 lines
338 B
Python

#!/usr/bin/python
# -*- coding: cp1252 -*-
import logging # Global logger
import globals # Global variables
def run(typ,freq,data):
try:
if typ == "ZVEI":
logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq)
else:
logging.warning(typ + " not supportet")
except:
logging.exception("Error in Template Plugin")