projects
/
saartuer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
82c945d
)
silence sphinx a bit
author
Ralf Jung
<post@ralfj.de>
Wed, 5 Mar 2014 18:08:57 +0000
(19:08 +0100)
committer
Ralf Jung
<post@ralfj.de>
Wed, 5 Mar 2014 18:08:57 +0000
(19:08 +0100)
statemachine.py
patch
|
blob
|
history
diff --git
a/statemachine.py
b/statemachine.py
index 645737c649f33a1745013de31d3cbfb5c363e1d8..cb1e4c86b156c94cc15aed4cab418d7345949291 100644
(file)
--- a/
statemachine.py
+++ b/
statemachine.py
@@
-12,7
+12,7
@@
def play_sound (what):
return
soundfile = SOUNDS_DIRECTORY + what + '/' + random.choice(soundfiles)
hour = datetime.datetime.time(datetime.datetime.now()).hour
- volume = 60 if hour >= 22 or hour <= 6 else 9
5
+ volume = 60 if hour >= 22 or hour <= 6 else 9
0
fire_and_forget_cmd ([SOUNDS_PLAYER, "-volume", str(volume), soundfile], "StateMachine: ")
# convert an absolute nervlist to a relative one