change directory into main-dev-dir

This commit is contained in:
Schrolli 2015-05-20 13:29:16 +02:00
parent 1cfb705ad5
commit 76ec264046
19 changed files with 196 additions and 717 deletions

View file

@ -0,0 +1,29 @@
#!/usr/bin/python
# -*- coding: cp1252 -*-
import logging # Global logger
import globals # Global variables
def run(typ,freq,data):
try:
#ConfigParser
#config Data in config["OPTION"]
logging.debug("reading config file")
try:
config = dict(globals.config.items("template"))
for key,val in config.items():
logging.debug(" - %s = %s", key, val)
except:
logging.exception("cannot read config file")
if typ == "FMS":
logging.debug("FMS: %s Status: %s Dir: %s TKI: %s", data["fms"], data["status"], data["direction"], data["tki"])
elif typ == "ZVEI":
logging.debug("ZVEI: %s", data["zvei"])
elif typ == "POC":
logging.debug("POC: %s-%s - %s", data["ric"], data["function"], data["msg"])
else:
logging.warning(typ + " not supportet")
except:
logging.exception("unknown error")