Commit Graph

344 Commits (5f5aeedd15a4191ee657ef0f6bdbbb51c7664a8d)

Author SHA1 Message Date
Augusto Monteiro 'Sparky be2d97907a #683 - removing msm path configuration 2017-04-21 11:00:35 -07:00
Åke Forslund 44949f2d8b Fix skill container.
Switch from Intent to IntentService.
2017-04-21 15:16:49 +02:00
Augusto Monteiro 'Sparky 2a4e5c3e73 #671 - comparing the dates inside de loop instead of add all in a array 2017-04-19 20:08:48 -05:00
Augusto Monteiro 'Sparky 4e885ee4c5 #671 - making auto load doesn't watch hidden folders changes 2017-04-19 20:08:48 -05:00
Augusto Monteiro 'Sparky d21b0bd948 #671 - Fixing autoload when folder doesn't exists 2017-04-17 11:27:07 -07:00
Augusto Monteiro 'Sparky 237827a099 #671 - fixing auto load 2017-04-17 10:26:34 -07:00
Steve Penrod c6e6c8244a Reverting to 'msm' (as in repo) instead of 'msm.sh' 2017-04-14 13:50:30 -07:00
Steve Penrod 60abb41fc6 Fix for issue #659, broken git install after recent changes
There are several issues with the changes recently made to break out
Skills from mycroft-core.
* The subdirectory mycroft/skills/intent/ is left behind when you do
  a pull, so the change to core.py that tries to
  "import mycroft.skills.intent" gets confused.  I renamed the file
  intent.py to intent_service.py
* Added a bunch of comments
* Made a bunch of functions "private", using the leading _
* The MSM install was failing.  Still working on that, but we should
  probably make msm.sh a part of mycroft-core instead of its own
  repo.
* Restored some mycroft.conf values that I noticed got lost during
  an automatic merge.
