mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
73 lines
1.8 KiB
Python
73 lines
1.8 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
"""!
|
|
____ ____ ______ __ __ __ _____
|
|
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
|
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
|
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
|
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
|
German BOS Information Script
|
|
by Bastian Schroll
|
|
|
|
@file: template_module.py
|
|
@date: 14.01.2018
|
|
@author: Bastian Schroll
|
|
@description: Template Plugin File
|
|
"""
|
|
import logging
|
|
from plugin.pluginBase import PluginBase
|
|
|
|
# ###################### #
|
|
# Custom plugin includes #
|
|
|
|
# ###################### #
|
|
|
|
logging.debug("- %s loaded", __name__)
|
|
|
|
|
|
class BoswatchPluginBase(PluginBase):
|
|
"""!Description of the Plugin"""
|
|
def __init__(self, config):
|
|
"""!Do not change anything here!"""
|
|
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
|
|
|
def onLoad(self):
|
|
"""!Called by import of the plugin"""
|
|
pass
|
|
|
|
def setup(self):
|
|
"""!Called before alarm"""
|
|
pass
|
|
|
|
def fms(self, bwPacket):
|
|
"""!Called on FMS alarm
|
|
|
|
@param bwPacket: bwPacket instance"""
|
|
pass
|
|
|
|
def pocsag(self, bwPacket):
|
|
"""!Called on POCSAG alarm
|
|
|
|
@param bwPacket: bwPacket instance"""
|
|
pass
|
|
|
|
def zvei(self, bwPacket):
|
|
"""!Called on ZVEI alarm
|
|
|
|
@param bwPacket: bwPacket instance"""
|
|
pass
|
|
|
|
def msg(self, bwPacket):
|
|
"""!Called on MSG packet
|
|
|
|
@param bwPacket: bwPacket instance"""
|
|
pass
|
|
|
|
def teardown(self):
|
|
"""!Called after alarm"""
|
|
pass
|
|
|
|
def onUnload(self):
|
|
"""!Called by destruction of the plugin"""
|
|
pass
|