simple logging and data output with plugin

This commit is contained in:
Schrolli 2015-05-18 12:03:42 +02:00
parent 466e017cfb
commit 947bc9417c
6 changed files with 93 additions and 8 deletions

View file

@ -1,2 +0,0 @@
def run():
print("throw HTTP Plugin")

View file

@ -0,0 +1,26 @@
ZVEI:
=====
typ = zvei
time = datetime
frequenz= empfangsfrequenz
data1 = zvei code
data2 =
data3 =
FMS:
====
typ = fms
time = datetime
frequenz= empfangsfrequenz
data1 = fms kennung
data2 = status
data3 = richtung
POCSAG 1200:
============
typ = poc1200
time = datetime
frequenz= empfangsfrequenz
data1 = ric
data2 = sub_ric
data3 = text

View file

@ -1,2 +0,0 @@
def run():
print("Throw MySql Plugin")

View file

@ -1,2 +1,9 @@
def run():
print("Throw template Plugin")
import logging
def run(typ,time,frequenz,data1,data2,data3):
logging.debug("Throw Template Plugin")
try:
logging.debug("try 5/0")
test = 5/0
except:
logging.exception("Error in Template Plugin")