2017-04-14 01:53:29 -07:00
Åke Forslund e9c94d0305 Update skill container to use Intent class
the command line to enable the intent parsing is now --enable-intent
2017-04-08 11:41:31 +02:00
Åke Forslund 95641451fa Fix PEP-8 issues 2017-04-08 11:08:13 +02:00
DMendyke ed21c1471c Merge pull request #638 from MycroftAI/dmendyke.service.instance
Code to prevent multiple instances of a service
2017-04-07 15:40:26 -07:00
Augusto Monteiro 'Sparky 621c7c4437 #636 - Fixing pep8 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky b35c012692 #636 - Adding ignore logs 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky 13fe3fe12a #636 - Removing old skills folder 2017-04-06 17:14:18 -07:00
Augusto Monteiro 'Sparky 54db8c6c33 #546 - Fixing pep8 2017-04-06 16:55:09 -07:00
Augusto Monteiro 'Sparky 18f4ff3e90 #546 - Fixing pep8 2017-04-06 16:42:43 -07:00
Augusto Monteiro 'Sparky 2e172433aa #546 - Adding feedback to user that mycroft is updating 2017-04-06 16:30:58 -07:00
Augusto Monteiro 'Sparky f708a1e15c #546 - Using events 2017-04-06 16:08:23 -07:00
dmendyke 0bfbe58467 pep8 2017-04-06 15:57:34 -07:00
dmendyke c7645be49c Added PID locking to both 'voice' and 'service' services. 2017-04-06 12:59:31 -07:00
Augusto Monteiro 'Sparky b5aeca02ac #546 - Removing unsed import 2017-04-05 17:11:20 -07:00
Augusto Monteiro 'Sparky aeb73054da #546 - Installing Default Skills 2017-04-05 16:46:54 -07:00
Augusto Monteiro 'Sparky 1f59c50df5 #546 - Removing Skills 2017-04-05 16:23:42 -07:00
dmendyke f81d5b1249 Added locking PID file creation to 'skills' service 2017-04-05 15:16:32 -07:00
Augusto Monteiro 'Sparky 9728e645bc #546 - Adding Skill Install 2017-04-05 15:11:45 -07:00
Augusto Monteiro 'Sparky f76685d46d #546 - Removing prioritary skills loading 2017-04-04 17:11:33 -07:00
Augusto Monteiro 'Sparky 1150fc9a54 #546 - Making Intent a class instead of skill 2017-04-04 16:48:40 -07:00
Augusto Monteiro 'Sparky b89ffcfd37 #546 - Removing skills 2017-04-04 11:12:11 -07:00
Augusto Monteiro 'Sparky 12620694b3 #630 - Fixing SkillInstaller, using text to match instead of exit code 2017-04-03 11:18:56 -07:00
Augusto Monteiro 601948ff3f Merge pull request #533 from MycroftAI/feature/issue-527
#527 - skill to skill installation
2017-03-31 15:04:54 -07:00
penrods bd23d26011 Implementing WolframAlpha changes from issue #600
This limits WolframAlphaSkill to only query WolframAlpha when the utterance doesn't match an intent (calling the fallback handler) and it contains an obvious question phrase.
2017-03-30 17:15:57 -07:00
kfezer a475341346 Merge branch 'dev' into feature/issue-553 2017-03-30 20:49:36 +00:00
kfezer 622765015d Revert "Fixes Issue 588" 2017-03-30 08:50:24 -07:00
kfezer f7c781d119 Update core.py
Fixed Pep8 Issue
2017-03-29 16:27:49 -07:00
kfezer 4c24466120 Merge branch 'dev' into feature/issue-553 2017-03-29 17:28:10 +00:00
kfezer 80b54296b3 Merge pull request #591 from MycroftAI/bugfix/issue-588
Fixes Issue 588
2017-03-29 16:40:06 +00:00
kfezer de27ad4caa Merge pull request #572 from SoloVeniaASaludar/bugfix/issue-571
Update core.py
2017-03-29 16:39:06 +00:00
kfezer cf4bc9a20d Update not.found.dialog
Fixed typo
2017-03-29 09:35:48 -07:00
kfezer 4e1b739474 Update choose.dialog
changed some wording
2017-03-29 09:35:28 -07:00
Augusto Monteiro 814f2fb441 #527 - fixing pep8 2017-03-28 11:20:00 -07:00
Augusto Monteiro 5ec0d0d48a #527 - cleaning all events 2017-03-28 11:20:00 -07:00
Augusto Monteiro 0c60da0883 #527 - cloning msm 2017-03-28 11:20:00 -07:00
Augusto Monteiro 5def9aceca #527 - Fixing rename 2017-03-28 11:20:00 -07:00
Augusto Monteiro 2b96f2dd19 #527 - Adding msm install script and renaming skill 2017-03-28 11:20:00 -07:00
Augusto Monteiro 1f363a245b #527 - skill to skill installation 2017-03-28 11:20:00 -07:00
kfezer@gmail.com 348a9111a2 modified: mycroft/skills/core.py
Fixed typo
2017-03-27 13:56:13 -07:00
Åke Forslund be8dd47250 Add expect_response option to speak_methods
if expect_response flag is set to True the stt will be triggered just as if the wakeword has been received or the button on the mycroft enclosure has been pressed.
2017-03-17 20:20:27 +01:00
SoloVeniaASaludar 852d1d3c15 Update core.py 2017-03-16 16:43:53 +01:00
SoloVeniaASaludar a8f7e84a2c Update core.py 2017-03-16 16:29:11 +01:00
Augusto Monteiro 319f39801a #566 - Adding normalize import on wolfranalpha 2017-03-15 14:31:10 -05:00
Åke Forslund 8df393c813 Remove handler from registered_intents list, it wasn't used 2017-03-14 22:01:48 +01:00
Åke Forslund 49c5a3e523 Add debug and error logging 2017-03-14 21:55:04 +01:00
Augusto Monteiro 7c25e56b96 #560 - fixing pep8 2017-03-14 14:34:53 -05:00
Augusto Monteiro 2464e87118 #560 - loading skills sorted 2017-03-14 14:34:53 -05:00
Augusto Monteiro eaac4a1f08 #539 - fixing pep8 2017-03-14 13:57:17 -05:00
Augusto Monteiro 0901f1bafc #539 - fixing pep8 2017-03-14 13:43:45 -05:00
penrods eafcc1abfb Several extensions to text normalization:
* intent_failure message now carries along the utterance's lang code
* normalizing query for Wolfram Alpha
* added normalization of "whats" to "what is".  This is technically incorrect ("whats" means more than one instance of "what", as in "the whats and whys of open source"), but that is a rare phrase.  Unfortunately, several STT engines incorrectly output things like "whats 8 + 4", which is grammatically incorrect.  So we'll handle the common and potentially screw up the uncommon.
* more parsing test cases, including a few corrections
2017-03-14 13:43:45 -05:00
Steve Penrod 883848fa11 Fixed typo (parser instead of parse)
Fixed typo (parser instead of parse)
2017-03-14 13:43:45 -05:00
penrods cfa79e03a2 Fixes issue #539
The utterance is now placed on the bus along with its language code.  If not specified, it uses "en-us".

