From 14e136f80c21d8adf41e0b5a9165badbdc45d8d6 Mon Sep 17 00:00:00 2001 From: Christopher Thompson Date: Fri, 9 Oct 2020 23:44:46 -0400 Subject: [PATCH] Add audio prompt for times up --- pomodoroprompt.py | 3 +++ requirements.txt | 1 + res/timesup.aac | Bin 0 -> 11881 bytes 3 files changed, 4 insertions(+) create mode 100644 res/timesup.aac diff --git a/pomodoroprompt.py b/pomodoroprompt.py index ea8bc68..88771b4 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -3,6 +3,7 @@ import time from datetime import datetime, timedelta from pathlib import Path from pytz import timezone +from playsound import playsound import pytz import zenipy @@ -87,6 +88,7 @@ def main(): to_go = end-datetime.now(pytz.utc) print('\r', str_minutes(to_go), sep='', end='') time.sleep(1) + playsound('res/timesup.aac') whatdid = pomodoro_prompt_report(whatnext) record_task(whatdid, start) log_step('Completed pomodoro: ' + whatdid, start, True) @@ -100,6 +102,7 @@ def main(): to_go = end-datetime.now(pytz.utc) print('\r', str_minutes(to_go), sep='', end='') time.sleep(1) + playsound('res/timesup.aac') continue except KeyboardInterrupt: if start is None: diff --git a/requirements.txt b/requirements.txt index c0c24e4..15a5ae4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ pytz tzlocal zenipy +playsound diff --git a/res/timesup.aac b/res/timesup.aac new file mode 100644 index 0000000000000000000000000000000000000000..68c1e8be127256c3b3cb36c773923680d8c7281f GIT binary patch literal 11881 zcmb`t^;=Z$7d1RX4&5zE$52BfAPvHRIKa@|jijW~(%}Ho-Hk{$Qj*djDM(3&q$m%J z-_Lu!zdqOXoIhZ%d#}CjwfEWQ+?~LraQ$zAQVaq4J|dx9|L-53y9bEuTflc%1HTOf5p ziciRk0tSbih!6zLYO?&;TVHLoo6BV`$yc}So{QSNRpBW1DszCqs!X@8w|z<^3^)?`n4BLz+9fRUjbA~@_Pb)OBUbg_%$yBEx6-ADa}nR43woSVf{-DK z41(|3eW`MCf2-49{; zPz!P0ppRr>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