Commit Graph

4899 Commits (refactor/python-detect)

Author SHA1 Message Date
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
kfezer@gmail.com f096d28d5a modified: mycroft/client/enclosure/__init__.py 2017-05-01 15:36:54 -07:00
SoloVeniaASaludar 52af555ea3 Update msm 2017-04-30 22:35:39 -07:00
SoloVeniaASaludar 780606b9db bugfix/issue-680 2017-04-30 22:35:39 -07:00
kfezer@gmail.com 672016ea03 modified: mycroft/client/enclosure/__init__.py 2017-04-28 15:21:03 -07:00
kfezer@gmail.com 41e7109ba5 modified: mycroft/client/enclosure/__init__.py 2017-04-28 15:08:42 -07:00
kfezer@gmail.com ace3002bd0 Adding SSH enable option
modified:   client/enclosure/__init__.py
2017-04-28 14:01:34 -07:00
kfezer e49184223f Merge pull request #711 from MycroftAI/feature/issue-706
#706 - saying that isn't connected
2017-04-27 17:41:38 -07:00
Augusto Monteiro 'Sparky a73a109b37 #706 - checking network connection 2017-04-27 17:32:48 -07:00
kfezer 94e88bb9bd Merge pull request #710 from MycroftAI/kfezer-adddelay-1
Update __init__.py
2017-04-27 17:30:35 -07:00
Augusto Monteiro 'Sparky 66389dbc0f #706 - saying that isn't connected 2017-04-27 17:25:27 -07:00
kfezer a8bcb84581 Update __init__.py
Adds delay to the wifi reset
2017-04-27 17:22:15 -07:00
kfezer 1dfec9d802 Merge pull request #709 from MycroftAI/feature/issue-706
#706 - fixing on raspberry msm
2017-04-27 16:27:57 -07:00
Augusto Monteiro 'Sparky bbec0c602f #706 - fixing on raspberry msm 2017-04-27 16:19:00 -07:00
kfezer 55b6baad1b Merge pull request #708 from MycroftAI/bugfix/reset-wifi
Adds reset wifi feature to reset
2017-04-27 16:05:14 -07:00
kfezer@gmail.com a9cd201163 modified: mycroft/client/wifisetup/main.py 2017-04-27 15:54:57 -07:00
kfezer@gmail.com 3250b4a585 deleted: mycroft/client/wifisetup/wpa_supplicant.conf.master 2017-04-27 15:49:17 -07:00
kfezer@gmail.com 65a0dcfd67 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-04-27 15:37:58 -07:00
kfezer 1502da1109 Merge pull request #707 from MycroftAI/feature/issue-706
#706 - Using configuration to get msm bin
2017-04-27 15:17:23 -07:00
Augusto Monteiro 'Sparky d26b73ec4a #706 - Using configuration to get msm bin 2017-04-27 15:04:16 -07:00
kfezer bff9dfa2ce Merge pull request #703 from forslund/bugfix/issue-702
Bugfix/issue 702
2017-04-27 14:16:53 -07:00
Åke Forslund e4f2bb310b Add __init__ to test/util to activate tests in that subdir 2017-04-27 18:37:50 +02:00
Åke Forslund 2ed9118372 Add short docstring to create_file() 2017-04-27 18:11:40 +02:00
Åke Forslund 883b58567c Ensure that signal directory exists when creating signal.
Also add test cases for ipc signals
2017-04-27 18:11:07 +02:00
Augusto Monteiro fe3d0fce75 Merge pull request #670 from forslund/unittest
Attempt to reenable (most) of the unittests
2017-04-26 12:21:14 -07:00