mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
edit templates for module and plugin
This commit is contained in:
parent
ab0af5c61d
commit
2bb481111b
|
|
@ -32,7 +32,8 @@ class BoswatchModul(ModuleBase):
|
||||||
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
||||||
|
|
||||||
def onLoad(self):
|
def onLoad(self):
|
||||||
"""!Called by import of the plugin"""
|
"""!Called by import of the plugin
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def doWork(self, bwPacket):
|
def doWork(self, bwPacket):
|
||||||
|
|
@ -51,5 +52,6 @@ class BoswatchModul(ModuleBase):
|
||||||
return bwPacket
|
return bwPacket
|
||||||
|
|
||||||
def onUnload(self):
|
def onUnload(self):
|
||||||
"""!Called by destruction of the plugin"""
|
"""!Called by destruction of the plugin
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
|
|
@ -32,41 +32,49 @@ class BoswatchPlugin(PluginBase):
|
||||||
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
||||||
|
|
||||||
def onLoad(self):
|
def onLoad(self):
|
||||||
"""!Called by import of the plugin"""
|
"""!Called by import of the plugin
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
"""!Called before alarm"""
|
"""!Called before alarm
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def fms(self, bwPacket):
|
def fms(self, bwPacket):
|
||||||
"""!Called on FMS alarm
|
"""!Called on FMS alarm
|
||||||
|
|
||||||
@param bwPacket: bwPacket instance"""
|
@param bwPacket: bwPacket instance
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def pocsag(self, bwPacket):
|
def pocsag(self, bwPacket):
|
||||||
"""!Called on POCSAG alarm
|
"""!Called on POCSAG alarm
|
||||||
|
|
||||||
@param bwPacket: bwPacket instance"""
|
@param bwPacket: bwPacket instance
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def zvei(self, bwPacket):
|
def zvei(self, bwPacket):
|
||||||
"""!Called on ZVEI alarm
|
"""!Called on ZVEI alarm
|
||||||
|
|
||||||
@param bwPacket: bwPacket instance"""
|
@param bwPacket: bwPacket instance
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def msg(self, bwPacket):
|
def msg(self, bwPacket):
|
||||||
"""!Called on MSG packet
|
"""!Called on MSG packet
|
||||||
|
|
||||||
@param bwPacket: bwPacket instance"""
|
@param bwPacket: bwPacket instance
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def teardown(self):
|
def teardown(self):
|
||||||
"""!Called after alarm"""
|
"""!Called after alarm
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def onUnload(self):
|
def onUnload(self):
|
||||||
"""!Called by destruction of the plugin"""
|
"""!Called by destruction of the plugin
|
||||||
|
Remove if not implemented"""
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue