mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-20 15:20:16 +01:00
Fixing message
Set default-message to alarm Fixing ZVEI-message; it now contains zvei, and, if available, description
This commit is contained in:
parent
142e2ba5b0
commit
2e03519333
|
|
@ -60,13 +60,13 @@ def run(typ,freq,data):
|
|||
if configHandler.checkConfig("Sms77"): #read and debug the config
|
||||
|
||||
# create an empty message an fill it with the required information
|
||||
message = ""
|
||||
message = "Alarm"
|
||||
if typ == "FMS":
|
||||
logging.debug("FMS detected, building message")
|
||||
message = data["description"]+"<br>"+data["status"]
|
||||
elif typ == "ZVEI":
|
||||
logging.debug("ZVEI detected, building message")
|
||||
mesage = data["description"]
|
||||
message = data["zvei"]+" - "+data["description"]
|
||||
elif typ == "POC":
|
||||
logging.debug("POC detected, building message")
|
||||
message = data["description"]+"<br>"+data["msg"].replace(";", "<br>")
|
||||
|
|
|
|||
Loading…
Reference in a new issue