From 8fa0d3c2b93ded551a61f48e2c8701e5f2370b76 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 5 Mar 2014 19:08:57 +0100 Subject: [PATCH 1/1] silence sphinx a bit --- statemachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statemachine.py b/statemachine.py index 645737c..cb1e4c8 100644 --- 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 95 + volume = 60 if hour >= 22 or hour <= 6 else 90 fire_and_forget_cmd ([SOUNDS_PLAYER, "-volume", str(volume), soundfile], "StateMachine: ") # convert an absolute nervlist to a relative one -- 2.30.2