From 459d88867eba5e74c4467e3e2403a05cc4d1f9c9 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 3 Mar 2014 22:09:19 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/superTornado.py b/superTornado.py index 9eb8b0e..62f54ed 100644 --- a/superTornado.py +++ b/superTornado.py @@ -89,18 +89,18 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): log.printL("->"+iden + " : Authorized user connection : "+self.request.remote_ip,lvl.INFO) if blind == True: log.printL('->Send audio alarm authorized user',lvl.INFO) - send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")') + self.send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")') else: log.printL('->Send visual alarm authorized user',lvl.INFO) - send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=1")') + self.send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=1")') else : log.printL("->"+iden + ": Unauthorized user connection : " + self.request.remote_ip,lvl.WARNING) if blind == True: log.printL('->Send audio alarm unauthorized user',lvl.WARNING) - send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")') + self.send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")') else: log.printL('->Send visual alarm unauthorized user',lvl.WARNING) - send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=1")') + self.send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=1")') self.send_image() def on_message(self,mesg): @@ -117,10 +117,10 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): if blind == True: log.printL('->Send audio alarm deconnection user', lvl.INFO) - send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")') + self.send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")') else: log.printL('->Send visual alarm deconnection user ...',lvl.INFO) - send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=0")') + self.send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=0")') def send_signal_house(self, pRq) : log.printL('maison = httplib.HTTPConnection("192.168.16.150", 80)',lvl.DEBUG)