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

 __init__ (self, config)
 Do not change anything here!
 
 onLoad (self)
 Called by import of the plugin Remove if not implemented.
 
 setup (self)
 Called before alarm Remove if not implemented.
 
 fms (self, bwPacket)
 Called on FMS alarm.
 
 pocsag (self, bwPacket)
 Called on POCSAG alarm.
 
 zvei (self, bwPacket)
 Called on ZVEI alarm.
 
 msg (self, bwPacket)
 Called on MSG packet.
 
 teardown (self)
 Called after alarm Remove if not implemented.
 
 onUnload (self)
 Called by destruction of the plugin Remove if not implemented.
 
- Public Member Functions inherited from plugin.pluginBase.PluginBase
 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
 _cleanup (self)
 Cleanup routine calls onUnload() directly.
 
 _run (self, bwPacket)
 start an complete running turn of an plugin.
 
 _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__()

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()

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()

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()

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

Called on FMS alarm.

Parameters
bwPacketbwPacket 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()

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

Called on POCSAG alarm.

Parameters
bwPacketbwPacket 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()

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

Called on ZVEI alarm.

Parameters
bwPacketbwPacket 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()

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

Called on MSG packet.

Parameters
bwPacketbwPacket 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()

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()

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