Commit Graph

1898 Commits (941e01ad34c3c1f6924a40092afbdab1b91afead)

Author SHA1 Message Date
Matthew D. Scholefield 0569ba40f7 Use opt in value to record wake words 2017-10-03 13:24:09 -05:00
Matthew D. Scholefield 403aeb9360 Upgrade Padatious to 0.3.2 which brings in entity support 2017-10-03 12:17:02 -05:00
Matthew D. Scholefield 8cc569eb79 Add pep8speaks config file 2017-10-02 23:02:25 -05:00
Åke dfaed4f610 Merge pull request #1119 from MycroftAI/bugfix/fix-save
Fix configuration manager saving

==== Tech Notes ====
Fixes ConfigurationManager.save() method. Previously incorrect use of dict update method resulted in empty config. Now the saved dict is recursively merged to only update affected fields.
2017-09-29 09:45:36 +02:00
Matthew D. Scholefield 9483d0a50e Unroll loop to explicitly show attributes in LOG
This allows IDEs to use autocomplete on the LOG class
2017-09-29 02:01:22 -05:00
Matthew D. Scholefield da448c4bdd Change update to merge_conf
This prevents replacing sub-dicts rather than recursively merging
2017-09-29 01:39:16 -05:00
Matthew D. Scholefield a6709033d4 Remove wifi setup 2017-09-29 15:12:47 +09:00
Matthew D. Scholefield 4c1a0d471b Fix configuration manager saving 2017-09-28 22:29:17 -05:00
Anunayj 4b4a48f796 Added Alternate path for Virtual Wrapper Python
Some user reported problems with the previous ones saying that virtualenvwrapper is a drectory (which it apperantly was)
2017-09-28 11:47:23 -05:00
Patrick Freeman 4f4547182b issue-1091 - Provide Dutch translations of dialog files 2017-09-28 11:28:45 -05:00
Åke Forslund 605f0640ec Make sure structure for wake word exist before use
==== Fixed Issues ====
#1105

