BW3-Core/plugins/template/template.py

72 lines
1.7 KiB
Python
Raw Normal View History

2018-01-14 16:28:11 +01:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""!
____ ____ ______ __ __ __ _____
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
German BOS Information Script
by Bastian Schroll
@file: template.py
@date: 14.01.2018
@author: Bastian Schroll
@description: Template Plugin File
"""
import logging
from boswatch.plugin.plugin import Plugin
# ###################### #
# Custom plugin includes #
# ###################### #
2018-01-14 16:28:11 +01:00
logging.debug("- %s loaded", __name__)
class BoswatchPlugin(Plugin):
2018-01-14 20:06:31 +01:00
"""!Description of the Plugin"""
2018-01-14 16:28:11 +01:00
def __init__(self):
"""!Do not change anything here except the PLUGIN NAME in the super() call"""
# PLEASE SET YOU PLUGIN NAME HERE !!!!
2018-09-19 14:52:10 +02:00
super().__init__("template")
2018-01-14 16:28:11 +01:00
def onLoad(self):
"""!Called by import of the plugin"""
2018-01-14 20:06:31 +01:00
pass
2018-01-14 16:28:11 +01:00
def setup(self):
"""!Called before alarm"""
2018-01-14 20:06:31 +01:00
pass
def fms(self, bwPacket):
"""!Called on FMS alarm
@param bwPacket: bwPacket instance"""
pass
2018-01-14 16:28:11 +01:00
2018-01-14 20:06:31 +01:00
def pocsag(self, bwPacket):
"""!Called on POCSAG alarm
2018-01-14 16:28:11 +01:00
@param bwPacket: bwPacket instance"""
2018-01-14 20:06:31 +01:00
pass
def zvei(self, bwPacket):
"""!Called on ZVEI alarm
@param bwPacket: bwPacket instance"""
2018-02-22 08:28:02 +01:00
def msg(self, bwPacket):
"""!Called on MSG packet
@param bwPacket: bwPacket instance"""
2018-01-14 16:28:11 +01:00
def teardown(self):
2018-01-14 20:06:31 +01:00
"""!Called after alarm"""
pass
2018-01-14 16:28:11 +01:00
def onUnload(self):
"""!Called by destruction of the plugin"""
pass