Commit Graph

2054 Commits (6a977ac96b8b0b24342d7bf44e94a5f477dea538)

Author SHA1 Message Date
Å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
Steve Penrod d0e7c10800 Add CLI log clearing and other tweaks
Several more tweaks for the CLI:
* Ctrl+Left and Ctrl+Right are now available to cycle through previous
  entries, just like Ctrl+P and Ctrl+N
* Added ":clear log" command
2017-12-10 04:41:47 -05:00
Augusto Monteiro 15ceea94ef
Merge pull request #1298 from MycroftAI/feature/mycroft-use-fixes
Fix simple typo in switch to Github
2017-12-09 22:57:02 -05:00
penrods 66f94962a3 Fix simple typo in switch to Github
The missing space breaks the shell path test when switching to a Github install
2017-12-09 15:58:27 -06:00
devs-mycroft 5c2e691a47 Version bump from 0.9.7 to 0.9.8 2017-12-09 20:17:49 +00:00
Michael Nguyen 136f1af8c3 Bugfix/polling fixes (#1296)
* fixed identifier to be unique across all accounts

* now skills will load on http error and skills will upload once to web once identity2 exist

* extracted stuff out of __init__ so that skills work on load and skills get upload when identiy2 exists

* iniatiated class attribute to None
2017-12-08 21:27:06 -06:00
Åke 6873d0a0b7
Merge pull request #1297 from MycroftAI/fix-fann
Fix FANN dependency by locking to version
2017-12-09 00:25:08 +01:00
Matthew D. Scholefield 2c48610650
Fix FANN dependency by locking to version 2017-12-08 16:50:18 -06:00
Michael Nguyen 9ca6f89d69 fixed identifier to be unique across all accounts (#1295)
Now composed by user-uuid, settingsmeta-hash and skill-folder
2017-12-08 22:03:34 +01:00
Åke 21f20b9722
Merge pull request #1294 from MycroftAI/bugfix/settings_update_remote
Add missing variables, check settingsmeta
2017-12-08 21:03:57 +01:00
Michael Nguyen c0de5bcaaf added control flow for settings_meta not existing 2017-12-08 12:34:08 -06:00
Michael Nguyen ef0d2a2749
Merge pull request #1293 from forslund/bugfix/global-skill-settings
Handle failure in _save_uuid
2017-12-08 12:30:10 -06:00
Michael Nguyen 6c3c64b041 added missing variable fixes 2017-12-08 11:17:54 -06:00
Åke Forslund dd9135cfbb Handle failure in _save_uuid 2017-12-08 15:22:47 +01:00
Steve Penrod 5b960ca20f Reworked documentation at top of file 2017-12-07 17:11:41 -06:00
Michael Nguyen 5b19892de2 added fix for ake 2017-12-07 17:11:41 -06:00
Michael Nguyen cecf4609f0 added language to explain functionality, and fixed some spelling issues 2017-12-07 17:11:41 -06:00