track presence knows about ssh
authorBernhard Tittelbach <xro@realraum.at>
Wed, 4 Sep 2013 10:53:04 +0000 (10:53 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Wed, 4 Sep 2013 10:53:04 +0000 (10:53 +0000)
track-presence.py

index 2b73e0d..3877c5c 100755 (executable)
@@ -215,7 +215,7 @@ def trackDoorStatusThread(uwscfg, status_tracker,connection_listener):
   global door_sockhandle, door_socklock, threads_running
   #socket.setdefaulttimeout(10.0) #affects all new Socket Connections (urllib as well)
   RE_STATUS = re.compile(r'Status: (closed|opened), (opening|waiting|closing|idle), (ajar|shut).*',re.I)
-  RE_REQUEST = re.compile(r'Request: (\w+) (?:(Card|Phone) )?(.+)',re.I)
+  RE_REQUEST = re.compile(r'Request: (\w+) (?:(Card|Phone|SSH|ssh) )?(.+)',re.I)
   RE_ERROR = re.compile(r'Error: (.+)',re.I)
   while threads_running:
     uwscfg.checkConfigUpdates()