Commit Graph

571 Commits (9d36ad5d20a69db238e626a3406fb77e7911d7aa)

Author SHA1 Message Date
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
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
kfezer@gmail.com cd75da2b5b modified: mycroft/client/wifisetup/main.py 2017-06-26 13:52:52 -07:00
kfezer@gmail.com b5ec28ed27 modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:52:52 -07:00
kfezer@gmail.com 579ddef45a modified: mycroft/client/wifisetup/main.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 93b7b84642 modified: mycroft/client/wifisetup/main.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com c6302cfe1f modified: mycroft/client/wifisetup/main.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 227d9c6772 modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:50:06 -07:00
kfezer@gmail.com 19529472d7 modified: mycroft/client/wifisetup/main.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 96caff8d32 modified: mycroft/client/enclosure/__init__.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com fa404d8ada modified: mycroft/client/wifisetup/main.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 73f6442b8d modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-06-26 13:50:06 -07:00
penrods f900032e1a Renaming DeviceApi.find() to DeviceApi.get()
Developers do not expect a function called "find" to execute an API request, this is a "get".  (I verified this with several other devs.)  Renamed and added a Deprecated comment for now.  Also:
* Added missing standard mycroft-core copyright.
* Added docstrings for basic objects and the STTApi in particular.
2017-06-26 13:50:06 -07:00
kfezer@gmail.com b3a5990c08 modified: mycroft/client/enclosure/__init__.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 52dc611aea modified: mycroft/client/enclosure/__init__.py 2017-06-26 13:50:06 -07:00
kfezer@gmail.com 176c8ffdb9 modified: mycroft/client/enclosure/__init__.py 2017-06-26 13:50:06 -07:00
Augusto Monteiro 'Sparky a4cfd76639 #706 - checking network connection 2017-06-26 13:48:09 -07:00
Augusto Monteiro 'Sparky 8e49947a03 #706 - saying that isn't connected 2017-06-26 13:48:09 -07:00
kfezer 900d12138a Update __init__.py
Adds delay to the wifi reset
2017-06-26 13:48:09 -07:00
Augusto Monteiro 'Sparky 6485018bb7 #706 - fixing on raspberry msm 2017-06-26 13:48:09 -07:00
kfezer@gmail.com ec47a9de34 modified: mycroft/client/wifisetup/main.py 2017-06-26 13:48:09 -07:00
kfezer@gmail.com 05e42938e9 deleted: mycroft/client/wifisetup/wpa_supplicant.conf.master 2017-06-26 13:48:09 -07:00
kfezer@gmail.com 7b9ec9c326 modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/speech/mic.py
	modified:   mycroft/client/wifisetup/main.py
	new file:   mycroft/client/wifisetup/wpa_supplicant.conf.master
2017-06-26 13:48:09 -07:00
Augusto Monteiro 'Sparky 253e3bdc66 #706 - Using configuration to get msm bin 2017-06-26 13:48:09 -07:00
Åke Forslund 5e5f17ddce Add short docstring to create_file() 2017-06-26 13:48:09 -07:00
Åke Forslund d0c277015e Ensure that signal directory exists when creating signal.
Also add test cases for ipc signals
2017-06-26 13:48:09 -07:00
Åke Forslund 856d3b3dff Stop multi-sentence speech 2017-06-26 13:48:09 -07:00
SoloVeniaASaludar 638c0ec40c + 2017-06-26 13:48:09 -07:00