BOSWatch 3
Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG
 
Loading...
Searching...
No Matches
plugin.template_plugin.BoswatchPlugin Class Reference

Description of the Plugin. More...

Public Member Functions

def __init__ (self, config)
 Do not change anything here!
 
def onLoad (self)
 Called by import of the plugin Remove if not implemented.
 
def setup (self)
 Called before alarm Remove if not implemented.
 
def fms (self, bwPacket)
 Called on FMS alarm.
 
def pocsag (self, bwPacket)
 Called on POCSAG alarm.
 
def zvei (self, bwPacket)
 Called on ZVEI alarm.
 
def msg (self, bwPacket)
 Called on MSG packet.
 
def teardown (self)
 Called after alarm Remove if not implemented.
 
def onUnload (self)
 Called by destruction of the plugin Remove if not implemented.
 
- Public Member Functions inherited from plugin.pluginBase.PluginBase
def __init__ (self, pluginName, config)
 init preload some needed locals and then call onLoad() directly
 
def onLoad (self)
 Called by import of the plugin can be inherited.
 
def setup (self)
 Called before alarm can be inherited.
 
def fms (self, bwPacket)
 Called on FMS alarm can be inherited.
 
def pocsag (self, bwPacket)
 Called on POCSAG alarm can be inherited.
 
def zvei (self, bwPacket)
 Called on ZVEI alarm can be inherited.
 
def msg (self, bwPacket)
 Called on MSG packet can be inherited.
 
def teardown (self)
 Called after alarm can be inherited.
 
def onUnload (self)
 Called on shutdown of boswatch can be inherited.
 
def parseWildcards (self, msg)
 Return the message with parsed wildcards.
 

Additional Inherited Members

- Data Fields inherited from plugin.pluginBase.PluginBase
 config
 
- Protected Member Functions inherited from plugin.pluginBase.PluginBase
def _cleanup (self)
 Cleanup routine calls onUnload() directly.
 
def _run (self, bwPacket)
 start an complete running turn of an plugin.
 
def _getStatistics (self)
 Returns statistical information's from last plugin run.
 
- Protected Attributes inherited from plugin.pluginBase.PluginBase
 _pluginName
 
 _bwPacket
 
 _sumTime
 
 _cumTime
 
 _setupTime
 
 _alarmTime
 
 _teardownTime
 
 _runCount
 
 _setupErrorCount
 
 _alarmErrorCount
 
 _teardownErrorCount
 
- Static Protected Attributes inherited from plugin.pluginBase.PluginBase
list _pluginsActive = []
 

Detailed Description

Description of the Plugin.

Constructor & Destructor Documentation

◆ __init__()

def plugin.template_plugin.BoswatchPlugin.__init__ (   self,
  config 
)

Do not change anything here!

Reimplemented from plugin.pluginBase.PluginBase.

30 def __init__(self, config):
31 r"""!Do not change anything here!"""
32 super().__init__(__name__, config) # you can access the config class on 'self.config'
33

Member Function Documentation

◆ onLoad()

def plugin.template_plugin.BoswatchPlugin.onLoad (   self)

Called by import of the plugin Remove if not implemented.

Reimplemented from plugin.pluginBase.PluginBase.

34 def onLoad(self):
35 r"""!Called by import of the plugin
36 Remove if not implemented"""
37 pass
38

◆ setup()

def plugin.template_plugin.BoswatchPlugin.setup (   self)

Called before alarm Remove if not implemented.

Reimplemented from plugin.pluginBase.PluginBase.

39 def setup(self):
40 r"""!Called before alarm
41 Remove if not implemented"""
42 pass
43

◆ fms()

def plugin.template_plugin.BoswatchPlugin.fms (   self,
  bwPacket 
)

Called on FMS alarm.

    @param bwPacket: bwPacket instance
    Remove if not implemented

Reimplemented from plugin.pluginBase.PluginBase.

44 def fms(self, bwPacket):
45 r"""!Called on FMS alarm
46
47 @param bwPacket: bwPacket instance
48 Remove if not implemented"""
49 pass
50

◆ pocsag()

def plugin.template_plugin.BoswatchPlugin.pocsag (   self,
  bwPacket 
)

Called on POCSAG alarm.

    @param bwPacket: bwPacket instance
    Remove if not implemented

Reimplemented from plugin.pluginBase.PluginBase.

51 def pocsag(self, bwPacket):
52 r"""!Called on POCSAG alarm
53
54 @param bwPacket: bwPacket instance
55 Remove if not implemented"""
56 pass
57

◆ zvei()

def plugin.template_plugin.BoswatchPlugin.zvei (   self,
  bwPacket 
)

Called on ZVEI alarm.

    @param bwPacket: bwPacket instance
    Remove if not implemented

Reimplemented from plugin.pluginBase.PluginBase.

58 def zvei(self, bwPacket):
59 r"""!Called on ZVEI alarm
60
61 @param bwPacket: bwPacket instance
62 Remove if not implemented"""
63 pass
64

◆ msg()

def plugin.template_plugin.BoswatchPlugin.msg (   self,
  bwPacket 
)

Called on MSG packet.

    @param bwPacket: bwPacket instance
    Remove if not implemented

Reimplemented from plugin.pluginBase.PluginBase.

65 def msg(self, bwPacket):
66 r"""!Called on MSG packet
67
68 @param bwPacket: bwPacket instance
69 Remove if not implemented"""
70 pass
71

◆ teardown()

def plugin.template_plugin.BoswatchPlugin.teardown (   self)

Called after alarm Remove if not implemented.

Reimplemented from plugin.pluginBase.PluginBase.

72 def teardown(self):
73 r"""!Called after alarm
74 Remove if not implemented"""
75 pass
76

◆ onUnload()

def plugin.template_plugin.BoswatchPlugin.onUnload (   self)

Called by destruction of the plugin Remove if not implemented.

Reimplemented from plugin.pluginBase.PluginBase.

77 def onUnload(self):
78 r"""!Called by destruction of the plugin
79 Remove if not implemented"""
80 pass