Updated message spoken on hour for autotime.
This commit is contained in:
parent
02152bfb36
commit
2f189da4d0
@ -1,5 +1,6 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
import time
|
import time
|
||||||
|
import re
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Fenrir TTY screen reader
|
# Fenrir TTY screen reader
|
||||||
@ -63,7 +64,7 @@ class command():
|
|||||||
|
|
||||||
if presentTime:
|
if presentTime:
|
||||||
# present the time
|
# present the time
|
||||||
self.env['runtime']['outputManager'].presentText(_("It's {0}").format(timeString), soundIcon='', interrupt=False)
|
self.env['runtime']['outputManager'].presentText(_("It's {0}").format(re.sub('^0', '', timeString).replace(':00', " O'clock ")), soundIcon='', interrupt=False)
|
||||||
# and date if changes
|
# and date if changes
|
||||||
if presentDate:
|
if presentDate:
|
||||||
self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)
|
self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user