Commit Graph

2870 Commits (32a3860bce07c8e647310ebc68b51c325f92f02c)

Author SHA1 Message Date
Åke Forslund c7da63c536 Fix ./start-mycroft.sh unittest
Move the nose2 commandline from the .travis.yml to the start-mycroft.sh
script and call ./start-mycroft.sh unittest from travis.
2017-12-22 03:51:58 -06:00
Åke b0e919376e
Merge pull request #1322 from MycroftAI/feature/speech-pause
Add pause in out-of-box speech
2017-12-22 10:04:02 +01:00
penrods e4ca6e3a64 Add code to load appropriate config pieces 2017-12-22 02:34:01 -06:00
penrods 54bdf0d392 Add pause in out-of-box speech
The out-of-box spiel given by Mycroft was coming at the user pretty fast.
This adds a momentary pause in the spoken text.

Also cleaned up some ugly messagebus interaction to use the speak() method.
2017-12-22 01:48:45 -06:00
Åke 277e8bc506
Merge pull request #1320 from forslund/feature/oauth-token
Add oauth token endpoint to device api
2017-12-21 17:56:43 +01:00
Åke Forslund 2c0237cb8d Add oauth token endpoint to device api
When a token has been generated for the provided developer credentials
id the method will return it as json, if it doesn't exist HTTPError will
be raised (404 not found)
2017-12-21 14:52:48 +01:00
Michael Nguyen 305825369f fixed unit test 2017-12-20 15:59:09 -06:00
Michael Nguyen 8e2c97484c fixed skill settings migration for web ui 2017-12-20 15:59:09 -06:00
Åke Forslund 5c47ed8cd8 Allow aarch64 architecture to download arm binary
aarch64 linux systems should provide backwards compatibility for armv7
compiled binaries.
2017-12-20 15:46:33 -06:00
Åke Forslund 41c2f43022 Handle unknown architectures better 2017-12-20 15:46:33 -06:00
Augusto Monteiro e3243e2a62
Merge pull request #1307 from forslund/bugfix/extract_datetime
Minor fix of extract datetime
2017-12-19 15:15:22 -05:00
Åke 742558046d Python 2/3 compatibility (#1259)
Add Python 2/3 compatibility

====  Tech Notes ====
This allows the main bus, skills and cli to be run in both python 2.7 and
3.5+.

Mainly trivial changes
- syntax for exceptions
- logic for importing correct Queue module
- .iteritems -> future.utils.iteritems when accessing dicts key value
pairs

* Allow audio service to be run in python 3
* Make speech client work with python 3
* Importing of Queue version dependent
* Exception syntax corrected
* Creating sound buffer is version dependant
- Adapt context use range from builtins
- Use compatible next() instead of .next() when walking the skill
directory

* Make CLI Python 3 Compatible
- Use compatible BytesIO instead of StringsIO
- Open files as text instead of binary
- Make sure integer divisions are used

* Make messagebus send compatible
* Fix failing travis

Re-add future 0.16.0

* Make string checks compatible
* basestring doesn't exist in python 3 so it's imported from the "past"
* Fix latest compatibility issues in speech client
- handle urllib
- handle encoding before calling md5

* Make Api.build_json() python 2/3 compatible
2017-12-18 17:24:21 -06:00
Åke 8236a2ad11
Merge pull request #1309 from MycroftAI/bugfix/issue-1265
Add build essential to Debian dependencies
2017-12-18 17:27:13 +01:00
devs-mycroft 08dfcb4780 Version bump from 0.9.9 to 0.9.10 2017-12-15 12:32:44 +00:00
Åke 52f9473a55
Merge pull request #1315 from MycroftAI/feature/fuzzys-revenge
Add new parse function fuzzy_match (take 2)
2017-12-15 13:14:16 +01:00
Åke Forslund b7f5bd2dc4 Fix failing test (changed limit) 2017-12-15 13:03:57 +01:00
Åke 3063202dc0
Merge pull request #1313 from MycroftAI/feature/translate-values
Add MycroftSkill.translate_namedvalues()
2017-12-15 12:57:57 +01:00
penrods 5a12fc471c Add new parse function fuzzy_match (take 2)
A fuzzy_match() produces a basic ratio match of two strings.
The result is between 0.0 and 1.0, where 1.0 is a perfect
match.
2017-12-15 05:54:14 -06:00
Åke Forslund 9fa4b4e138 Empty except->except Exception:
This fixes pep8-speak issue
2017-12-15 12:40:41 +01:00
penrods de328a43d9 Fix PEP8 2017-12-15 05:19:11 -06:00
penrods 0385f46fcc Add MycroftSkill.translate_namedvalues()
This method will load a translateable (and expandable) list of names
and values from the dialog/xx-xx/ folder of a skill.  For example:

dialog/en-en/Colors.value
```
# List colors and their hex RGB values
alice blue, #F0F8FF
antique white, #FAEBD7
aqua, #00FFFF
```
2017-12-15 05:07:16 -06:00
Åke 02d34e3fe9
Merge pull request #1311 from MycroftAI/feature/resource-fixes
Fix misspelling in a text resource
2017-12-15 11:00:00 +01:00
penrods b4f5039f3d Fix misspelling in a text resource
Fixes a misspelling and removes the "i am awake.dialog" which is
no longer used.  (The dialog is handled by the (Sleep skill)[https://github.com/MycroftAI/skill-naptime] instead.
2017-12-15 03:56:51 -06:00
penrods e5d68923db Standardized skiller.sh output of README.md
The format of the README.md out of the skiller.sh utility was slightly
different than the format produced by the web (metaeditor)[http://rawgit.com/MycroftAI/mycroft-skills/master/meta_editor.html].
Changed so outputs match for future machine-consumption simplicity.
2017-12-15 03:51:05 -06:00
Åke c85fd7d75a
Merge pull request #1310 from MycroftAI/feature/fix-vt100-cli
CLI: interpretation of VT100 keys was flipped
2017-12-15 08:50:30 +01:00
penrods fb9f6bb5f6 CLI: interpretation of VT100 keys was flipped
The mapping from a VT100 key to NCURSES PgUp/PgDn was inverted,
resulting in different behavior for a keyboard and monitor plugged
in to the Pi than when SSH'ed in to the unit.
2017-12-15 01:41:03 -06:00
Matthew D. Scholefield ed00b3d666
Add build essential to Debian dependencies
Fixes #1265
2017-12-14 10:39:20 -06:00
devs-mycroft 294e13ab52 Version bump from 0.9.8 to 0.9.9 2017-12-14 04:59:01 +00:00
Åke Forslund 5b298c54cb Revert "Version bump from 0.9.8 to 0.9.9"
This reverts commit cbfe9c65b1.
2017-12-14 02:54:24 +01:00
devs-mycroft cbfe9c65b1 Version bump from 0.9.8 to 0.9.9 2017-12-14 01:35:28 +00:00
Michael Nguyen 4b7d6e5526 Feature/overwritten settings (#1304)
prevent settings initalization from skills __init__ to override settings.json values
2017-12-13 23:25:33 +01:00
Åke f61ccfeed7
Merge pull request #1308 from MycroftAI/feature/boot-sequence
Add boot sequence visual indicators
2017-12-13 19:47:25 +01:00
penrods e3988e6cdc Add boot sequence visual indicators
Creating several visual feedback points to let users know what is
occurring in the boot sequence.  This also expects a new version
of the enclosure.

* On shutdown and reset, change eye color to a dark gray
* On initial startup the enclosure will have left the eyes at a
  yellow color, indicating that it is on but not fully running yet.
  When the enclosure comes up (and doesn't kick off the out-of-box
  or the notice that they need to run wifi setup) it will begin to
  scroll an "UPDATING" message.

This assumes that someone else will remove the "UPDATING" message.
That gets handled by the Mycroft-Mark-1 skill, which resets the
mouth and sets the eye color to default.
2017-12-13 12:23:42 -06:00
Michael Nguyen 0bbb05ddd2
Merge pull request #1300 from MycroftAI/feature/meta-crashes
Protect against bad settingsmeta.json
2017-12-13 10:50:54 -06:00
Åke 4425bec936
Merge pull request #1302 from JarbasAl/enclosurefix
fix _hack_check_for_duplicates
2017-12-13 15:09:49 +01:00
Åke Forslund 01b37f06eb Handle "tonight" and text containing only a date
- "tonight" is re-interpreted as PM
- check is performed to check if previous word exist before accessing it
to handle sentences containing only a simple date
2017-12-13 15:00:57 +01:00
penrods f16dae18a2 Add platform type/build to info sent to register
Add platform information (type and build #) to the messages
send to the server to pair and to update version info.
2017-12-13 02:54:19 -06:00
Michael Nguyen 2bea82353c
Merge pull request #1303 from MycroftAI/bugfix/translate
Fix bug in rendering data in __translate_file
2017-12-12 14:10:01 -06:00
Matthew D. Scholefield b70a3f488e Fix bug in rendering data in __translate_file 2017-12-12 13:47:01 -06:00
Åke Forslund 7b091e9b46 Add failing test cases for extract_datetime
- "tonight" isn't handled
- sentences containing nothing but a date throws an exception ("december 3")
2017-12-12 08:32:54 +01:00
Åke 818ce88bf6
Merge pull request #1301 from JarbasAl/pt-test-fix
fix pt-pt unicode troubles
2017-12-12 08:27:39 +01:00
jarbasai 5c367e079a fix _hack_check_for_duplicates 2017-12-12 04:00:01 +00:00
jarbasai aa4d3a47cf pep8 strikes again 2017-12-12 03:22:11 +00:00
jarbasai d7926cde07 pt unicode bug fix in normalization 2017-12-12 03:10:00 +00:00
jarbasai b301890cc5 pt unicode bug fix in datetime extract 2017-12-12 03:07:49 +00:00
jarbasai 745de21e57 pt unicode bug fix in number parse 2017-12-12 03:05:31 +00:00
jarbasai 8f895118ce fix pt-pt tests TODOs 2017-12-12 02:32:44 +00:00
Åke d7ee9717ce
Merge pull request #1299 from MycroftAI/feature/cli-clear
Add CLI log clearing and other tweaks
2017-12-10 15:40:18 +01:00
Steve Penrod b56159f7d7 Fix pep8 issue 2017-12-10 06:09:18 -05:00
Steve Penrod 168b6b4dd5 Protect against bad settingsmeta.json
When there is an error in settingsmeta.json, the load of the skill
would fail.  Now it generates an error message but continues on.
Additionally the exception is caught and now displays information
about where the error in the JSON is (line and column).
2017-12-10 04:48:12 -05:00