BOSWatch/plugins/interface.txt
2015-06-04 20:13:37 +02:00

37 lines
603 B
Plaintext

Handover to Plugin:
typ = [FMS|ZVEI|POC]
freq = [Freq in Hz]
data = {"KEY1":"VALUE1","KEY2":"VALUE2"}
The following informations are included in the var "data".
They can be used by their Index Names: data['OPTION']
ZVEI:
- zvei
FMS:
- fms
- status
- direction
- directionText
- tsi
POCSAG:
- ric
- function
- msg
- bitrate
Global Objects:
1.)
import logging # Global logger
Message into Log: logging.LOGLEVEL("MESSAGE")
Loglevel: debug|info|warning|error|exception|critical
2.)
import globals # Global variables
reads Data from the config.ini
VALUE = globals.config.get("SECTION", "OPTION")