From 6a3143b2cc9bca3896ef1f4e4fc4bc407f58c439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20St=C3=B6cker?= Date: Wed, 5 Mar 2014 16:38:11 +0100 Subject: [PATCH] change status message on state change --- state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.py b/state.py index 52450bc..7ce2d6e 100644 --- a/state.py +++ b/state.py @@ -39,10 +39,13 @@ state["lastchange"] = int(time.time()) if data: if data == "0": state["open"] = False + state["message"] = "no human being on location" else: state["open"] = True + state["message"] = "open for public" else: state["open"] = None + state["message"] = "open for public" # JSON Decodieren und ausgeben print json.dumps(raw)