mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
This is an alarmMonitor for receive alarm-messages from BOSWatch and show them on a touchscreen The jsonSocketServer controlls an Watterott RPi-Display in case of received POCSAG-RIC Implemented functions: - asynchronous threads for display control - show ric-description and alarm-message on display - different colours for no alarm, test alarm and alarm - auto-turn-off display - show POCSAG is alive status (coloured clock)
23 lines
384 B
Python
23 lines
384 B
Python
#!/usr/bin/python
|
|
# -*- coding: UTF-8 -*-
|
|
#
|
|
|
|
# control-params (Boolean)
|
|
running = True
|
|
showDisplay = False
|
|
abort = False
|
|
|
|
# color of display-boarder
|
|
screenBackground = ""
|
|
|
|
# data-structure (Dict)
|
|
data = {}
|
|
|
|
# last alarm shown (Timestamp)
|
|
lastAlarm = 0
|
|
|
|
# enable display until (Timestamp)
|
|
enableDisplayUntil = 0
|
|
|
|
# configparser (Configparser)
|
|
config = 0 |