BOSWatch/plugins/interface.txt

41 lines
660 B
Plaintext
Raw Normal View History

2015-05-27 11:55:04 +02:00
Handover to Plugin:
typ = [FMS|ZVEI|POC]
freq = [Freq in Hz]
data = {"KEY1":"VALUE1","KEY2":"VALUE2"}
2015-05-18 14:49:10 +02:00
2015-05-20 11:13:53 +02:00
2015-05-27 11:55:04 +02:00
The following informations are included in the var "data".
They can be used by their Index Names: data['OPTION']
2015-05-18 14:49:10 +02:00
ZVEI:
2015-05-18 15:29:41 +02:00
- zvei
- description
FMS:
2015-05-18 15:29:41 +02:00
- fms
- status
- direction
- directionText
2015-05-20 21:03:58 +02:00
- tsi
- description
2015-05-18 14:49:10 +02:00
POCSAG:
2015-05-18 15:29:41 +02:00
- ric
- function
- functionChar
- msg
2015-05-22 08:27:50 +02:00
- bitrate
- description
2015-05-20 11:13:53 +02:00
2015-05-27 11:55:04 +02:00
Global Objects:
2015-05-20 11:13:53 +02:00
2015-05-27 11:55:04 +02:00
1.)
import logging # Global logger
Message into Log: logging.LOGLEVEL("MESSAGE")
Loglevel: debug|info|warning|error|exception|critical
2015-05-27 11:55:04 +02:00
2.)
import globals # Global variables
reads Data from the config.ini
2015-05-22 07:32:39 +02:00
VALUE = globals.config.get("SECTION", "OPTION")