Commit Graph

929 Commits (591acbfbf8f79cd0f3bcf10ec23d4007afb66949)

Author SHA1 Message Date
penrods 591acbfbf8 Cleaning up the MANIFEST file used for packaging
Several changes:
* Removed old references to skills/* subdirectories (now skills are not a part of mycroft-core, so unneeded)
* Added includes for mycroft/res files
2017-05-18 16:53:10 -03:00
penrods ce815bcfe2 Correcting spelling error
Fixed a typo:  "diferent" instead of "different"
2017-05-18 16:53:10 -03:00
penrods 3c2b78c670 Stopping attempt to perform Skill Update unless connected to the internet
Stopping attempt to perform Skill Update unless connected to the internet.  Also added translatable versions of spoken messages.
2017-05-18 16:53:10 -03:00
penrods 83e4f9e58f Restoring initial check for network and spoken prompt
The restores the initial check on bootup for network connectivity,
prompting the user to plug in the network cable or push the button
to start Wifi setup.

NOTE: This will need to be localized and handled by different
enclosures.
2017-05-18 16:53:10 -03:00
kfezer@gmail.com 07aa2f5cde Changing how SSH is enabled.
Now using systemctl for both enabling and disabling\
	modified:   mycroft/client/wifisetup/main.py
2017-05-18 16:53:10 -03:00
Arron Atchison 62e7df5c18 Update main.py 2017-05-18 16:53:10 -03:00
Arron Atchison 7c05b51195 Update version.txt 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 7bde4a78d0 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-05-18 16:53:10 -03:00
Arron Atchison 2e1e6a07bb Version bump to 0.8.12 2017-05-18 16:53:10 -03:00
penrods 8bd9885ba4 Minor code restructure to simplify _record_phrase()
Basically just moved the signal-related code into a helper method.
2017-05-18 16:53:10 -03:00
penrods ee13925861 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-05-18 16:53:10 -03:00
penrods 1b200089c0 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-05-18 16:53:10 -03:00
penrods 317b497d5f 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-05-18 16:53:10 -03:00
Åke Forslund c89cb36670 Enable config updates for skills in container 2017-05-18 16:53:10 -03:00
Augusto Monteiro 'Sparky 0245fbe5d2 Fixing demo mode, sending two events on message bus 2017-05-18 16:53:10 -03:00
Arron Atchison 32fcd53934 Update __init__.py 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 570687d04a increases boot delay on reboot after ssh and reset
modified:   mycroft/client/enclosure/__init__.py
2017-05-18 16:53:10 -03:00
Arron Atchison 95a235dd6e bump enclosure version to 0.1.22 2017-05-18 16:53:10 -03:00
Augusto Monteiro 'Sparky 876bc20f86 Adding demo skill 2017-05-18 16:53:10 -03:00
SoloVeniaASaludar 942055a95f + 2017-05-18 16:53:10 -03:00
SoloVeniaASaludar f7b790b660 + 2017-05-18 16:53:10 -03:00
Augusto Monteiro 'Sparky 8232772ee6 Adding demo mode
* Sending an event to messagebus when demo button is pressed
2017-05-18 16:53:10 -03:00
kfezer@gmail.com 18e5127cf9 Fixes error with wpa_supplicant string
modified:   mycroft/client/wifisetup/main.py
2017-05-18 16:53:10 -03:00
Augusto Monteiro 'Sparky 346a314c98 - Device api find is passing self to get 2017-05-18 16:53:10 -03:00
Steve Penrod c44d386a35 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-05-18 16:53:10 -03:00
SoloVeniaASaludar 85a74ab72f + 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 8b6be6e26b modified: mycroft/client/wifisetup/main.py 2017-05-18 16:53:10 -03:00
SoloVeniaASaludar 690d9763a9 + 2017-05-18 16:53:10 -03:00
SoloVeniaASaludar 8ec3c7f8bc normalize_es 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 07ec6bd422 modified: mycroft/client/enclosure/__init__.py 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 6f31c93fc0 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:53:10 -03:00
kfezer@gmail.com ea6e3c2539 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:53:10 -03:00
kfezer@gmail.com 8669599461 modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-18 16:53:10 -03:00
kfezer@gmail.com 5f70f5117c modified: mycroft/client/wifisetup/main.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 85c6cb6a72 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 8935259889 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 0b8e033d1c modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-18 16:51:54 -03:00
kfezer@gmail.com 3830d619d8 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com ed249471f8 modified: mycroft/client/enclosure/__init__.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com bb756882d3 modified: mycroft/client/wifisetup/main.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 46286b4cc2 modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-18 16:51:54 -03:00
penrods 99b7280e24 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-05-18 16:51:54 -03:00
kfezer@gmail.com f02470d6a0 modified: mycroft/client/enclosure/__init__.py 2017-05-18 16:51:54 -03:00
SoloVeniaASaludar 67cd3058d9 Update msm 2017-05-18 16:51:54 -03:00
SoloVeniaASaludar ed6772e5b9 bugfix/issue-680 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 353999b2a9 modified: mycroft/client/enclosure/__init__.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com d8565bb429 modified: mycroft/client/enclosure/__init__.py 2017-05-18 16:51:54 -03:00
kfezer@gmail.com 554fc09bc8 Adding SSH enable option
modified:   client/enclosure/__init__.py
2017-05-18 16:51:53 -03:00
Augusto Monteiro 'Sparky f9463da857 #706 - checking network connection 2017-05-18 16:51:17 -03:00
Augusto Monteiro 'Sparky a5bdc3e134 #706 - saying that isn't connected 2017-05-18 16:51:17 -03:00