From 2e03519333c12fa79b00f231475e6b6a63274b53 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 17 Apr 2017 10:46:39 +0200 Subject: [PATCH] Fixing message Set default-message to alarm Fixing ZVEI-message; it now contains zvei, and, if available, description --- plugins/Sms77/Sms77.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Sms77/Sms77.py b/plugins/Sms77/Sms77.py index 9985873..e4353d1 100644 --- a/plugins/Sms77/Sms77.py +++ b/plugins/Sms77/Sms77.py @@ -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"]+"
"+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"]+"
"+data["msg"].replace(";", "
")