mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-11 17:33:37 +00:00
simple logging and data output with plugin
This commit is contained in:
parent
466e017cfb
commit
947bc9417c
6 changed files with 93 additions and 8 deletions
|
|
@ -1,2 +0,0 @@
|
|||
def run():
|
||||
print("throw HTTP Plugin")
|
||||
26
plugin_test/plugins/interface.txt
Normal file
26
plugin_test/plugins/interface.txt
Normal 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
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
def run():
|
||||
print("Throw MySql Plugin")
|
||||
|
|
@ -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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue