Commit Graph

4585 Commits (bfd6be347f0c88aabad8f287081a860b09359f3d)

Author SHA1 Message Date
Kris Gesling bfd6be347f
Merge pull request #2690 from pixelherodev/dev
Add support for `doas`
2021-02-05 14:46:29 +09:30
Kris Gesling b1be522972
Merge pull request #2820 from MycroftAI/feature/gui-get
Feature/gui get
2021-02-05 14:41:03 +09:30
Kris Gesling f8f351e4da
Merge pull request #2823 from MycroftAI/bugfix/2822
Reorder operations to ensure removed Skills are first unloaded.
2021-02-05 07:43:16 +09:30
Kris Gesling cae1cb751f Extend GUI interface unittests 2021-02-04 16:12:22 +09:30
Kris Gesling bfe2b59f90 Add get method for accessing GUI values 2021-02-04 16:12:22 +09:30
Kris Gesling 688d1fe438 Reorder operations to ensure removed Skills are first unloaded.
Prevents SkillManager from attempting to reload a Skill that has
just been removed from the system which results in a
FileNotFoundError

Fixes #2822
2021-02-04 11:56:29 +09:30
Kris Gesling 4c4250a079
Merge pull request #2821 from forslund/refactor/stop-speaking
Refactor/stop speaking
2021-02-02 16:40:56 +09:30
Åke Forslund 166e36fa84 Improve logic when waiting for play calls
Add logic to ensure the play_* functions are called at least once before
checking the call status.
2021-02-01 23:02:34 +01:00
Åke Forslund 3ede156c98 Only stop speaking if speaking is active
This also updates the relevant testcase
2021-02-01 20:26:44 +01:00
Åke Forslund 96bbd384ad Add proper docstring 2021-02-01 20:26:44 +01:00
Åke Forslund e3e52d63a0 Remove filesystem signal for stopping speech
The filesystem signal has not been used for quite some time and should
not be used.
2021-02-01 20:26:44 +01:00
Kris Gesling 8e51083882
Merge pull request #2815 from AIIX/Fix/SystemTextFrame
Bug Fix - Use the correct delegate, fix layouts, autofit text for System TextFrame
2021-02-01 11:57:00 +09:30
Kris Gesling 4ad1a49b3d
Merge pull request #2819 from MycroftAI/feature/github-actions-ci
Implement GitHub Actions for linting and unit tests
2021-01-29 20:30:40 +09:30
Kris Gesling f30adb85de
Merge pull request #2804 from forslund/bugfix/audioservice-issues
Bugfix/audioservice issues
2021-01-29 14:55:27 +09:30
Kris Gesling cd4dbb3a32
Merge pull request #2648 from forslund/feature/ready-check
Improve readiness check for all services
2021-01-29 08:15:59 +09:30
Åke Forslund 5df15245c4 Add Todo / comment regarding startup order 2021-01-28 17:24:21 +01:00
Åke Forslund b595f6cdad Always use the plural "Skills" for the service
Change all strings referring to the service to use "Skills service"
2021-01-28 17:24:21 +01:00
Åke Forslund 94d5e34fd0 Add started and alive hooks to skills process 2021-01-28 17:24:21 +01:00
Åke Forslund 93747a13ed Remove is_alive and all_loaded registration test 2021-01-28 17:24:21 +01:00
Kris Gesling 8a1ee0e106 Move ready check to enclosure; use ProcessStatus
Previously Mycroft reported mycroft.ready when Padatious had
finished it's first training run. This check has been shifted
to the enclosure service, and starts checking once the Padatious
training is complete.

Currently checks on readiness of audio, speech and skills services.
2021-01-28 17:24:21 +01:00
Kris Gesling 1273425799 add ProcessStatus to key services 2021-01-28 17:24:21 +01:00
Åke Forslund eeb44ede9a Add test cases for ProcessStatus 2021-01-28 17:21:33 +01:00
Kris Gesling cc3bf5b45a Change names for consistency 2021-01-28 17:21:33 +01:00
Åke Forslund bea1f008c6 Add ProcessStatus class
ProcessStatus tracks the process status and allows callbacks on changes
and status queries over the messagebus.

StatusCallbackMap is used to setup the callbacks

