Commit Graph

3017 Commits (a76c3a6e7a0bc8551437766a381307ae06c3ddae)

Author SHA1 Message Date
Ale 2ee5718847
Merge pull request #1 from MycroftAI/dev
rebase 18.12.2018
2018-12-18 13:48:01 +01:00
Ale c8cfada9c6 Italian minor update in res/text/it-it/ (#1910)
Italian: minor update
2018-12-17 19:19:00 +01:00
Ale 12b2ee2350
Italian minor update created yes.voc 2018-12-17 19:00:10 +01:00
Ale 49c90109b6
italian minor update create skill.error.dialog 2018-12-17 18:57:34 +01:00
Ale 5672354d0b
italian minor update on phonetic_spellings.txt 2018-12-17 18:55:59 +01:00
Ale 2c32b6e3f0
Italian update: created file not.loaded.dialog 2018-12-17 18:54:30 +01:00
Ale a5e503919e
Italian: minor update 2018-12-17 18:51:50 +01:00
Ale 70b30f981f
Italian minor update: crate file no.voc 2018-12-17 18:50:02 +01:00
Ale 047d549755
Italian: minor update 2018-12-17 18:46:45 +01:00
Åke Forslund 3175baa2eb Stop hotword engines during reload
- Add overridable stop() method to HotwordEngine Class
- Add stop implementation to precise shutting down the runner
- Call wakeword_recognizer.stop() before reloading the listener configuration
2018-12-07 13:28:47 +01:00
devs-mycroft e22938cb68 Version bump from 18.8.7 to 18.8.8 2018-12-07 01:55:26 +00:00
Åke aebb9122f4
Merge pull request #1907 from forslund/bugfix/msm-0.6.3
Bump msm to 0.6.3
2018-12-07 00:41:08 +01:00
Åke Forslund a379c217eb Bump msm to 0.6.3
This fixes a potential issue where the startup processess halting when starting without internet connection.
2018-12-07 00:29:36 +01:00
Åke Forslund 1d7eabd0dd Add python 3.7 python version to travis tests
- Switch to Xenial so python 3.7 is available
- Install and use gcc-4.8 to make the mimic build faster
2018-12-06 17:17:36 +01:00
devs-mycroft 91fe3b79f8 Version bump from 18.8.6 to 18.8.7 2018-12-06 14:13:45 +00:00
Åke d53cff746a
Merge pull request #1903 from forslund/bugfix/log-config
Handle invalid json when loading log level
2018-12-06 10:40:37 +01:00
Åke Forslund 178319aa68 Handle invalid json when loading log level
Just ignore invalid log files
2018-12-05 22:32:23 +01:00
Åke cb5b9e85bf Handle failing refresh tokens (#1894)
Catch the HTTPError caused by the server returning a 401 status code when an expired refresh code is used to refresh the token.
2018-12-05 14:41:06 -06:00
Michael Nguyen 3bb15bc3c8
Merge pull request #1900 from forslund/feature/common-qa
Common query framework
2018-12-05 14:13:01 -06:00
Åke 74c1ee1678
Merge pull request #1890 from forslund/bugfix/gtts-version-update
Update gtts modules to fix google tts
2018-12-05 20:55:48 +01:00
Åke a7665dce10
Merge pull request #1902 from forslund/bugfix/extra-except
Enclosure mark-1: Remove extra except.
2018-12-05 18:16:12 +01:00
Åke edccf75f03
Merge pull request #1901 from forslund/feature/upgrade-padaos
Update padaos to better handle bad translations
2018-12-05 16:02:16 +01:00
Åke Forslund f95ff0a2f3 Remove extra except.
except except Exception -> except Exception
2018-12-05 12:36:53 +01:00
Åke Forslund 398d254ff1 Update padaos to better handle bad translations
This fixes cases where the translators have made a mistake and for
example omitted or added an extra parentheses
2018-12-05 12:28:44 +01:00
Åke 60462d8979
Merge pull request #1899 from MycroftAI/feature/gui
First pass at the GUI infrastructure
2018-12-05 09:23:08 +01:00
Steve Penrod 1e5ff1392f Feedback from code review
Several small changes based on the code review feedback:
* Drop '_' from classes like Enclosure_Mark1
* Adopt Python 3 style for class definitions and don't explicitly list '(object)'
* Slightly better documentation
* Moved MycroftSkill.show_html() to SkillGUI, resulting in code like self.gui.show_page('Weather.qml')
* Renamed SkillGUI.__dict to SkillGUI.__session_data.  This better reflects the
  how values are accessed in the QML.
2018-12-05 01:40:43 -06:00
Åke Forslund 70655bd9b6 Handle missing "enclosure" section in system config
Default to empty dict instead of None if the "enclosure" section is missing
2018-12-05 07:53:35 +01:00
Åke Forslund 7036c19bfc Add posibility to give bonus for visual skills
CQSVisualMatchLevel can be returned and if the device is a mark-2 a bonus will be given to the skill.
2018-12-04 23:47:52 +01:00
Åke Forslund 5b168c753b Add CommonQuerySkill class
Adds support for negotiating best answer for a questions

Currently three levels of confidence are defined

EXACT: If the query could be identified exactly and a response is returned.
    Example: The cockail skill could find a cocktail in the query that exists in
             it's database.

CATEGORY: A category of questions the skill handles could be identified.
    Example: The wiki-data skill can identify that the question is regarding
             A date of birth and finds an answer.

GENERAL: A general question and answer service could parse the question.
    Example: The wolfram alpha skill got a match for "How tall is Abraham
             Lincoln".
2018-12-04 22:58:25 +01:00
Åke 375becd6b4
Merge pull request #1893 from danielwine/feature/add-hungarian-language
Feature/add hungarian language
2018-12-04 15:25:22 +01:00
danielwine 7ec96b0d07 Add format_hu and update format.py along with tests 2018-12-04 15:09:20 +01:00
Steve Penrod 07bd6ef7af Code cleanup
Fixing PEP8 and such before merging into 'dev' branch.
2018-12-03 17:33:26 -06:00
danielwine 373e9f884f Add Hungarian dialog files 2018-12-01 20:38:43 +01:00
Steve Penrod 54daa84786 Support non-translated resources, QML under 'ui' folder
The QML files are typically not translated like other Mycroft resources,
they have internal translation tools.  And at times there are other
resources that don't need to be translated all the time, for example
color strings like "AliceBlue" which might be used by non-English
speakers.

So now the translation mechanism looks for resource file X as follows:
1) Look for <res_dir>/<lang>/X
2) Look for <res_dir>/X
3) Look for anywhere under locale/<lang>/.../X

And now the show_page() method starts looking for resources under the skill/ui folder.
2018-11-30 16:26:01 -06:00
Matthew D. Scholefield 69467dddd7
Merge pull request #1885 from forslund/feature/msm-0.6.1
Feature/msm 0.6.2
2018-11-30 11:20:40 -06:00
Steve Penrod 0ff744529b * Add tracking of the active namespaces for the GUI. Currently the namespace list
is kept in order, but old namespaces/skills are never culled.
* The active namespace list is synced on a GUIConnection level
* QML display requests now are sent as a list instead of a single entry, i.e.
  with "gui_urls" instead of "gui_url".  Currently a skill can only send a single
  QML, however.
* Change CLI GUI client to handle "gui_urls" instead of "gui_url"
2018-11-30 03:04:53 -06:00
Åke Forslund 41c6e86aec Changes on google's side requires update of gtts
updates the gtts and gtts-token module to the latest version.
2018-11-30 09:20:26 +01:00
Åke Forslund 9364b69834 Always use a fresh msm instance
- Use a fresh msm instance to  automatically load the skills_data
- write skills_data.json is now automagic so explicit write isn't needed.
2018-11-29 16:45:31 +01:00
Åke Forslund 8757f45bc9 Update msm to 0.6.2 2018-11-29 16:45:31 +01:00
Åke Forslund ec63492628 Add backwards compatibility
Make sure the older version of the install skill will still work. The SettingsManager.load/write_skills_data() will return the version 0 format of the skills_data and the write_skills_data() will convert to the version 1 format before doing the write.
2018-11-29 16:44:58 +01:00
Åke Forslund 8167396eb9 Add skills.json handling through msm
- Lock msm when doing an update
- Add device enpoint for uploading skills.json
- Add configuration value for skill store updates
- Upload skills manifest after update
2018-11-29 16:44:58 +01:00
Åke 169a55f576
Merge pull request #1879 from krisgesling/bugfix/issue-1877
Issue-1877 - fix ordinal followed by one
2018-11-26 09:36:56 +01:00
Åke Forslund 77c76416d3 Update "third one" test to match behaviour 2018-11-26 09:26:43 +01:00
Kris Gesling 32a3860bce Issue-1877 - fix ordinal followed by one
"Third one" will now return the expected 3 instead of 1.
2018-11-26 09:25:44 +01:00
Steve Penrod 685a729994 Enhance CLI GUI client
The GUI client built-in to the CLI now has these features:
* Activate/deactivate via Ctrl+G
* GUI 'window' shows active page title and all namespace variables
* Add fool-proof primitive draw(x,y, msg) that takes care of clipping, and padding
2018-11-23 09:29:16 -06:00
devs-mycroft 3e6dedbbcc Version bump from 18.8.5 to 18.8.6 2018-11-22 14:34:06 +00:00
Matthew D. Scholefield 9aadd59d44
Merge pull request #1887 from forslund/feature/upgrade-msk
Upgrade msk to 0.3.12
2018-11-21 09:38:59 -06:00
Matthew D. Scholefield ed07229304
Merge pull request #1886 from MycroftAI/bugfix/skill-tester-skill-id
include skill_id in response
2018-11-21 09:35:08 -06:00
Åke Forslund af8da5e39a Upgrade msk to 0.3.12
This includes the new msk submit action
2018-11-21 12:26:41 +01:00
Åke Forslund 7dcffab3f9 include skill_id in response
The intent_service now require the skill_id field to exist in the response, the converse request response now respons with the requested skill_id
2018-11-21 10:56:13 +01:00