Merge pull request #2031 from MycroftAI/feature/startup-feedback

Improve user feedback during startup
pull/2032/head^2
Åke 2019-02-28 22:47:31 +01:00 committed by GitHub
commit 583fb7dbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1 @@
< < < LOADING < < <

View File

@ -151,6 +151,9 @@ def check_connection():
bus.emit(Message("enclosure.mouth.reset"))
time.sleep(0.5)
enclosure.eyes_color(189, 183, 107) # dark khaki
enclosure.mouth_text(dialog.get("message_loading.skills"))
bus.emit(Message('mycroft.internet.connected'))
# check for pairing, if not automatically start pairing
try:

View File

@ -77,7 +77,10 @@ class PadatiousService(FallbackSkill):
LOG.info('Training complete.')
self.finished_training_event.set()
self.finished_initial_train = True
if not self.finished_initial_train:
LOG.info("Mycroft is all loaded and ready to roll!")
self.bus.emit(Message('mycroft.ready'))
self.finished_initial_train = True
def wait_and_train(self):
if not self.finished_initial_train:

View File

@ -412,6 +412,7 @@ class SkillManager(Thread):
skill_path, repr(e)))
if not has_loaded and not still_loading and len(skill_paths) > 0:
has_loaded = True
LOG.info("Skills all loaded!")
self.bus.emit(Message('mycroft.skills.initialized'))
self._unload_removed(skill_paths)