mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
add alarmWorker template
This commit is contained in:
parent
95c2cecc64
commit
18d7a0db6f
28
boswatch/worker/alarmWorker.py
Normal file
28
boswatch/worker/alarmWorker.py
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""!
|
||||||
|
____ ____ ______ __ __ __ _____
|
||||||
|
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
||||||
|
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
||||||
|
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
||||||
|
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
||||||
|
German BOS Information Script
|
||||||
|
by Bastian Schroll
|
||||||
|
|
||||||
|
@file: alarmWorker.py
|
||||||
|
@date: 20.09.2018
|
||||||
|
@author: Bastian Schroll
|
||||||
|
@description: Alarm worker to process the alarms in a separate thread
|
||||||
|
"""
|
||||||
|
import logging
|
||||||
|
|
||||||
|
# from boswatch.module import file
|
||||||
|
|
||||||
|
logging.debug("- %s loaded", __name__)
|
||||||
|
|
||||||
|
|
||||||
|
class alarmWorker:
|
||||||
|
"""!Worker class to process alarms"""
|
||||||
|
|
||||||
|
def __init__(self, alarmQueue):
|
||||||
|
self.__alarmQueue = alarmQueue
|
||||||
Loading…
Reference in a new issue