mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-04 22:17:24 +00:00
add alarmMonitor for Rasbperry with RPiDisplay
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)
This commit is contained in:
parent
ce97760b00
commit
4e013ee55d
5 changed files with 580 additions and 0 deletions
23
exampleAddOns/alarmMonitorRPi/globals.py
Normal file
23
exampleAddOns/alarmMonitorRPi/globals.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue