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

 __init__ (self, config)
 Do not change anything here!
 
 onLoad (self)
 Called by import of the plugin Remove if not implemented.
 
 doWork (self, bwPacket)
 start an run of the module.
 
 onUnload (self)
 Called by destruction of the plugin Remove if not implemented.
 

Additional Inherited Members

- Static Public Member Functions inherited from module.moduleBase.ModuleBase
 registerWildcard (newWildcard, bwPacketField)
 Register a new wildcard.
 
- Data Fields inherited from module.moduleBase.ModuleBase
 config
 
- Protected Member Functions inherited from module.moduleBase.ModuleBase
 _cleanup (self)
 Cleanup routine calls onUnload() directly.
 
 _run (self, bwPacket)
 start an run of the module.
 
 _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__()

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

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

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

start an run of the module.

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

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