====  Tech Notes ====
Verify that the sub-config for the set wake word exist before writing to
it.
2017-09-28 11:22:41 -05:00
Jarbas f5806b86c5 fallback start, end, failure messages (#1108)
==== Tech Notes ====
Add mycroft.skill.handler.start and mycroft.skill.handler.complete to fallback handler. handler in data field will be called "fallback" upon completion the used handler will be reported in the "fallback_handler" data entry.

* fix

* pep8

* fallback handler name
2017-09-28 17:53:57 +02:00
Åke Forslund 838e2dd7d8 Remove repeating events from saved schedule
====  Tech Notes ====
Repeating events are not saved to make sure repeating events aren't
stacked over and over.
2017-09-28 02:24:34 -05:00
Åke Forslund 5d9574ea4f Reorder canceling and adding event handling
====  Tech Notes ====
If cancel + add event messages arrive at roughly the same time the add
would be overridden by the cancel. More intuitive to handle cancel first
and add new arrived events after.
2017-09-28 02:24:34 -05:00
Åke Forslund 1d0e65dfb1 Fix update_event and cancel_event methods
====  Tech Notes ====
update_event and cancel_event did not use a name unique to the skill
forcing the user to build it themselves. Now the unique name is
constructed in the method _unique_name() for all event scheduling
methods.
2017-09-28 02:24:34 -05:00
Steve Penrod 0709aa8b9e Update for new scripts
Significant edit:
* Remove mentions of old start.sh / mycroft.sh
* Enhanced getting started instructions with more explicit steps
* Reorganized to place most commonly wanted information up front.
2017-09-28 01:57:46 -05:00
Steve Penrod 37a798385e Remove unused variable noticed by Codacy
Removed the unused exit_code variable
2017-09-28 01:08:20 -05:00
Steve Penrod f0086d8881 Remove "restart", auto-restart running services
Remove the "restart" option, instead all of the background services
now automatically check to see if they are already running and will
be stopped then restarted if so.

Also fixed a few Codacy complaints.
2017-09-28 01:08:20 -05:00
Steve Penrod 26559388ea Enhance help message, remove extra whitespace 2017-09-28 01:08:20 -05:00
Steve Penrod 4afa64427d Change default to 'help', add 'debug' option
The default when no parameter is entered is now to display the help.
To start services you can use 'all', or 'debug' to start them followed
but starting the CLI
2017-09-28 01:08:20 -05:00
Steve Penrod b5f922add6 Remove start.sh
Removing the now-obsolete start.sh
2017-09-28 01:08:20 -05:00
Steve Penrod 07992b49d5 Revamping the scripts used to start/stop Mycroft
Reworking the mechanisms used to interact with Mycroft.  The old
mycroft.sh utilized the 'screen' command, but now with the CLI it
it easier to use that for viewing log files.  Plus there was
confusion between when to use start.sh and when to use mycroft.sh.

Now things are wrapped in the simple and easily discoverable scripts:
* start-mycroft.sh
* stop-mycroft.sh

The start-mycroft.sh allows you to start the background services and
to invoke the various tools (e.g. the CLI, unit tests, etc).

==== Fixed Issues ====

====  Documentation Notes ====
This will require revamp of the getting started guides, etc.
2017-09-28 01:08:20 -05:00
valdr bc3990a704 Fix a small typo in line 12
"inclding" -> "including"
2017-09-27 10:55:09 -05:00
Åke Forslund e6c67b66b3 Add flag to allow running dev_setup.sh as root
====  Tech Notes ====
Added flag --allow-root to circumvent the requirement to run ./dev_setup
as a non-root user.
Also added help section
2017-09-27 10:49:08 -05:00
Åke Forslund 68a96b40b0 Add workaround for inspect-decorator problem
====  Tech Notes ====
when using multiple decorators on a method inspect will return incorrect
values despite @wraps. This causes the intent handler to fail to
execute.

@decorator can't really be of help here since it doesn't handle
decorators with arguments (as far as I can understand)

This is a workaround using the fact that the argument count will be zero
on methods with multiple decorators, and basically tries the usual
signatures
2017-09-26 19:11:33 +02:00
Åke b13113d76e Merge pull request #1095 from MycroftAI/feature/logger
Add new LOG class
2017-09-21 16:55:44 +02:00
Matthew D. Scholefield e7474ccc29 Fix tornado autoreload error 2017-09-21 09:37:08 -05:00
Matthew D. Scholefield 07e94f2d07 Improve LOG code and add log unit test
Adjusts style for readability and generates methods dynamically
2017-09-20 12:45:22 -05:00
Arron Atchison 85081c00f3 Version bump to 0.8.22 2017-09-19 11:15:20 +09:00
Ethan Ward 1d67b17f00 Update requirements.txt (#1097) 2017-09-18 16:50:24 -05:00
Matthew D. Scholefield 5e392f34aa Optimize imports
Remove unused imports and group local vs external alphabetically
2017-09-18 16:07:50 -05:00
Åke 37ee77acc8 Merge pull request #1096 from MycroftAI/feature/remove-wolfram
Fix install from within Mycroft on Mark1/Picroft
2017-09-18 22:28:35 +02:00
Steve Penrod 23bebb707c Fix install from within Mycroft on Mark1/Picroft
MSM was invoking 'sudo chown' every time it installs new skills.
However the skill folder is already under the correct user when it
has been installed this way, so the chown is unnecessary.  Now we
check for the user and group before performing the action.
2017-09-18 13:04:45 -07:00
Steve Penrod dd36f6dfca Fix MSM permissions installing on Mark 1/Picroft
On a Raspbian platform, MSM was attempting to perform a 'sudo chown'
on the skill folder after the install using a sudo command.  When
running inside mycroft-core as the 'mycroft' user, there is no
'sudo' permission.  However, this step isn't even needed since the
user installed as mycroft and the folder has the correct permissions.
Now it checks the user and group before attempting to perform the
action.
2017-09-18 12:59:13 -07:00
Matthew D. Scholefield cfdc405da5 Add new LOG class 2017-09-18 13:56:06 -05:00
Åke Forslund e182abedea Fix requirements installation 2017-09-18 09:49:17 -05:00
Åke a14be987eb Merge pull request #1093 from MycroftAI/feature/msm_rework
Semi-major rework of the Mycroft Skill Manager (MSM), including:

====  Tech Notes  ====
- Add parse skill name strings support for quoted strings, e.g.:  msm install "daily meditation" Previously it would search for "daily" and also search for   "meditation", but both independently.
- All commands return distinct error codes. Commands with that perform multiple things, such as 'msm default' will continue on a failure of one skill and return the highest error code ultimately.
- Add 'msm remove', essentially the inverse of 'msm install'
- Changed the example install URL to a penrods repo since the ethanward repo no longer exists.
- Reworked skill list caching to behave properly with $( ) subprocess operations.
- Output for "install" and "remove" is now between hyphen lines, making them easier to parse.
- Revamped many informational and error messages
- Published under Apache 2.0 license
2017-09-18 11:24:10 +02:00
Åke Forslund a3474e6f5a Fix typo. 2017-09-18 11:09:44 +02:00
Steve Penrod ef3a55c946 Review item clean up
Cleaning up several small problems found wiht new MSM during review:
* Message formatting
* Incorrect spelling on a env var used
2017-09-18 00:40:16 -07:00
Steve Penrod f0a34db74e Add 'msm remove', improve error handling and parsing
Semi-major rework of the Mycroft Skill Manager (MSM), including:
* Add parse skill name strings support for quoted strings, e.g.:
    msm install "daily meditation"
  Previously it would search for "daily" and also search for
  "meditation", but both independently.
* All commands return distinct error codes.  Commands with
  that perform multiple things, such as 'msm default' will
  continue on a failure of one skill and return the highest
  error code ultimately.
* Add 'msm remove', essentially the inverse of 'msm install'
* Changed the example install URL to a penrods repo since the
  ethanward repo no longer exists.
* Reworked skill list caching to behave properly with $( )
  subprocess operations.
* Output for "install" and "remove" is now between hyphen
  lines, making them easier to parse.
* Revamped many informational and error messages
* Published under Apache 2.0 license

A corresponding update to the skill-installer will take
advantage of these changes.
2017-09-17 13:00:23 -07:00
Åke Forslund 23444c65ee Replace Intent invocation with specific messages
==== Protocol Notes ====
New messages on the message bus:
- mycroft.volume.increase
- mycroft.volume.decrease
2017-09-15 12:14:35 -05:00
Åke Forslund f756673bff Start network check faster
====  Tech Notes ====
The network check is now only delayed until priority skills have been
loaded (this includes the relevant pairing skill)
2017-09-15 06:48:39 -05:00
Åke Forslund a100d2a6dc Refactor priority skill loading
====  Tech Notes ====
- Set pairing as a priority skill by default
- Move priority loading to separate function
2017-09-15 06:48:39 -05:00
Jarbas 82b49c1397 Jarbas work adding priority skill loading 2017-09-15 06:48:39 -05:00
Åke Forslund 1b50c02d0d Fix missing "I am awake" at wake up
====  Tech Notes ====
Mycroft did not acknowledge that he was woken due to missing forwarder
of speak commands to message bus.
2017-09-15 06:42:45 -05:00
Åke Forslund bec91c2c30 Disable wake word upload by default
====  Tech Notes ====
Change default config to disable wakeword upload.
2017-09-15 06:30:04 -05:00
Åke Forslund 03a5c5eae5 Remove extra phoneme set
====  Tech Notes ====
In addition to the normal hot word there was an extra set of "global
phonemes"
2017-09-15 06:29:25 -05:00
Åke Forslund 444a09587e Fix hotword override
==== Tech Notes ====
The threshold of the hotword was overritten with None since no default
threshold is in the default configuration
2017-09-15 06:29:25 -05:00
00tiagopolicarpo00 2a17cf246c Update ssh enabled.dialog 2017-09-15 00:07:00 -05:00
00tiagopolicarpo00 81def1107f Update ssh disabled.dialog 2017-09-15 00:07:00 -05:00