projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
google chrome fix
[svn42.git]
/
switch-power.py
diff --git
a/switch-power.py
b/switch-power.py
index
9f0a3a1
..
0c8069d
100755
(executable)
--- a/
switch-power.py
+++ b/
switch-power.py
@@
-315,7
+315,10
@@
while True:
continue
m = RE_PHOTO.match(line)
if not m is None:
continue
m = RE_PHOTO.match(line)
if not m is None:
- if m.group(1) >= int(uwscfg.slug_light_threshold_brightness):
+ light_value = int(m.group(1))
+ light_threshold = int(uwscfg.slug_light_threshold_brightness)
+ #logging.debug("photo value: %d threshold: %s" % (light_value,light_threshold))
+ if light_value >= light_threshold:
eventRoomGotBright()
else:
eventRoomGotDark()
eventRoomGotBright()
else:
eventRoomGotDark()