mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 14:07:25 +00:00
little changes for docu
This commit is contained in:
parent
5394bceedf
commit
346d5a41f6
3 changed files with 26 additions and 25 deletions
|
|
@ -1,12 +1,11 @@
|
|||
Übergabe an Plugin:
|
||||
|
||||
typ = [FMS|ZVEI|POC]
|
||||
freq = [FREQ(Hz)]
|
||||
data = {"KEY1":"VALUE1","KEY2":"VALUE2"} als Python Dict
|
||||
Handover to Plugin:
|
||||
typ = [FMS|ZVEI|POC]
|
||||
freq = [Freq in Hz]
|
||||
data = {"KEY1":"VALUE1","KEY2":"VALUE2"}
|
||||
|
||||
|
||||
Follgende Daten sind bei der jeweiligen Alarm-Art enthalten
|
||||
und per data["OPTION"] abrufbar:
|
||||
The following informations are included in the var "data".
|
||||
They can be used by their Index Names: data['OPTION']
|
||||
|
||||
ZVEI:
|
||||
- zvei
|
||||
|
|
@ -24,13 +23,14 @@ POCSAG:
|
|||
- bitrate
|
||||
|
||||
|
||||
Es stehen folgende globale Objecte zur Verfügung:
|
||||
Global Objects:
|
||||
|
||||
1.) import logging # Global logger
|
||||
logging - Object
|
||||
Nachricht ins Log per: logging.LOGLEVEL("MESSAGE")
|
||||
Mögliche Loglevel: debug|info|warning|error|exception|critical
|
||||
1.)
|
||||
import logging # Global logger
|
||||
Message into Log: logging.LOGLEVEL("MESSAGE")
|
||||
Loglevel: debug|info|warning|error|exception|critical
|
||||
|
||||
2.) import globals # Global variables
|
||||
config - Object (typ: ConfigParser, stellt config.ini bereit)
|
||||
2.)
|
||||
import globals # Global variables
|
||||
reads Data from the config.ini
|
||||
VALUE = globals.config.get("SECTION", "OPTION")
|
||||
Loading…
Add table
Add a link
Reference in a new issue