Added a new mycroft.util.parse module.  It contains the normalize() function.  Normalization currently does two things:
  * Expands contractions ("they're" -> "they are", etc)
  * Optionally removes articles ("a", "an", "the").  Removing is the default.
  * Textual numbers become digits, up to 20.  E.g. "What is the weather in four days" becomes "What is weather in 4 days".

NOTE:  This is potentially a breaking change!  Remove "the", "a" and "an" from your .voc files!

Skill changes:
  * I cleaned up the .voc files for the default Skills.
  * Split the date_time keyword into an extra entity.  Now a "QueryKeyword.voc" exists, with "what|tell" instead of combing that into "what is time" in the TimeKeyword.voc.
  * Volume skill now accepts 1-11, e.g. "turn volume to 11"
2017-03-14 13:43:45 -05:00
Augusto Monteiro 621faef118 Merge pull request #550 from JarbasAI/patch-3
load intent skill first #552
2017-03-14 11:43:39 -05:00
JarbasAI 12c299789a autopep8 missed line 85 2017-03-14 11:33:15 -05:00
JarbasAI 870e827b5d autopep 8 2017-03-14 11:12:34 -05:00
Åke Forslund f0eb55effb Add functionality to remove and restore intents. 2017-03-13 18:15:12 +01:00
JarbasAI 9d55a6ab2d Update main.py 2017-03-12 16:44:46 -05:00
JarbasAI 07864cb6c9 list of pripritary skills
generalized for more skills
2017-03-12 16:42:42 -05:00
JarbasAI 5714bc608f pep 8 2017-03-11 16:03:41 -06:00
JarbasAI 00cfbd7f1b load intent skill first
intents for skills loaded before intent skill were not executing because register_intent messages were missed
2017-03-11 15:50:30 -06:00
JarbasAI b0bca504ee added blacklist check to load_skill
skill blacklisting was checked in load_skills which is no longer used in favor of watch_skills calling load_skill directly
2017-03-11 13:46:18 -06:00
JarbasAI b13070f276 added reload_skill flag 2017-03-09 01:56:23 -06:00
JarbasAI 7258dc6214 do not reload intent
or register_intent messages are missed and wolphram alpha always executes
2017-03-09 01:56:23 -06:00
JarbasAI 964fdb838e added do not reload flag 2017-03-09 01:56:23 -06:00
Augusto Monteiro 9fa77c4452 #521 - Ensuring that skill only try to load once 2017-02-23 23:03:12 -08:00
Augusto Monteiro 67e3c5f4a5 #521 - Using while instead of recursive function 2017-02-23 23:03:12 -08:00
Augusto Monteiro da01755fe6 #521 - Fixing pep8 2017-02-23 23:03:12 -08:00
Augusto Monteiro d50f2990f1 #521 - Refactoring watch_skill method 2017-02-23 23:03:12 -08:00
Augusto Monteiro 0044e154df #521 - removing comment 2017-02-23 23:03:12 -08:00
Augusto Monteiro 1b0afe92de #521 - Skill auto reload 2017-02-23 23:03:12 -08:00
Arron Atchison 8599146dc4 fix pep8 in skills folder 2017-02-15 15:37:52 -06:00
Karl Fezer d3fef6be61 modified: mycroft/skills/pairing/__init__.py 2017-02-15 15:37:52 -06:00
kfezer 58d3b214ae Update __init__.py 2017-02-15 15:37:52 -06:00
Karl Fezer 3c5afbe63d new file: mycroft/skills/pairing/__init__.py 2017-02-15 15:37:52 -06:00
Karl Fezer 2da508498d deleted: mycroft/skills/pairing/__init__.py 2017-02-15 15:37:52 -06:00
kfezer fb2f8e11ef Update __init__.py 2017-02-15 15:37:52 -06:00
kfezer 7cc59f7522 Update __init__.py 2017-02-15 15:37:52 -06:00
kfezer 7304be098f Update __init__.py 2017-02-15 15:37:52 -06:00
kfezer 5c03efc6e6 Update __init__.py 2017-02-15 15:37:52 -06:00
kfezer f1da181c9f Update __init__.py 2017-02-15 15:37:52 -06:00
Karl Fezer d4e169c4a3 modified: mycroft/skills/core.py
Added more verbose logging to the core.py file which adds skills on boot-up.

