Commit Graph

1573 Commits (370b51ff6af93a0a5e40bec6a2de6dbe978eaa5c)

Author SHA1 Message Date
Arron Atchison 3c42443e04 Update version.txt 2017-05-08 16:34:16 -07:00
kfezer@gmail.com d77709e1f9 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-08 16:30:51 -07:00
Arron Atchison 5e037c3f1f Version bump to 0.8.12 2017-05-08 15:49:22 -07:00
penrods 6428063531 Minor code restructure to simplify _record_phrase()
Basically just moved the signal-related code into a helper method.
2017-05-08 15:44:36 -07:00
penrods 6399644032 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-08 15:44:36 -07:00
Augusto Monteiro 131a8204da Merge pull request #735 from forslund/bugfix/issue-734
Enable config updates for skills in container
2017-05-08 14:58:21 -07:00
penrods 771d773931 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-08 13:37:18 -07:00
Augusto Monteiro afae353dc8 Merge pull request #738 from MycroftAI/feature/weather-icons
Restore the drawing of icons when showing weather.py
2017-05-08 11:24:26 -07:00
penrods 497de370a2 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-07 19:53:24 -07:00
Åke Forslund 4910f4c1d3 Enable config updates for skills in container 2017-05-06 09:46:06 +02:00
kfezer 27c9a03a52 Merge pull request #733 from MycroftAI/hotfix/fix-demo-mode
Fixing demo mode, sending two events on message bus
2017-05-05 16:20:37 -07:00
Augusto Monteiro 'Sparky e77082baf7 Fixing demo mode, sending two events on message bus 2017-05-05 16:12:11 -07:00
Arron Atchison 80083f880d Update __init__.py 2017-05-05 14:18:26 -07:00
kfezer 8240e547bf Merge pull request #722 from SoloVeniaASaludar/feature/issue-721
i18n: Spanish normalize_es
2017-05-05 13:44:24 -07:00
kfezer 24b545b76f Merge pull request #732 from MycroftAI/bug/ssh-wifi-reset-delay
increases boot delay on reboot after ssh and reset
2017-05-05 13:35:03 -07:00
kfezer@gmail.com 083ac3fb6b increases boot delay on reboot after ssh and reset
modified:   mycroft/client/enclosure/__init__.py
2017-05-05 13:25:00 -07:00
Augusto Monteiro 44c20c7ca4 Merge pull request #731 from MycroftAI/feature/add-demo-skill
Adding demo skill
2017-05-05 12:20:28 -07:00
Arron Atchison 27cbd14def bump enclosure version to 0.1.22 2017-05-05 12:17:52 -07:00
Augusto Monteiro 'Sparky 7f53f0aee5 Adding demo skill 2017-05-05 12:11:36 -07:00
SoloVeniaASaludar d85583af74 + 2017-05-05 14:10:19 +02:00
SoloVeniaASaludar 054725ee40 + 2017-05-05 13:27:35 +02:00
Augusto Monteiro b31df91673 Merge pull request #729 from MycroftAI/feature/adding-demo-mode
Adding demo mode
2017-05-04 16:35:28 -07:00
Augusto Monteiro 'Sparky 4328e869a9 Adding demo mode
* Sending an event to messagebus when demo button is pressed
2017-05-04 15:46:37 -07:00
kfezer 28a5043e25 Merge pull request #728 from MycroftAI/bug/fix-wpa-sup-string
Fixes error with wpa_supplicant string
2017-05-03 18:11:02 -07:00
kfezer c0c1d57809 Merge pull request #727 from MycroftAI/feature/issue-726
#726 - Device api find is passing self to get
2017-05-03 18:07:57 -07:00
kfezer@gmail.com 6bb6de324c Fixes error with wpa_supplicant string
modified:   mycroft/client/wifisetup/main.py
2017-05-03 17:59:33 -07:00
Augusto Monteiro 'Sparky 7bf43b2dd6 - Device api find is passing self to get 2017-05-03 17:57:33 -07:00
kfezer 2427e1f81d Merge pull request #712 from MycroftAI/feature/enable-ssh
Adding SSH enable option
2017-05-03 16:01:18 -07:00
kfezer@gmail.com 1ee3b82766 modified: mycroft/client/wifisetup/main.py 2017-05-03 15:52:29 -07:00
kfezer 754015f722 Merge branch 'dev' into feature/enable-ssh 2017-05-03 15:40:24 -07:00
kfezer ecd9ae07e3 Merge pull request #720 from MycroftAI/feature/wifi-reset
Feature/wifi reset
2017-05-03 15:33:58 -07:00
Steve Penrod e1fa41bff2 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-03 21:25:17 +02:00
SoloVeniaASaludar e21f4a3193 + 2017-05-03 19:48:08 +02:00
kfezer@gmail.com 52122894dc modified: mycroft/client/wifisetup/main.py 2017-05-03 10:07:55 -07:00
SoloVeniaASaludar af7cfc6767 + 2017-05-03 12:13:45 +02:00
SoloVeniaASaludar 7f2d7f7277 normalize_es 2017-05-03 11:37:00 +02:00
Augusto Monteiro 9c24957d6c Merge pull request #716 from MycroftAI/feature/find_to_get
Renaming DeviceApi.find() to DeviceApi.get()
2017-05-02 17:58:29 -07:00
kfezer@gmail.com 282c7eadfa modified: mycroft/client/enclosure/__init__.py 2017-05-02 17:14:48 -07:00
kfezer@gmail.com feb25a6602 modified: mycroft/client/wifisetup/main.py 2017-05-02 16:49:45 -07:00
kfezer@gmail.com 745b43020e modified: mycroft/client/wifisetup/main.py 2017-05-02 16:48:17 -07:00
kfezer@gmail.com dcc91e17af modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-02 16:40:41 -07:00
kfezer@gmail.com 7615c2e6bd modified: mycroft/client/wifisetup/main.py 2017-05-02 13:50:25 -07:00
kfezer@gmail.com 1d58d7ad0f modified: mycroft/client/wifisetup/main.py 2017-05-02 13:38:31 -07:00
kfezer@gmail.com ff173dc5b0 modified: mycroft/client/wifisetup/main.py 2017-05-02 13:22:39 -07:00
kfezer@gmail.com d6b676795d modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-02 13:15:53 -07:00
kfezer@gmail.com afc2d5661a modified: mycroft/client/wifisetup/main.py 2017-05-02 13:07:43 -07:00
kfezer@gmail.com 0aca6c2797 modified: mycroft/client/enclosure/__init__.py 2017-05-02 12:45:54 -07:00
kfezer@gmail.com a9e8dd2f24 modified: mycroft/client/wifisetup/main.py 2017-05-02 10:48:45 -07:00
kfezer@gmail.com c8d020a45d modified: mycroft/client/enclosure/__init__.py
modified:   mycroft/client/wifisetup/main.py
2017-05-01 21:08:04 -07:00
penrods 5b2f320f41 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-01 17:07:40 -07:00