ProcessState is an enum tracking the different states.
2021-01-28 17:21:33 +01:00
Chris Veilleux c7e390f332 Remove config files for Travis CI and coveralls as they are no longer part of the CI process. 2021-01-28 09:58:59 -06:00
Chris Veilleux 2d83bd2ed1 Replace "build" and "coverage" badges with new versions based on GitHub Actions for the former and codecov for the latter. Also minor refactoring of headings and some language errors. 2021-01-27 14:31:36 -06:00
Chris Veilleux 221dfc6576 Build fails on Python 3.5 due to an "f string" in PIP 2021-01-27 14:28:14 -06:00
Chris Veilleux 6513e76680 Refactor and add comments 2021-01-27 13:39:31 -06:00
Chris Veilleux a6ef894ded Replace coveralls with codecov 2021-01-27 13:27:43 -06:00
Chris Veilleux 52eaf445ce Remove apt installs that are redundant of those in dev_setup.sh 2021-01-27 13:25:45 -06:00
Chris Veilleux c7b5783d89 The "tput" commands were failing in GitHub Actions, added CI check as there is no reason to execute those commands in a CI environment. 2021-01-27 12:49:48 -06:00
Chris Veilleux b5387a8888 Renamed file to unit_test.yml. Previous name, ci.yml, implied a full CI suite. Ony unit tests are run with this file. 2021-01-27 12:44:37 -06:00
Marvin Wichmann d21ea406e5 Migrate to Github Actions 2021-01-27 11:31:37 -06:00
Kris Gesling 73f0299cfa
Merge pull request #2722 from forslund/bugfix/latest-porcupine
Update for newer Porcupine engines
2021-01-25 16:29:48 +09:30
Åke Forslund aace28dfa3 Use lock around play and stop
Moves the stopping logic to separate method to be able to call from
locked contexts
2021-01-23 11:09:54 +01:00
Åke Forslund 082a2d481c Mark that audio has completed in dummy tts 2021-01-22 14:40:00 +01:00
Åke Forslund c00d37935a Simplify restore audio volume handler 2021-01-22 14:40:00 +01:00
Åke Forslund 8ce1615d75 Lock around tracklist access
Adds a lock and some logic to verify that the audio hasn't stopped
already.
2021-01-22 14:40:00 +01:00
Kris Gesling 8020e54eaf
Merge pull request #2814 from AIIX/bugfix/stop_clear_on_system_pages
Bug Fix - Don't clear namespace on every system page call
2021-01-22 20:15:27 +09:30
Aditya Mehra 1d29ceca0a Use the correct delegate and fix layouts 2021-01-21 17:49:20 +05:30
Aditya Mehra 0cbf36cd8e do not clear the namespace on every page / data send 2021-01-21 17:33:53 +05:30
Åke 1a179dacab
Merge pull request #2809 from PureTryOut/location-referenced-before-assignment-2
Stop location being referenced before assignment
2021-01-19 21:28:53 +01:00
Bart Ribbers eb8af7f87a Stop location being referenced before assignment
In cases where the location can't be determined by the device or a
config setting, the location variable wouldn't exist but it would still
be referenced.
This makes sure the variable always exists, but if not changed is equal
to None
2021-01-19 11:44:14 +01:00
Kris Gesling 5e6ba03695
Merge pull request #2805 from forslund/docs/filesystem
Docs/filesystem
2021-01-19 14:49:42 +09:30
Åke 99f43b964e
Merge pull request #2808 from MycroftAI/feature/vk-wait-for-service-msg
Add VK method to wait for audio service
2021-01-18 07:33:27 +01:00
Kris Gesling 303f6a3b95
Merge pull request #2792 from MycroftAI/feature/common-bus-connection
Refactor - common bus connection method
2021-01-18 15:58:37 +09:30
Kris Gesling 89555380d8 Add VK method to wait for audio service 2021-01-18 11:16:41 +09:30
Åke Forslund c641325e48 Add filesystem documentation to api documentation 2021-01-17 09:51:58 +01:00
Åke Forslund ae7472b9e1 Use real xdg module when running sphinxdocs
This fixes an error in settings.py where the REMOTE_CACHE can't be
built due to a mocking issue.
2021-01-17 09:42:53 +01:00
Åke Forslund 375adbbdf0 Make audioservice load backends without callback 2021-01-15 13:49:40 +01:00