From: Ralf Jung Date: Wed, 5 Mar 2014 18:08:57 +0000 (+0100) Subject: silence sphinx a bit X-Git-Url: https://git.ralfj.de/saartuer.git/commitdiff_plain/8fa0d3c2b93ded551a61f48e2c8701e5f2370b76?ds=sidebyside silence sphinx a bit --- 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