Commit Graph

1509 Commits (828d305e6c0664b2bb34cb15d45790a375fd72bc)

Author SHA1 Message Date
Åke Forslund 728391427e Add test for PID locks
Catch IOError in delete method if pid-file doesn't exist
2017-06-16 14:17:43 +02:00
Åke Forslund 2791b3242b Allow service to reload as intended
- Add reload hook to delete PID lock
- Correctly detect PID in lock file
2017-06-16 12:26:54 +02:00
Matthew D. Scholefield 8e17fe3fd4 Improve mycroft.sh (#835)
* Improve mycroft.sh

 - Refactor to make adding other scripts easier
 - Stop all skills before starting
 - Handle multiple screen instances running at the same time
 - Notify the user by screen name (not as pretty but makes more sense)
 - Clean up code:
   - Change if chain to switch statement
   - use cat to display usage rather than multiple echo statements

* Small mycroft.sh refactor
 - Auto-generate .screen files
 - Add start-mycroft-custom for other executables
 - Use echo instead of cat (originally didn't realize multiline quotes were a thing)
 - Rename variable screen_name to uppercase to be consistent

* Decrease mycroft.sh sleep time to 0.1 seconds
Less time to wait and still seems to work fine on all tested platforms
2017-06-15 17:42:56 -05:00
Åke Forslund 3ff2b1b787 Add local cache fallback for remote config. 2017-06-14 11:33:29 +02:00
Arron Atchison 5bb7d25765 bump version to 0.8.16 2017-06-13 18:16:52 -05:00
Arron Atchison 78563a4df3 Revert "Refactor setup_base.py to use new versioning method (#802)"
This reverts commit ba5b255b0e.
2017-06-13 18:01:34 -05:00
Ethan Ward c9893806ea #824 Change has_been_paired to load the current identity file (#825)
* Change has_been_paired to load the current identity file

* Add clarifying comment and fix pep8
2017-06-13 17:32:14 -05:00
el-tocino a3e04f70cf add warning about mimic compile times. 2017-06-13 14:53:16 -05:00
el-tocino 20bb8b5d5d added memory check to dev_setup 2017-06-13 14:50:44 -05:00
Ethan Ward ba5b255b0e Refactor setup_base.py to use new versioning method (#802) 2017-06-13 13:30:20 -05:00
Åke d570b38a6d Merge pull request #817 from MycroftAI/feature/onboarding-take3
Minor onboarding refinements
2017-06-13 14:26:57 +02:00
Åke Forslund b38af90fac fix pep8 2017-06-13 14:17:21 +02:00
penrods 582b77891e One more pass at onboarding, including a major bug fix:
* BUGFIX: The big bug was calling is_paired() during wake_word_in_audio().  When not paired, that call hit the server, taking about a second.  Since it happened multiple times a second, the audio buffers got backed up hugely.  This resulted in weird behavior later as the buffers get cleared out.
* Added mycroft.api.has_been_paired(), which just looks for the pairing key (it does not validate it is still active with the server, like is_paired())
* The enclosure now checks for internet connectivity and kicks off the wifisetup process, not the wifisetup client itself.
* During the "onboarding" process, the microphone is muted using the new "mycroft.mic.mute" message.  After pairing completes, the "mycroft.mic.unmute" is expected to be sent from the pairing skill.  Unmuting again after a re-pairing is harmless.
* mute_and_speak() is smart enough to not unmute itself when complete if muted before
* util.check_for_signal() now accepts -1 as the lifetime.  This means it never times out.
* util.stop_speaking() is more intelligent about shutting down the spoken text (including text that has been split at periods) and visemes
2017-06-13 05:35:06 -05:00
penrods 32e32ed185 Minor onboarding refinements
* The wifi setup no longer stops after 5 minutes unless already paired (i.e. still onboarding)
* The mouth resets on wifisetup stop (clearing the scrolling home.mycroft.ai)
* Changed several ConfigurationManager.get() calls to ConfigurationManager.instance().  Exactly the same, but .instance() is clearer/preferred.
* Added a mycroft.util.stop_speaking() method.  Not perfect, but works for now and can be replaced later when AudioManager is in place.

A forthcoming change to the pairing skill will utilize the stop_speaking method.
2017-06-12 02:57:22 -05:00
el-tocino 1815ad3dfd that extra m in there needed to go. 2017-06-11 02:03:06 -05:00
el-tocino 6232eda3b9 default skills list restored, picroft chown command added, exit code output added. 2017-06-11 01:58:33 -05:00
el-tocino 2cdb327ce8 removed missing skills from default list. 2017-06-10 10:54:55 -05:00
el-tocino f587be4689 updated default list 2017-06-10 10:50:47 -05:00
el-tocino bf99770e71 skip to next item in loop if skill dir exists. 2017-06-10 01:21:29 -05:00
el-tocino d33765daf4 skip if skill dir exists. 2017-06-10 01:20:04 -05:00
el-tocino 1e32728fbf extraneous verbiage removed. 2017-06-09 11:55:09 -05:00
el-tocino 2f8093ebce spacing/virtualenv/spelling/parsing errors should be fixed 2017-06-09 11:47:24 -05:00
Michael Nguyen a6917c7712 added info to docstring information 2017-06-08 14:35:31 -05:00
Michael Nguyen 6fc9e034f7 extracted encode png function into mouth_display_png function for a cleaner interface 2017-06-08 12:39:42 -05:00
Michael Nguyen c4f8fa0b92 Merge branch 'dev' of https://github.com/MycroftAI/mycroft-core into mouth_display_feature 2017-06-08 10:35:08 -05:00
el-tocino 1773f75709 Consolidated skill list parsing in functions. 2017-06-08 02:12:44 -05:00
el-tocino 6884fc321a Correctly handle passing multiple items to install. 2017-06-08 02:04:56 -05:00
el-tocino 0bf9dcf1bb fail install if missing vwrapper 2017-06-08 01:58:44 -05:00
el-tocino f535fff4cf sudo on picroft pip seems to help some permission issues. 2017-06-08 01:54:30 -05:00
el-tocino f3453d0ffc changed the functions, error handling altered, default uses install, install handles a list, picroft/mycroft handled now. 2017-06-08 01:46:32 -05:00
Arron Atchison a5592d8216 bump version to 0.8.15 2017-06-07 21:13:28 -05:00
Steve Penrod c824c03611 Feature/onboarding bug (#811)
* Implementing changes to out-of-the-box experience, providing an "onboarding" process.

* Added a mycroft.api.is_paired() method
* Added mycroft.util.is_speaking and mycroft.util.wait_while_speaking() methods
* RESET now waits for the spoken notice to complete
* Stopped the "Checking for updates" and "Skills updated" prompts (commented out for now, probably will eliminate)
* Wifi setup filters out hidden ("x00") networks
* Visemes should keep up better if they get behind (will skip)
* Mimic is now searched for on the users path
* Onboarding process:
  - wifi setup starts automatically
  - User is walked through the process
  - wake word and button pressing are ignored
  - At end, a short tutorial is given

* Fixing pep8 whitespace errors... grrr

* Typo in onboarding changes prevented pairing for auto-starting

The command "pair my device" needed to be sent as an array, ["pair my device"]
2017-06-07 19:40:34 -05:00
Michael Nguyen 17d0c418c6 syntax issues 2017-06-07 18:25:43 -05:00
Michael Nguyen 1302f26c32 fixed pep8 issues - added ability to encode png images to the MarkI faceplate 2017-06-07 18:08:29 -05:00
Michael Nguyen 5d40939666 Merge branch 'dev' of https://github.com/MycroftAI/mycroft-core into mouth_display_feature 2017-06-07 17:27:20 -05:00
Michael Nguyen 7df83897ba added function in api.py to encode png images and display to Mark I faceplate 2017-06-07 17:19:26 -05:00
penrods 84dd10e243 Fixing pep8 whitespace errors... grrr 2017-06-07 11:45:06 -05:00
penrods ffc3f6ec60 Implementing changes to out-of-the-box experience, providing an "onboarding" process.
* Added a mycroft.api.is_paired() method
* Added mycroft.util.is_speaking and mycroft.util.wait_while_speaking() methods
* RESET now waits for the spoken notice to complete
* Stopped the "Checking for updates" and "Skills updated" prompts (commented out for now, probably will eliminate)
* Wifi setup filters out hidden ("x00") networks
* Visemes should keep up better if they get behind (will skip)
* Mimic is now searched for on the users path
* Onboarding process:
  - wifi setup starts automatically
  - User is walked through the process
  - wake word and button pressing are ignored
  - At end, a short tutorial is given
2017-06-07 11:45:06 -05:00
Arron Atchison 7d1d2cefcf enclosure version bump to 0.3.1 2017-06-07 11:25:41 -05:00
Michael Nguyen 23a51d692a Merge branch 'dev' of https://github.com/MycroftAI/mycroft-core into mouth_display_feature 2017-06-07 10:20:39 -05:00
Michael Nguyen 7e4ba487fa added display 2017-05-31 17:24:20 -05:00
kfezer fb89ae99a8 Merge pull request #798 from forslund/bugfix/issue-797
Remove catching of KeyboardInterrupt from signal handler
2017-05-31 10:44:13 -07:00
kfezer 3988da5ffb Merge pull request #692 from forslund/feature/issue-691
#691 - adding setting per skill
2017-05-30 16:47:33 -07:00
kfezer 104dda1ab1 Merge pull request #774 from forslund/feature/update-config
Update TTS, STT and listener when websettings are changed
2017-05-30 16:45:42 -07:00
kfezer 527cebd5aa Merge pull request #794 from forslund/feature/issue-778
Make wake word listener have length depending on number of phonemes
2017-05-30 16:27:31 -07:00
kfezer 6e00b43acf Merge pull request #793 from ProsperousHeart/dev
Adding Extraction of Numbers
2017-05-30 15:10:13 -07:00
ProsperousHeart ae5d6273bc PEP8 Fix To Test File 2017-05-30 16:18:11 -05:00
ProsperousHeart 88acee1bc2 Fixed PEP8 for number extraction addition 2017-05-30 14:30:41 -05:00
Åke Forslund 80b2334b3a Remove catching of KeyboardInterrupt
Catching Keyboard interrupt is counter productive here as the previous
signal handler might be SIGINT which works by raising KeyboardInterrupt.

This has caused ctrl+c to remove the lock file but not stop the process.
2017-05-29 07:17:38 +02:00
Åke Forslund ee90e8f50e Make wake word listener have length depending on number of phonemes 2017-05-26 07:50:49 +02:00