projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
097e184
)
--lightbug
author
realraum
<realraum@realraum.at>
Fri, 30 Jul 2010 14:31:12 +0000
(14:31 +0000)
committer
realraum
<realraum@realraum.at>
Fri, 30 Jul 2010 14:31:12 +0000
(14:31 +0000)
switch-power.py
patch
|
blob
|
history
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:
- 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()