Åke
b1408617bc
CLI Feature: skill commands ( #1612 )
...
* Update format for skill listing
Now send the skills with id and active status
* Add commands to activate/deactivate skills
* Add "unload all except one" functionallity
* Update after rebasing
- fix identifying skills
* Unload skills if they're removed from disk
* Rename _shutdown to default_shutdown
The method is not intended to be non-public, and this should shut up
codacy bot.
* Handle keep command without argument
* Add new commands to help
- Split help into multiple pages as needed
* Support :activate all
2018-06-22 00:59:51 -05:00
Matthew D. Scholefield
abd1fe7571
Merge pull request #1637 from forslund/feature/remove-monotonic
...
Use time.monotonic instead of monotonic module
2018-06-14 14:59:13 -05:00
Åke
3a22eea5ba
Merge pull request #1636 from MycroftAI/feature/upgrade-msm-padatious
...
Upgrade msm and padatious
2018-06-13 07:44:16 +02:00
Matthew D. Scholefield
85df3adbb0
Remove Padatious version check
...
No longer necessary now that we notify users when dependencies are out of date
2018-06-12 16:10:26 -05:00
f-e-l-i-x
b239d3dc2f
German language support ( #1634 )
...
* Add parse and format functions for german
* Add german dialog files
2018-06-12 08:55:21 +02:00
Åke Forslund
be8711a438
Use time.monotonic instead of monotonic module
...
Replace the monotonic time from the monotonic module with the built in time.monotonic
2018-06-11 16:05:50 +02:00
Michael Nguyen
0e1307ddf3
Merge pull request #1622 from MycroftAI/bugfix/e.message
...
Fix missing attribute in error
2018-06-05 16:01:55 -05:00
Åke Forslund
dabc92a9b9
Handle unbuilt AdaptIntents
...
Switched type(intent) == IntentBuilder to isinstance(intent, IntentBuilder) to handle all derived types.
2018-06-02 08:56:15 +02:00
Matthew D. Scholefield
dbdd67f965
Add AdaptIntent alias
...
It is used so that the init argument isn't required and so that it is imported from within the mycroft module
2018-06-01 20:01:25 -05:00
Matthew D. Scholefield
0a3f743b23
Fix missing attribute in error
2018-06-01 16:11:14 -05:00
Åke
a0b0e99ffb
Merge pull request #1592 from MycroftAI/bugfix/skills-dir
...
Remove all references to /opt/mycroft/skills
2018-05-24 07:29:53 +02:00
Matthew D. Scholefield
509162de50
Support tilda in data_dir
2018-05-23 15:03:01 -05:00
jarbasal
0dee4af24c
keep message context
2018-05-23 16:08:22 +02:00
Matthew D. Scholefield
b0b88bbd62
Remove all references to /opt/mycroft
2018-05-23 08:22:14 +02:00
Matthew D. Scholefield
14ceb1f1dd
Remove all references to /opt/mycroft/skills
...
The only thing that should reference it is the config
2018-05-23 08:22:14 +02:00
Åke
52abe14209
Merge pull request #1601 from MycroftAI/bugfix/retry-less
...
Make retrying skill installation less frequent
2018-05-22 17:00:39 +02:00
Åke
1f630f6815
Merge pull request #1527 from MycroftAI/feature/improved-skill-tester
...
Feature/improved skill tester
2018-05-21 16:13:32 +02:00
Matthew D. Scholefield
457ed15b05
Make retrying skill installation less frequent
...
This prevents things like modifying a default skill from causing skill updates once every 5 minutes
2018-05-17 23:03:50 -05:00
Matthew D. Scholefield
596834dbc8
Retry skill installation every 5 minutes if default skill install fails
...
This prevents errors with having a spotty internet connection during default skill installation
2018-05-17 17:23:49 -05:00
Matthew D. Scholefield
f3ed6065c5
Check for uuid in response
...
If the meta already exists on the server, it won't have a uuid field in the response
2018-05-15 16:49:03 -05:00
Matthew D. Scholefield
b36408dc39
Log exception in skill settings and fix docstrings
2018-05-15 15:58:36 -05:00
Matthew D. Scholefield
afe8641159
Stability improvements
2018-05-14 16:41:19 -05:00
Åke
ad487cc9fc
Merge pull request #1586 from MycroftAI/feature/configurable-update-interval
...
Make skill update interval configurable
2018-05-14 22:39:26 +02:00
Matthew D. Scholefield
d6f5dd95c5
Make skill update interval configurable
2018-05-14 15:21:36 -05:00
Matthew D. Scholefield
79bf94e48e
Speed up intent tests by responding to converse requests
2018-05-14 14:27:37 -05:00
Matthew D. Scholefield
154ccd59d7
Expose single threaded training option from Padatious Service
...
This is necessary to prevent a deadlock when training during intent tests using pytest
2018-05-14 14:27:37 -05:00
Matthew D. Scholefield
d1358cc0fc
Fix skill reloading when files in subdirectories change
2018-05-11 12:04:30 -05:00
Åke Forslund
0087803d5d
Fix trying to make integer from skill-id
...
skill id's are now the skill path, and can't be made into integers. This issue hinders padatious skills from running.
2018-05-11 10:30:06 -05:00
Matthew D. Scholefield
fc8424c9ee
Make skill ids use skill folder
...
This is necessary because in Python 3, hash(x) changes every single start of the application. Using the skill folder makes it consistent. In addition, the skill folder makes it easier to debug parts of the application in comparison to using something like an md5sum
2018-05-10 18:52:17 -05:00
Matthew D. Scholefield
033f5dc010
Add configuration values for msm
2018-05-10 13:11:03 -05:00
Åke
98ede52596
Merge pull request #1572 from MycroftAI/feature/py_msm
...
Cleanup skill loading and implement python msm
2018-05-09 23:25:40 +02:00
Matthew D. Scholefield
6ecf4d986f
Reinstall pip dependencies if virtualenv is removed
...
This keeps track of the skills whose dependencies have already been installed. While it won't automatically register newly installed skills, it will attempt to reinstall dependencies the next boot only one time so it shouldn't be a big issue.
2018-05-09 16:07:04 -05:00
Matthew D. Scholefield
e86e0546d7
Make settings meta hashes consistent
...
str(dict) in python in implementation defined. json.dumps(..., sort_keys=True) is not
2018-05-08 17:17:45 -05:00
Matthew D. Scholefield
c301a3ca4d
Change skill settings hash to use skill name
...
This prevents issues with the skill settings being dependent on skill folders. This is an issue because the new msm has a new skill naming scheme
2018-05-08 16:23:53 -05:00
Matthew D. Scholefield
a20b5b565c
Cleanup skill loading and implement python msm
2018-05-08 13:41:51 -05:00
Åke Forslund
61aeeb8c00
Fix issue using basestring
...
Checking against basestring was necessary in python two since unicode and string were separate classes. In python3 basestring was removed since different string classes have been removed.
2018-05-04 11:42:13 +02:00
Åke Forslund
8c5911ecf0
Fix code standard issues
...
- dev_setup.sh - replace `` with $()
- mycroft/skills/core.py remove remove redundant imports
- mycroft/tts/__init__.py remove remove redundant imports
2018-05-03 12:32:21 +02:00
Åke Forslund
5d50d22061
Fix listing skills
...
python3 dict_keys can't be serialized to json, and needs to be
explicitly converted to list
2018-05-02 08:35:17 +02:00
Matthew D. Scholefield
82a61c76c7
Fix infinite skill reloading by disabling folder checks
...
Python 3 modifies the __pycache__ folder which makes the parent folders update their timestamps causing an infinite skill reload
2018-04-27 11:44:07 -05:00
Matthew D. Scholefield
0abc3c78b1
Fix counting function arguments in Python 3
2018-04-27 11:42:54 -05:00
Åke Forslund
5447983999
Use sorted json to perform hash of settings
2018-04-27 08:57:48 -05:00
Åke Forslund
a2993e4ba6
Remove backwards compatibility with python 2.7
2018-04-27 08:51:47 -05:00
Åke Forslund
b200d51d39
Fix test cases under python 3
...
Lots of minor fixes including, sorting dicts, making ints of strings,
MagicMock file spec and some other things
A couple of issues in the mycroft-core code base were identified and
fixed. Most notably the incorrect version check for python three when
adding basestring.
Update .travis.yml
2018-04-27 08:50:46 -05:00
Åke Forslund
8840a43886
Fix hashes in settings for python3
...
convert strings to bytes before hashing
2018-04-27 08:50:46 -05:00
Sergio Oller
5e8d8eb1a6
Feature: Allow comments in voc and regex files
...
When loading voc and regex files, lines starting with "#" are now
ignored, so developers and translators can use them to document their
decisions.
==== Fixed Issues ====
2018-04-14 21:53:14 +02:00
Åke
aa4261252b
Merge pull request #1519 from MycroftAI/feature/stop-sigint
...
Shutdown improvements
2018-04-12 12:07:02 +02:00
Åke Forslund
d61e3c2dd0
Extra safety around skill specific shutdown
...
Catch error in shutdown method of skill and continue with general shutdown
2018-04-12 11:11:04 +02:00
Matthew D. Scholefield
fa11ac7dbe
Rename MycroftSkill.shutdown to MycroftSkill._shutdown
...
This removes the need for skills to call Super(MySkill, self).shutdown()
2018-04-11 21:29:14 -05:00
Matthew D. Scholefield
10bd9a1cf3
Change initial kill to SIGINT
...
This sends a ctrl+c signal to each process which will allow code to exit properly by handling KeyboardInterrupt
Other notable changes:
- create_daemon method used to clean up create daemon threads
- create_echo_function used to reduce code duplication with messagebus
echo functions
- wait_for_exit_signal used to wait for ctrl+c (SIGINT)
- reset_sigint_handler used to ensure SIGINT will raise KeyboardInterrupt
2018-04-11 21:29:10 -05:00
Matthew D. Scholefield
2e005a99e8
Support triggering skill settings update via a message
2018-04-11 15:24:07 -05:00