finish up time example
This commit is contained in:
1 parent
5e08b9aff5
commit
cbb41f8570
10 files changed
+64
-3
No files matched your search
@@ -20,6 +20,7 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
#=time
|
||||||
#=foreward_keypress
|
#=foreward_keypress
|
||||||
#=inc_speech_volume
|
#=inc_speech_volume
|
||||||
#=dec_speech_volume
|
#=dec_speech_volume
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
#=time
|
||||||
#=foreward_keypress
|
#=foreward_keypress
|
||||||
#=inc_speech_volume
|
#=inc_speech_volume
|
||||||
#=dec_speech_volume
|
#=dec_speech_volume
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
1-FENRIR,1-KEY_T=time
|
||||||
1-FENRIR,1-KEY_A=foreward_keypress
|
1-FENRIR,1-KEY_A=foreward_keypress
|
||||||
#1-FENRIR,1-KEY_F2=inc_speech_volume
|
#1-FENRIR,1-KEY_F2=inc_speech_volume
|
||||||
#1-FENRIR,1-KEY_F3=dec_sound_volume
|
#1-FENRIR,1-KEY_F3=dec_sound_volume
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ punctuationLevel=1
|
|||||||
numberOfClipboards=10
|
numberOfClipboards=10
|
||||||
# define the current fenrir key
|
# define the current fenrir key
|
||||||
fenrirKeys=KEY_KP0
|
fenrirKeys=KEY_KP0
|
||||||
|
timeFormat=%H:%M:%P
|
||||||
|
|
||||||
[promote]
|
[promote]
|
||||||
enabled=True
|
enabled=True
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
[sound]
|
||||||
|
enabled=True
|
||||||
|
driver=sox
|
||||||
|
theme=default
|
||||||
|
volume=1.0
|
||||||
|
|
||||||
|
[speech]
|
||||||
|
enabled=True
|
||||||
|
driver=speechd
|
||||||
|
rate=0.75
|
||||||
|
pitch=0.5
|
||||||
|
module=espeak
|
||||||
|
voice=de
|
||||||
|
language=de
|
||||||
|
volume=0.8
|
||||||
|
autoReadIncomming=True
|
||||||
|
|
||||||
|
[braille]
|
||||||
|
enabled=False
|
||||||
|
layout=en
|
||||||
|
|
||||||
|
[screen]
|
||||||
|
driver=linux
|
||||||
|
screenUpdateDelay=0.4
|
||||||
|
|
||||||
|
[keyboard]
|
||||||
|
device=all
|
||||||
|
grabDevices=True
|
||||||
|
ignoreShortcuts=False
|
||||||
|
keyboardLayout=test
|
||||||
|
charEcho=True
|
||||||
|
charDeleteEcho=True
|
||||||
|
wordEcho=True
|
||||||
|
interruptOnKeyPress=False
|
||||||
|
|
||||||
|
[general]
|
||||||
|
debugLevel=1
|
||||||
|
punctuationLevel=1
|
||||||
|
numberOfClipboards=10
|
||||||
|
fenrirKeys=KEY_KP0
|
||||||
|
timeFormat=%H:%M:%P
|
||||||
|
|
||||||
|
[promote]
|
||||||
|
enabled=True
|
||||||
|
inactiveTimeoutSec=120
|
||||||
|
list=chrys,test
|
||||||
@@ -78,6 +78,7 @@ punctuationLevel=1
|
|||||||
numberOfClipboards=10
|
numberOfClipboards=10
|
||||||
# define the current fenrir key
|
# define the current fenrir key
|
||||||
fenrirKeys=KEY_KP0
|
fenrirKeys=KEY_KP0
|
||||||
|
timeFormat=%H:%M:%P
|
||||||
|
|
||||||
[promote]
|
[promote]
|
||||||
enabled=True
|
enabled=True
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ debugLevel=0
|
|||||||
punctuationLevel=1
|
punctuationLevel=1
|
||||||
numberOfClipboards=10
|
numberOfClipboards=10
|
||||||
fenrirKeys=KEY_KP0
|
fenrirKeys=KEY_KP0
|
||||||
|
timeFormat=%H:%M:%P
|
||||||
|
|
||||||
[promote]
|
[promote]
|
||||||
enabled=True
|
enabled=True
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
@ Ÿqp:pEpnpdpep p pdp:pLp”pspcphp.p p pup:pBpephpaplptpepnp p psp:pSpppepipcphpeprpnp p pmp:pSpepnpdpepnp p prp:pApnptpwp.p p pgp:pApnptpwp.paplplpep p p?p:pHpiplpfpep p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p 123 Mar 02 chrys87 (6,6K) Re: [orca-list] accessible blogging system and accessible radio player p1p2p4p p p p p pMpaprp p0p2p pcphprpypsp8p7p p p p p p p p p p(p7p,p7pKp)p pRpep:p p[poprpcpap-plpipsptp]p papcpcpepspspipbplpep pbplpopgpgpipnpgp pspypsptpepmp papnpdp papcpcpepspspipbplpep prpapdpipop ppplpapypeprp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p 125 Mar 03 WEB.DE Vorteils ( 52K) MasterCard Gold: 100 % geb�hrenfrei + 25 Euro Gutschein! +++ H”rb�cher þ50 % + Gutschein! 126 Mar 03 maria.kern@pear (373K) GRATIS statt 16,90 EUR: Multi-Quirl mit Drehautomatik, Edelstahl f�r Christian Hempfling 127 Mar 04 WEB.DE informie ( 54K) Ist Ihr PC nicht mehr auf dem aktuellsten Stand? 128 Mar 06 anja.weber@pear (171K) Heute nur 1,90 EUR: 16 GB microSDHC-Speicherkarte Toshiba Class 10 / UHS-I inkl SD-Adapter f�r Christian Hempfling 129 Mar 08 pizza.de Bestel ( 18K) Bestellung erfolgreich vermittelt 130 Mar 09 Stefanie.Hofbau ( 15K) Ihr Treue-Geschenk zum Kundenjubilaeum bei PEARL, Christian Hempfling 131 Mar 09 WEB.DE Vorteils ( 49K) 10 % Preisnachlass auf Werkstattleistungen bei A.T.U! +++ MasterCard Gold geb�hrenfrei! 132 Mar 09 maria.kern@pear (372K) GRATIS statt 22,90 EUR: Spiralschneider-Set f�r Gem�se, 2-teilig f�r Christian Hempfling 133 Mar 11 WEB.DE informie ( 52K) Ihr Gewinncode: RPUV6M 134 Mar 12 maria.kern@pear (187K) -75%: Garmin Head-Up-Display HUD+ mit iOS-Navi-App Europa nur 49,90 statt 199,99 EUR f�r Christian Hempfling 135 Mar 14 anja.weber@pear (171K) GRATIS statt 169,70 EUR: Paragon Festplatten-Tools 2015 f�r Christian Hempfling 136 Mar 16 pizza.de Bestel ( 15K) Bestellung erfolgreich vermittelt 137 Mar 16 chrys87 (8,9K) Re: [orca-list] focusing text of e-mail in Evolution Line truncated
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
|
|
||||||
|
import datetime
|
||||||
|
|
||||||
class command():
|
class command():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
@@ -11,9 +13,14 @@ class command():
|
|||||||
# the following has to been added to core/settings.py to the key 'general'
|
# the following has to been added to core/settings.py to the key 'general'
|
||||||
# the settings.py is used for default values
|
# the settings.py is used for default values
|
||||||
# 'timeFormat':"%H:%M;%P",
|
# 'timeFormat':"%H:%M;%P",
|
||||||
timeString = environment['runtime']['settingsManager'].getSetting(environment,'general', 'timeFormat')
|
timeFormat = environment['runtime']['settingsManager'].getSetting(environment,'general', 'timeFormat')
|
||||||
|
|
||||||
timeString = datetime.datetime.strftime(datetime.datetime.now(), '%H:%M:%P')
|
# get the time formatted
|
||||||
|
timeString = datetime.datetime.strftime(datetime.datetime.now(), timeFormat)
|
||||||
|
|
||||||
|
# present the time via speak and braile, there is no soundicon, interrupt the current speech
|
||||||
|
environment['runtime']['outputManager'].presentText(environment, timeString , soundIcon='', interrupt=True)
|
||||||
|
|
||||||
return environment
|
return environment
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
@@ -34,6 +34,7 @@ settings = {
|
|||||||
'punctuationLevel': 1,
|
'punctuationLevel': 1,
|
||||||
'numberOfClipboards': 10,
|
'numberOfClipboards': 10,
|
||||||
'fenrirKeys':['82'],
|
'fenrirKeys':['82'],
|
||||||
|
'timeFormat':'%H:%M:%P',
|
||||||
},
|
},
|
||||||
'promote':{
|
'promote':{
|
||||||
'enabled': True,
|
'enabled': True,
|
||||||
|
|||||||
Reference in new issue
Block a user