modifié: superTornado.py
This commit is contained in:
parent
60345c97c6
commit
851b0f9280
@ -158,7 +158,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
iden = self.current_user
|
iden = self.current_user
|
||||||
if iden != "IllegalUser":
|
if iden != "IllegalUser":
|
||||||
GlobalVars.log.printL("->"+iden + " : Authorized user connection : "+self.request.remote_ip,lvl.INFO)
|
GlobalVars.log.printL("->"+iden + " : Authorized user connection : "+self.request.remote_ip,lvl.INFO)
|
||||||
if blind == True:
|
if GlobalVars.blind == True:
|
||||||
GlobalVars.authorized + 1
|
GlobalVars.authorized + 1
|
||||||
GlobalVars.log.printL('->Send audio alarm authorized user',lvl.INFO)
|
GlobalVars.log.printL('->Send audio alarm authorized user',lvl.INFO)
|
||||||
self.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")')
|
||||||
@ -205,7 +205,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
GlobalVars.log.printL('->Send Audio Alarm Deconnection User', lvl.INFO)
|
GlobalVars.log.printL('->Send Audio Alarm Deconnection User', lvl.INFO)
|
||||||
self.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:
|
else:
|
||||||
if (GlobalVars.unauthorized == 0) and (authorized == 0):
|
if (GlobalVars.unauthorized == 0) and ((GlobalVars.authorized == 0):
|
||||||
GlobalVars.log.printL('->Send Visual Alarm Deconnection User ...',lvl.INFO)
|
GlobalVars.log.printL('->Send Visual Alarm Deconnection User ...',lvl.INFO)
|
||||||
self.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")')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user