Add audio prompt for times up

This commit is contained in:
Christopher Thompson 2020-10-09 23:44:46 -04:00
parent 161be7de88
commit 14e136f80c
3 changed files with 4 additions and 0 deletions

View file

@ -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:

View file

@ -1,3 +1,4 @@
pytz
tzlocal
zenipy
playsound

BIN
res/timesup.aac Normal file

Binary file not shown.