BOSWatch 3
Python Script to receive and decode German BOS Information with rtl_fm and multimon-NG
 
Loading...
Searching...
No Matches
module.template_module.BoswatchModule Class Reference

Description of the Module. 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 doWork (self, bwPacket)
 start an run of the module.
 
def onUnload (self)
 Called by destruction of the plugin Remove if not implemented.
 
def __init__ (self, moduleName, config)
 init preload some needed locals and then call onLoad() directly
 
def onLoad (self)
 Called by import of the module can be inherited.
 
def doWork (self, bwPacket)
 Called module run can be inherited.
 
def onUnload (self)
 Called on shutdown of boswatch can be inherited.
 

Additional Inherited Members

- Static Public Member Functions inherited from module.moduleBase.ModuleBase
def registerWildcard (newWildcard, bwPacketField)
 Register a new wildcard.
 
- Data Fields inherited from module.moduleBase.ModuleBase
 config
 
- Protected Member Functions inherited from module.moduleBase.ModuleBase
def _cleanup (self)
 Cleanup routine calls onUnload() directly.
 
def _run (self, bwPacket)
 start an run of the module.
 
def _getStatistics (self)
 Returns statistical information's from last module run.
 
- Protected Attributes inherited from module.moduleBase.ModuleBase
 _moduleName
 
 _cumTime
 
 _moduleTime
 
 _runCount
 
 _moduleErrorCount
 
- Static Protected Attributes inherited from module.moduleBase.ModuleBase
list _modulesActive = []
 

Detailed Description

Description of the Module.

Constructor & Destructor Documentation

◆ __init__()

def module.template_module.BoswatchModule.__init__ (   self,
  config 
)

Do not change anything here!

Reimplemented from module.moduleBase.ModuleBase.

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 module.template_module.BoswatchModule.onLoad (   self)

Called by import of the plugin Remove if not implemented.

Reimplemented from module.moduleBase.ModuleBase.

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

◆ doWork()

def module.template_module.BoswatchModule.doWork (   self,
  bwPacket 
)

start an run of the module.

    @param bwPacket: A BOSWatch packet instance

Reimplemented from module.moduleBase.ModuleBase.

39 def doWork(self, bwPacket):
40 r"""!start an run of the module.
41
42 @param bwPacket: A BOSWatch packet instance"""
43 if bwPacket.get("mode") == "fms":
44 pass
45 elif bwPacket.get("mode") == "zvei":
46 pass
47 elif bwPacket.get("mode") == "pocsag":
48 pass
49 elif bwPacket.get("mode") == "msg":
50 pass
51
52 return bwPacket
53

◆ onUnload()

def module.template_module.BoswatchModule.onUnload (   self)

Called by destruction of the plugin Remove if not implemented.

Reimplemented from module.moduleBase.ModuleBase.

54 def onUnload(self):
55 r"""!Called by destruction of the plugin
56 Remove if not implemented"""
57 pass