Issue #511
2017-02-15 15:37:52 -06:00
kfezer 627e912e7b Update __init__.py 2017-02-15 15:37:52 -06:00
Åke Forslund 071de2bcd6 Remove load_data_files(...) from all skills where applicable 2017-02-15 15:37:52 -06:00
Steve Penrod 3af412988b Changed word-choice for Mimic pronunciations
Changed word-choice for Mimic pronunciations
2017-02-15 15:37:52 -06:00
kfezer ceaf289b77 Update __init__.py 2017-02-15 15:37:52 -06:00
Åke Forslund 4788664418 Load data files from skill directory when loading skill. 2017-02-15 15:37:52 -06:00
Åke Forslund 23fe0fff2b Load skill data nicely without throwing exceptions
Check if dialog and vocab dirs exist before trying to load files. Log an error if it fails.
2017-02-15 15:37:52 -06:00
penrods acfdff416b More Location integration for #487
For the Weather Skill:
* When talking about the current city, the city name is generally not spoken (more natural)
* A "pretty" name of just the city is used instead of the complete name
* Works around the recurring issue with OWM where they report bad min/max temps (same as the current temp)
* Changed "Location is not valid" to "I don't know that location" (people don't say "not valid")

For the Time Skill:
* The timezone is extracted from the device location setting
* Time responses are more varied and shorter

This change adds MycroftSkill.location_pretty and MycroftSkill.location_timezone properties.
2017-02-03 10:49:54 -06:00
Augusto Monteiro c07cdaef6f #487 - Integrate Location with mycroft-core
- Adding more phrases on location not found dialog
- Creating get_location method
- Fixing identation
2017-02-01 23:40:13 -03:00
Augusto Monteiro 3e092554e3 #487 - Checking if location exists if doesn't say location not found dialog 2017-02-01 23:40:13 -03:00
Augusto Monteiro d1068ab3ac #487 - Adding default values for location on weather skill 2017-02-01 23:40:13 -03:00
Augusto Monteiro bed6175b7d #487 - Saving all location object in the configuration instead of only the name 2017-02-01 23:40:13 -03:00
Augusto Monteiro 540cd893c2 #487 - Integrating location microservice with mycroft core 2017-02-01 23:40:13 -03:00
Augusto Monteiro 9c8f8992c4 #479 - Ensuring PairingSkill stop when skill process is terminated
- Implementing shutdown method to cancel activator thread
- Setting daemon to activator
- Creating activator in an isolated method to avoid duplication
2017-02-01 23:40:13 -03:00
Augusto Monteiro 8db3ac2b82 #479 - Refactoring SkillContainer
- Shuting down skill on stop process
2017-02-01 23:40:13 -03:00
Augusto Monteiro c7bfaa5760 #479 - Using ws instead of client on load third party skills 2017-02-01 23:40:13 -03:00
Augusto Monteiro 672b208b86 #479 - Fixing reminder stop
- Setting daemon on timer to True to make timer thread cancelable
- Refactoring shutdown to use super instead of static super
- Removing cleanup
2017-02-01 23:40:13 -03:00
Augusto Monteiro 6b324c6df2 #479 - Refactoring terminate process to use shutdown instead of cleanup 2017-02-01 23:40:13 -03:00
Augusto Monteiro 8815327dc0 #479 - Cleaning up all skills on stop process
- On stop mycroft-core executing cleanup of all skills
2017-02-01 23:40:13 -03:00
Åke 9d9ab7b826 Test allow test to finsh immediately (#453)
Add cleanup procedure to skills:
MycroftSkill cleanup does nothing, ScheduledSkill will cancel running timers to make sure it's not blocking termination.

Tests updated to use this allowing unit test to exit after completion.
2017-01-20 15:50:00 -06:00
Augusto Monteiro 29fc90cce1 Issues 401 - Adding log on pairing skill 2017-01-18 16:41:48 -03:00
Augusto Monteiro 63326a93c5 Issues 401 - Saying zero instead of oh 2017-01-18 16:41:48 -03:00
Ethan Ward 451f0f5195 Update for pep8 2017-01-18 16:41:48 -03:00
Ethan Ward 93893f3473 Update skills system to load from subfolders 2017-01-18 16:41:48 -03:00
Ethan Ward c4bc2ea161 Update to fix pep8 errors (#420) 2017-01-18 16:41:48 -03:00
Jonathan D'Orleans 99ff4e3ce8 Issues 351 - Tartarus Integration
- Master rebase
- Renaming Websocket variable from client to ws
- Resetting enclosure when ws open
- Formatting pairing skill
2016-12-17 14:53:22 -05:00
Augusto Monteiro eff50a5135 Issues 395 - Refactoring configurationSkill and adding log on mycroftSkill 2016-12-17 10:27:01 -05:00
Augusto Monteiro 9f6ecda338 Issues 395 - Creating not.paired event 2016-12-17 10:27:01 -05:00
Augusto Monteiro 657123577d Issues 395 - Creating configuration skill to sync tartarus 2016-12-17 10:27:01 -05:00
Arron Atchison 02de42f1f5 added "home dot mycroft dot ai" to both pairing dialogs 2016-12-17 10:27:01 -05:00
Arron Atchison 6d871f3a1b Changing pairing dialog to speak " home dot mycroft dot ai " 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans d80e83d575 Issues 350 - Formatting date and time 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans 416191e598 Issues 350 - Synchronizing local and remote configuration 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans a5d8b6112b Issues 350 - Ensuring repairing process 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans d444bdbe4c Issues 356 - Emitting paired event 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 58ba7f2558 Issues 356 - Tartarus integration
- Adding proxy flag to be used in WA and OWM skill
- Integrating Tartarus login session
- Refactoring OWM to use Tartarus api and removing owm repackaging
- Fixing WA data response
2016-12-17 10:16:29 -05:00
Jonathan D'Orleans f43d38dae7 Issues 356 - Adding get_data for Api response so it can overrided 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans cd99159f9a Issues 356 - Implementing OWM api 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 82b9433891 Issues 356 - Moving WA api to WA skill 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 0b14030344 Issues 356 - Updating WA skill to use the new api 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 2438f66ef0 Issues 356 - Updating mouth events call 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 9e632a3c8a Issues 356 - Stopping processes during audio playback 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 4c1ba4e337 Issues 356 - Rebasing with master 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans b1a4a9c22b Issues 351 - Making Identity static and unique 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans 5fd8342868 Issues 356 - Removing unnecessary identity from pairing skill 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans ccceb62b7a Issues 351 - Renaming metadata to data and simplifying data usage 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans 348cc3fac0 Issues 351 - Renaming message_type to type 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans db9c12c122 Issues 351 - Merging service and client web socket configuration 2016-12-17 10:14:42 -05:00
Jonathan D'Orleans 74abe9267d Issues 351 - Activating device 2016-12-17 10:14:42 -05:00
Jonathan D'Orleans 14050d70e8 Issues 354 - Implementing activation process 2016-12-17 10:14:42 -05:00
Jonathan D'Orleans 3304474a22 Issues 354 - Pairing device with remote server
- Getting pairing code from server
- Treating Api response after request
- Simplifying enclosure mouth events control, upgrade and test process
2016-12-17 10:12:10 -05:00
Jonathan D'Orleans 3280d57b18 Issues 351 - Tartarus Integration
- Creating API to communicate with remote server
- Updating Identity data
- Adapting RemoteConfiguration load to new server
2016-12-17 10:11:15 -05:00
Jonathan D'Orleans 0ecb369397 Issues 351 - Splitting date and time format 2016-12-17 10:11:15 -05:00
Arron Atchison 40627ead23 Fixing NPR News Skill by regexing https to http (#386)
* Fixing NPR News Skill by regexing https to http

* reduced line length to pass pep8.
2016-10-24 10:05:54 -05:00
Arron Atchison 8c3a33ce27 Removed weather condition dialog 2016-09-01 09:28:10 -05:00
Arron Atchison c7fd729504 added the eye volume event 2016-08-17 11:08:20 -05:00
Arron Atchison 6e5dfa10f9 Shortened the variable name 'proportion' to 'prop' to avoid pep8 error 2016-08-17 09:55:38 -05:00
Arron Atchison 6efa21d79a I threw a lot of int casting in to fix type errors. Volume seems to be workign great now. 2016-08-17 09:40:58 -05:00
Ethan Ward 27bc4d255e Merge branch 'master' into feature/issues-303 2016-08-16 13:57:46 -05:00
Isaac Ward 90843ef113 changed variable 2016-07-28 15:57:50 -05:00
Isaac Ward 0f69e3bdb8 added volume communication with enclosure 2016-07-28 15:23:24 -05:00
isaacnward 9d615cf21c Added enclosure functionality for IP skill (#309)
* added ip address display

* added ip address display

* added sleep for timing

* altered timing

* further increased sleep time

* altered logic

* pep8

* changed delay duration to depend on ip length

* updated sleep time

* updated sleep time

* updated sleep time

* pep8
2016-07-28 13:35:10 -05:00
Ethan Ward 49d644ff25 Issues #194 - Clean up Wolfram syntax (#302)
* Issues #194 - Clean up Wolfam syntax

* Issues #194 - Localize regex

* Issues #194 - fix pep8

* Issues #194 - Address feedback
2016-07-28 10:08:41 -05:00