projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc97fa0
)
...
author
realraum
<realraum@realraum.at>
Tue, 28 Sep 2010 01:41:50 +0000
(
01:41
+0000)
committer
realraum
<realraum@realraum.at>
Tue, 28 Sep 2010 01:41:50 +0000
(
01:41
+0000)
switch-power.py
patch
|
blob
|
history
diff --git
a/switch-power.py
b/switch-power.py
index
186ccd1
..
f9c5b99
100755
(executable)
--- a/
switch-power.py
+++ b/
switch-power.py
@@
-144,6
+144,7
@@
def switchLogo(status_presence):
else:
logo_action=True
if not logo_action is None:
else:
logo_action=True
if not logo_action is None:
+ logging.info("switchLogo: logo_action:%s" % str(logo_action))
for id in uwscfg.slug_ids_logo.split(" "):
switchPower(id,logo_action)
for id in uwscfg.slug_ids_logo.split(" "):
switchPower(id,logo_action)
@@
-222,14
+223,14
@@
def eventNobodyHere():
logging.info("event: noone here, switching off: "+present_ids)
present_id_list=present_ids.split(" ")
for id in present_id_list:
logging.info("event: noone here, switching off: "+present_ids)
present_id_list=present_ids.split(" ")
for id in present_id_list:
- time.sleep(0.2)
+ time.sleep(0.15)
switchPower(id,False)
present_id_list.reverse()
switchPower(id,False)
present_id_list.reverse()
- time.sleep(0.2)
+ time.sleep(0.15)
switchLogo(status_presence)
switchLogo(status_presence)
- time.sleep(4)
+ time.sleep(2)
for id in present_id_list:
for id in present_id_list:
- time.sleep(0.3)
+ time.sleep(0.15)
switchPower(id,False)
##def eventPanic():
switchPower(id,False)
##def eventPanic():