X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=track-presence.py;h=78c75b0fd69d6ed11d8509840c119380764f4408;hb=a0596eb57bc6d4fe2587b5bace320f24c689209f;hp=c8f1b50913e6ab9c27082cff81fcd8501845ce92;hpb=0a3dfb3f4fe4fe871e91a2aa2f1ca6ecb5146a49;p=svn42.git diff --git a/track-presence.py b/track-presence.py index c8f1b50..78c75b0 100755 --- a/track-presence.py +++ b/track-presence.py @@ -369,7 +369,6 @@ class StatusTracker: #(threading.Thread): self.timer=threading.Timer(sec, self.checkPresenceStateChangeAndNotify) self.timer.start() - #TODO: check brightness level from cam or an arduino sensor def somebodyPresent(self): with self.lock: if self.door_open: @@ -396,8 +395,8 @@ class StatusTracker: #(threading.Thread): elif self.door_open and not somebody_present: self.checkAgainIn(2*float(self.uwscfg.tracker_sec_necessary_to_move_through_door)) return None - elif not somebody_present and self.last_light_unixts > self.last_door_operation_unixts and self.last_light_value > int(self.uwscfg.tracker_photo_artif_light): - return "Nobody here but light is still on" +# elif not somebody_present and self.last_light_unixts > self.last_door_operation_unixts and self.last_light_value > int(self.uwscfg.tracker_photo_artif_light): +#return "Nobody here but light is still on" else: return None