projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b2d2d96
)
try circumvent movmement report delay on closing door from inside
author
realraum
<realraum@realraum.at>
Fri, 14 May 2010 00:43:37 +0000
(
00:43
+0000)
committer
realraum
<realraum@realraum.at>
Fri, 14 May 2010 00:43:37 +0000
(
00:43
+0000)
track-presence.py
patch
|
blob
|
history
diff --git
a/track-presence.py
b/track-presence.py
index
9ba0ac9
..
542d29c
100755
(executable)
--- a/
track-presence.py
+++ b/
track-presence.py
@@
-382,7
+382,9
@@
class StatusTracker: #(threading.Thread):
#start timer, checkPresenceStateChangeAndNotify after tracker_sec_wait_movement
self.checkAgainIn(float(self.uwscfg.tracker_sec_necessary_to_move_through_door))
return self.last_somebody_present_result
#start timer, checkPresenceStateChangeAndNotify after tracker_sec_wait_movement
self.checkAgainIn(float(self.uwscfg.tracker_sec_necessary_to_move_through_door))
return self.last_somebody_present_result
- elif self.last_movement_unixts > self.last_door_operation_unixts and (self.door_manual_switch_used or ( time.time() - self.last_movement_unixts < float(self.uwscfg.tracker_sec_general_movement_timeout))):
+ elif self.last_movement_unixts > self.last_door_operation_unixts - 0.3 and self.door_manual_switch_used:
+ return True
+ elif self.last_movement_unixts > self.last_door_operation_unixts and time.time() - self.last_movement_unixts < float(self.uwscfg.tracker_sec_general_movement_timeout):
return True
else:
return False
return True
else:
return False