|
@@ -3,12 +3,14 @@ import email_mailgun
|
|
|
import todo_wunderlist
|
|
import todo_wunderlist
|
|
|
import input_sources
|
|
import input_sources
|
|
|
import output
|
|
import output
|
|
|
|
|
+import current_time
|
|
|
|
|
|
|
|
def _get_services():
|
|
def _get_services():
|
|
|
return {
|
|
return {
|
|
|
'email': email_mailgun.Email(),
|
|
'email': email_mailgun.Email(),
|
|
|
'food': todo_wunderlist.Wunderlist(True, 'food'),
|
|
'food': todo_wunderlist.Wunderlist(True, 'food'),
|
|
|
'todo': todo_wunderlist.Wunderlist(False),
|
|
'todo': todo_wunderlist.Wunderlist(False),
|
|
|
|
|
+ 'time': current_time.CurrentTime('Europe/Dublin'),
|
|
|
#'play': music.Music(),
|
|
#'play': music.Music(),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -23,7 +25,7 @@ def launch_services(interrupted):
|
|
|
output.text('Ready.')
|
|
output.text('Ready.')
|
|
|
|
|
|
|
|
while not interrupted():
|
|
while not interrupted():
|
|
|
- t = input_sources.get_token(5)
|
|
|
|
|
|
|
+ t = input_sources.get_token(1)
|
|
|
if t is not None and t in services and services[t].initialized:
|
|
if t is not None and t in services and services[t].initialized:
|
|
|
output.debug('Entering %s' % t)
|
|
output.debug('Entering %s' % t)
|
|
|
services[t].call()
|
|
services[t].call()
|