Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hacksaar
Sphinx
Commits
83c2a92d
Commit
83c2a92d
authored
Mar 08, 2015
by
Ralf
Browse files
further decrease volume
parent
e3c757df
Changes
1
Hide whitespace changes
Inline
Side-by-side
statemachine.py
View file @
83c2a92d
...
...
@@ -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
=
6
0
if
hour
>=
21
or
hour
<=
6
else
8
0
volume
=
5
0
if
hour
>=
21
or
hour
<=
6
else
7
0
fire_and_forget_cmd
([
SOUNDS_PLAYER
,
"-volume"
,
str
(
volume
),
soundfile
],
"StateMachine: "
)
# convert an absolute nervlist to a relative one
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment