Commit Graph

1261 Commits (97af70bb8691bbb5562dd01e6987dd1d2a3e813e)

Author SHA1 Message Date
Åke 97af70bb86 Merge pull request #857 from JarbasAI/patch-16
Read Blacklisted skills from config
2017-06-30 22:08:01 +02:00
Jarbas 2c0ed93e4b pep8 2017-06-30 20:27:33 +01:00
Åke cd8324dfa1 Merge pull request #869 from MycroftAI/feature/amc-comments
Feature/amc comments
2017-06-30 21:20:16 +02:00
kfezer cc129f615d Update message.py 2017-06-30 10:03:24 -07:00
Art McGee 3872dafd81 This add comments to document the message class
Signed-off-by: Art McGee <amcgee7@jaguarlandrover.com>

	mycroft/messagebus/message.py
2017-06-30 09:57:00 -07:00
Art McGee 94e8705264 Fixes and Typeo's
Signed-off-by: Art McGee <amcgee7@jaguarlandrover.com>

	mycroft/messagebus/message.py
2017-06-30 09:54:15 -07:00
Arron Atchison 14df7e6846 Update __init__.py 2017-06-30 09:37:06 -05:00
Augusto Monteiro eaa149c1e2 Merge pull request #813 from el-tocino/bugfix-807
msm updated for issue 807
2017-06-30 10:34:38 -04:00
Steve Penrod 96c08189ed Revert "This add comments to document the message class" 2017-06-30 00:41:20 +02:00
penrods 0eee71d90f Fixed the allow_timeout (used in out-of-the-box); and a wifi setup disconnect tweak
* The allow_timeout value was tested poorly, preventing it from actually doing anything
* Upped the number of arp/ping test failures from 3 to 6 when validating the connection.  This makes falsely detecting a wifi setup disconnect pretty unlikely.
2017-06-29 17:10:14 -05:00
Jarbas ebe1c7fcea use get 2017-06-29 21:44:21 +01:00
Jarbas d4177d43a0 Update mycroft.conf 2017-06-29 21:42:05 +01:00
Jarbas 6b9c2d8e74 add blacklisted skills 2017-06-29 20:39:09 +01:00
Jarbas 8af5ce09cf read blacklisted skills from config 2017-06-29 20:36:02 +01:00
Åke b98b020da2 Merge pull request #854 from forslund/gregmccoy-feature/issue-788
Gregmccoy feature/issue 788
2017-06-29 20:32:08 +02:00
kfezer a426b48783 Merge pull request #748 from amcgee7/amcgee7_docs
This add comments to document the message class
2017-06-29 10:05:59 -07:00
Art McGee 355225ee3d Merge branch 'dev' into amcgee7_docs 2017-06-29 07:17:19 -07:00
el-tocino 25e1a07a89 dir loop fix? 2017-06-29 02:30:19 -05:00
Åke Forslund 10e4660e3e Add some safety to remove_all_listers
The same websocket client object is often used between many different
parts of the software. (for example skills) This will reduce the risk
that all listeners are removed for all events by mistake. It it still
possible toi do this by calling
`WebsocketClient.ws.remove_all_listers()` if there would be need for
this mechanism.
2017-06-29 08:09:23 +02:00
Greg McCoy d7d0dbec5e Issues 788 - Adding remove_all_listeners 2017-06-29 07:54:05 +02:00
Art McGee 8323f193f0 Merge branch 'amcgee7_docs' of https://github.com/amcgee7/mycroft-core into amcgee7_docs 2017-06-26 13:55:27 -07:00
Art McGee 57ae8bac4c Fixes and Typeo's
Signed-off-by: Art McGee <amcgee7@jaguarlandrover.com>
2017-06-26 13:52:52 -07:00
Art McGee 11c6ae4a07 This add comments to document the message class
Signed-off-by: Art McGee <amcgee7@jaguarlandrover.com>
2017-06-26 13:52:52 -07:00
kfezer@gmail.com 12ebabb70f Changing how SSH is enabled.
Now using systemctl for both enabling and disabling\
	modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:52:52 -07:00
Arron Atchison cf14c64f5a Update main.py 2017-06-26 13:52:52 -07:00
Arron Atchison 9d36ad5d20 Update version.txt 2017-06-26 13:52:52 -07:00
kfezer@gmail.com 517034bd73 Added command line calls to enable/ disable ssh
Fixed issue where ssh.enable was emitting wrong message
	Tested mycroft.dialog.get
	modified:   mycroft/client/enclosure/__init__.py
	modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:52:52 -07:00
Arron Atchison b6fb405499 Version bump to 0.8.12 2017-06-26 13:52:52 -07:00
penrods 7b1cfbca1f Minor code restructure to simplify _record_phrase()
Basically just moved the signal-related code into a helper method.
2017-06-26 13:52:52 -07:00
penrods bd4e3836d3 Improved handling of button press
Improved the way the button press is handled.  Now the listener gives the rest
of the system a moment to consume the button press before it interprets it
as a request to begin listening.

Also replaced the use of the "buttonPress" signal when "expect_response"
was indicated with an utterance.  Now the signal "startListening" is
created, differentiating it from a buttonPress.
2017-06-26 13:52:52 -07:00
penrods 8bd28e11ce Support for Mark 1 SSH > BLOCK menu item
This implements the handler for the Mark 1 menu item SSH > BLOCK (the inverse of SSH > ALLOW)
* Added handler for "unit.disable-ssh" on the serial line. This turns around and emits "mycroft.disable.ssh" on the messagebus.
* Removed the automatic reboot, just let the user know it will be different after a restart
* Made the spoken message translatable
* Changed mycroft.dialog.get() to not require the "lang" parameter.  It will default to the mycroft.conf value.
2017-06-26 13:52:52 -07:00
penrods fa32ff303a Restore the drawing of icons when showing weather.py
This implements the image drawing functionality of the lastest Mark 1 enclosure instead of the old numeric weather icon codes.
2017-06-26 13:52:52 -07:00
Åke Forslund e7b2665f80 Enable config updates for skills in container 2017-06-26 13:52:52 -07:00
Augusto Monteiro 'Sparky 55780dbc4a Fixing demo mode, sending two events on message bus 2017-06-26 13:52:52 -07:00
Arron Atchison 8483c33154 Update __init__.py 2017-06-26 13:52:52 -07:00
kfezer@gmail.com c851461c4e increases boot delay on reboot after ssh and reset
modified:   mycroft/client/enclosure/__init__.py
2017-06-26 13:52:52 -07:00
Arron Atchison 0cdfaf3ae7 bump enclosure version to 0.1.22 2017-06-26 13:52:52 -07:00
Augusto Monteiro 'Sparky ef9eb0b07d Adding demo skill 2017-06-26 13:52:52 -07:00
SoloVeniaASaludar cf1a98b2da + 2017-06-26 13:52:52 -07:00
SoloVeniaASaludar 4220026672 + 2017-06-26 13:52:52 -07:00
Augusto Monteiro 'Sparky bd93b1f2dc Adding demo mode
* Sending an event to messagebus when demo button is pressed
2017-06-26 13:52:52 -07:00
kfezer@gmail.com 551b4d4da3 Fixes error with wpa_supplicant string
modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:52:52 -07:00
Augusto Monteiro 'Sparky d92e40b39a - Device api find is passing self to get 2017-06-26 13:52:52 -07:00
Steve Penrod faa3070f3c Adding localization mechanism for strings embedded in mycroft-core code (#717)
* Adding localization mechanism for strings embedded in mycroft-core code

Added mycroft.dialog.get() function.  This behaves much like the localization
mechanism for dialogs in Skills.  So you can do things like this:

   lang = "en-us"
   str = mycroft.dialog.get("how are you", lang)

Which will look in mycroft/res/text for the dialog file containing strings to
use as templates for the actual output.  This depends on the language being
currently used.  When operating in English this would be:

   mycroft/res/text/en-us/how are you.dialog

This function will pick a random line from that file to assign to str.

A more advanced use is to embed placeholders in the strings within the
template file.

   lang = "en-us"
   ctx = {"time" : "noon"}
   str = mycroft.dialog.get("current time", lang, ctx)

And the random template line picked was "the current time is {{time}} ", then
the output would be:

   "the current time is noon"
2017-06-26 13:52:52 -07:00
SoloVeniaASaludar 07ffe301c5 + 2017-06-26 13:52:52 -07:00
kfezer@gmail.com 0a358faf79 modified: mycroft/client/wifisetup/main.py 2017-06-26 13:52:52 -07:00
SoloVeniaASaludar 1e470369c7 + 2017-06-26 13:52:52 -07:00
SoloVeniaASaludar 5893f1db92 normalize_es 2017-06-26 13:52:52 -07:00
kfezer@gmail.com 1cc2964999 modified: mycroft/client/enclosure/__init__.py 2017-06-26 13:52:52 -07:00
kfezer@gmail.com bc94caab84 modified: mycroft/client/wifisetup/main.py 2017-06-26 13:52:52 -07:00