Åke Forslund
e9cc683dbe
Allow startup if update attempt occurs
...
update_attempt will block waiting for the update to complete and the
update will shutdown the running skills process if an update is needed.
2019-07-26 17:40:59 +02:00
Åke
5eba242487
Merge pull request #2221 from forslund/refactor/split-skills-core
...
Split mycroft.skills.core
2019-07-26 08:54:26 +02:00
Chris Veilleux
0bde1bc9df
Refactor skill service ( #2220 )
...
Major refactoring of the skills startup sequence
- Restructure to a less nested structure
- Remove usage of globals by wrapping a lot of state variables into a class this allows for things like caching a negative pairing status throughout the startup process
2019-07-26 08:53:27 +02:00
devs-mycroft
acbb0f0dc2
Version bump from 19.2.13 to 19.2.14
2019-07-24 12:59:37 +00:00
Åke
875d147d84
Merge pull request #2231 from MycroftAI/bugfix/mycroft-msm-lock
...
Limit creation attempts of msm-lock
2019-07-24 13:58:13 +02:00
Åke Forslund
846723cca0
Limit creation attempts of msm-lock
...
the msm-lock was created in global scope making all mycroft processes
trying to create it. This moves init to actual usage of the lock
2019-07-24 12:16:05 +02:00
Åke
dbf0da6baf
Merge pull request #2230 from forslund/bugfix/message-bus-build-url
...
Bugfix/message bus build url
2019-07-24 09:06:07 +02:00
Åke Forslund
b4c99b83ce
Add basic tests for message bus client
...
Inital tests checks that the url generated from config is correct and
that a websocket client is created.
2019-07-24 08:50:28 +02:00
Åke Forslund
4034745340
Restore build_url static member to messagebus client
2019-07-24 08:49:44 +02:00
Åke
998697b0ff
Merge pull request #2228 from MycroftAI/bugfix/tts-load-twice
...
init tts_hash to an actual hash
2019-07-23 23:23:33 +02:00
David Wagner
ed6324d83b
tts_hash to an actual hash
...
tts_hash was initially set to the text of the config rather than hash so always loaded twice on boot (~750ms for create() for Mimic2)
2019-07-23 15:31:21 -05:00
Åke
add4979527
Merge pull request #2218 from forslund/feature/msm-0.7.9
...
Update msm to v0.7.9
2019-07-23 07:05:10 +02:00
Åke Forslund
0689f60747
remove "is True" check
2019-07-22 09:25:49 +02:00
Åke Forslund
db94123d96
Replace oldstyle super class access with new
2019-07-22 09:24:36 +02:00
Åke Forslund
5dc8802146
Look over docstrings.
...
Update docstrings of the files affected by this reoriganization.
- PEP 257
- Add missing
2019-07-22 09:16:53 +02:00
Åke Forslund
b7b5e9bfcb
Refactor mycroft.skills.core
...
- MycroftSkill and related core functions to mycroft_skill.py
- FallbackSkill to fallback_skill.py
- Add important classes decorators and functions to __init__.py
- move SkillGUI class to the enclosure along with the other enclosure
interfaces
core.py retains the same members as previously by means of imports to
retain backwards compatibility. When most of the available skills starts
using this new structure properly
2019-07-22 06:46:31 +02:00
Åke
bb779e6136
Merge pull request #2217 from forslund/bugfix/quick-download
...
Move quick skill update to after internet check
2019-07-19 13:13:03 +02:00
Åke
95927fbfd0
Merge pull request #2216 from forslund/bugfix/no-color-term
...
Check for terminals ability to display colours
2019-07-19 11:33:42 +02:00
Åke
160a06fe2f
Merge pull request #2213 from MycroftAI/refactor-message-bus
...
Refactor message bus
2019-07-19 08:34:01 +02:00
Chris Veilleux
edcc1c261e
simplified super() call to use Python 3 syntax
2019-07-19 08:16:55 +02:00
Chris Veilleux
2c67381aee
added module level docstring
2019-07-19 08:16:55 +02:00
Chris Veilleux
be3dff99a1
added licence info to files without it and a missing docstring
2019-07-19 08:16:55 +02:00
Chris Veilleux
4e9130114e
remove validate_param since it's now unused
2019-07-19 08:16:54 +02:00
Chris Veilleux
d8f3095d40
Rename the message bus client and abstract config loading
...
Message bus config loading is now shared by service and client.
messagebus.client.ws file is still available in case skills are using it. It is a backport that inherits from the new MessageBusClient class. Adds depreciation warning.
2019-07-19 08:16:54 +02:00
Chris Veilleux
3efce9639e
Clean up of messagbus/send.py
...
- reorder imports
- refactor docstrings for consistency
- rename camel case variables to use snake case
2019-07-19 08:16:54 +02:00
Chris Veilleux
7a7ed8944d
Clean up of message.py
2019-07-19 08:16:54 +02:00
Chris Veilleux
468fb800a7
refactor messagebus service:
...
- add some docstrings
- put config retrieval in a function
- add log messages
2019-07-19 08:16:09 +02:00
Åke
345e28f5fa
Merge pull request #2206 from MycroftAI/doc/readthedocs2
...
Quickfix: readthedocs build
2019-07-18 14:55:13 +02:00
Åke Forslund
2de88c3166
Update msm to v0.7.9
...
- Clean up temporary folders
- Add the mark-2 related platforms
2019-07-18 14:26:47 +02:00
Åke Forslund
8b03a93dc1
Move quick skill update to after internet check
2019-07-18 14:25:31 +02:00
Åke Forslund
3100c72c13
Check for terminals ability to display colours
...
On serial connections, with weird terminal emulators or when run interactively
the terminal may not support colours this would cause the dev_setup to
be aborted. This adds a simple check for terminal colors.
"-1" for no color support was empirically established.
2019-07-18 14:00:41 +02:00
Åke
8c075e2600
Merge pull request #2211 from forslund/feature/send-settings-on-pairing
...
Trigger settings update on pairing complete
2019-07-15 13:58:36 +02:00
Åke Forslund
3e0cac8c1e
Trigger settings update on pairing complete
2019-07-14 21:01:44 +02:00
Åke Forslund
ddb9d5b0a2
Hack: Fix readthedocs build
...
The Mycroft API documentation were blank due to the import of the yaml
module for some reason. This moves the import into the method where it's
used
2019-07-14 08:17:05 +02:00
Kris Gesling
efa69e0526
'next {day}' to be 3-9 days in future ( #2184 )
...
* 'next {day}' to be 2-9 days in future
* restore module level docstring
* remove lang specific definition of 'next'
* restore module level docstring
2019-07-13 11:53:38 +02:00
Åke
ffe81156ce
Merge pull request #2203 from MycroftAI/bugfix/ntp-sync
...
Add mycroft_mark_2pi to platforms needing ntp sync
2019-07-12 14:04:24 +02:00
David Wagner
4b480dcf32
Add mycroft_mark_2pi to platforms needing ntp sync
2019-07-12 06:56:35 -05:00
Åke
cddb1ab981
Merge pull request #2190 from strugee/patch-1
...
Recognize "confirm[ed]" as a word for "yes"
2019-07-12 08:41:04 +02:00
Åke
fc0a253c28
Fetch CLI log path from config if available ( #2192 )
...
* Fetch CLI log path from config if available
* Remove the old log locations
2019-07-11 17:40:40 -05:00
Åke
da00b38f82
Explain the config system used here. ( #2201 )
...
- Add module docstring
- Add comment in the init class method about setting up the log level
- Add mycroft.util.log to the readthedocs documentation
- Add comment in the config about the log_level
2019-07-11 17:39:50 -05:00
Åke
5555fa398d
Merge pull request #2197 from forslund/feature/skills-startup-speedup
...
Skills process startup speedup
2019-07-10 16:30:48 +02:00
Åke
ebda6a8474
Merge pull request #2198 from forslund/feature/no-report-empty
...
Only report STT timing if transcription exists
2019-07-10 08:02:58 +02:00
Åke Forslund
b79bd0e317
Remove unused import of sys
2019-07-09 22:54:24 +02:00
Åke Forslund
b0ddb9a74a
Only report STT timing if transcription exists
...
To clean up the metrics log empty transcriptions from false activation
are no longer reported.
2019-07-09 22:54:06 +02:00
Åke
80b50598fb
Merge pull request #2196 from forslund/feature/skill-timing-report-skill_id
...
Add skill_id to skill handler timing report
2019-07-09 22:42:58 +02:00
Åke Forslund
94ab53f47e
Handle sending skill manifest
...
Skill manifest is now sent on each startup if paired otherwise after successful pairing.
2019-07-09 16:52:27 +02:00
Åke Forslund
d87ff3a535
Launch settings fetching in thread.
2019-07-09 16:52:27 +02:00
Åke Forslund
cd16404455
Download skills if they're stale or in unknown state
...
Checks if the skills haven't been updated for more than 2 weeks or if
the last_download is undefined. last_download may be undefined if
the .msm file is missing or if the list of installed requirements is
missing so skill requirements may be missing.
This also makes sure the skills are normally loaded before the an update
attemt is tried.
2019-07-09 16:52:27 +02:00
Åke Forslund
58cab5cddb
Add support for slowloading skills
...
Upgrade msm to 0.7.8
Using the new max_threads parameters to MycroftSkillsManager.apply() the
skill loading is reduced to 2 threads if it's during runtime while a
fast update (20 threads) are used if not all default skills are
installed to speed up getting core into a 100% operational state.
2019-07-09 16:52:10 +02:00
Åke
8e4b2fca2b
Merge pull request #2187 from krisgesling/fix/non-month-may
...
Fix parsing dates in utterances that include non-month 'may'
2019-07-08 15:56:02 +02:00