Commit Graph

4899 Commits (refactor/python-detect)

Author SHA1 Message Date
Åke Forslund 986cf55d1b Use exit status of msm to determine install success
- msm will now return immediately if an error occurs
- install_default_skills now checks exit status instead of text output
2017-05-23 07:47:06 +02:00
Åke 76bb19b808 Merge pull request #754 from forslund/bugfix/issue-715
Remove ignoring SIG_CHLD
2017-05-22 22:27:31 +02:00
Arron Atchison 659d9a2bf3 removed "uppercase" from wifi setup dialog 2017-05-22 14:17:09 -05:00
Arron Atchison 5da2420686 Bump version to 0.8.14 2017-05-22 14:13:11 -05:00
aatchison 9cc83c6ecc fixed typo in mycroft didn't catch that dialog 2017-05-22 13:42:23 -05:00
aatchison 01730856aa changed wifi setup password to 12345678 2017-05-22 13:42:23 -05:00
Åke Forslund b31c7b6647 Add docstrings. 2017-05-22 19:12:00 +02:00
Augusto Monteiro d35f1b15be Merge pull request #730 from MycroftAI/feature/skill-generator
Adding a script to generate a skill
2017-05-22 13:34:14 -03:00
Augusto Monteiro 'Sparky 93accbafa6 Adding a script to generate a skill
* Creating a skill inside skill folders
* Creating the whole skill structure
* Creating a basic __init__
2017-05-22 12:53:50 -03:00
brihopki 40ca7e0378 adding in docker setup script 2017-05-21 09:01:21 -07:00
Åke Forslund 925cadc19e Add support for switching tts and settings
- If tts config hash has changed re-initialize tts
- Cache is cleared on mimic initialization
2017-05-20 21:43:53 +02:00
Åke Forslund 7da9f5a965 Add functionality to update listener/STT config
When a new configuration is discovered the producer and consumer is shutdown, the config is read and a new producer-consumer pair is launched.
2017-05-20 21:38:35 +02:00
Åke Forslund 731fb56625 Use normal load method to update configs.
This will apply normal order of config. i.e. a remote config can't overwrite local configurations.
2017-05-20 21:38:23 +02:00
Åke Forslund bcd7776a38 Fix grammar issue. 2017-05-20 08:31:39 +02:00
Åke Forslund 3a71f85301 Replace load_settings() with a settings property
settings are now loaded and created when required and not directly at
load of skill.
2017-05-20 08:31:22 +02:00
Åke Forslund 0ef94689bf Add docstrings. 2017-05-20 08:31:07 +02:00
Åke Forslund e79dee92e9 Only store settings object after new write 2017-05-20 08:30:31 +02:00
Åke Forslund 40010e90f0 Store settings object on shutdown 2017-05-20 08:30:07 +02:00
Åke Forslund b8b05e6543 Add unittest for SkillSettings 2017-05-20 08:29:27 +02:00
Åke Forslund b6a34f8cee Add skill settings to skills 2017-05-20 08:29:05 +02:00
Åke Forslund 4912573cab Remove ignoring SIG_CHLD
Ignoring SIG_CHLD can be convenient but parts of the python standard
library relies on the behaviour of SIG_CHLD and will not work correctly
in this configuration.
2017-05-20 08:16:52 +02:00
Augusto Monteiro 1518444f6d Merge pull request #611 from SoloVeniaASaludar/bugfix/issue-610
i18n: language codes are not always two word
2017-05-19 22:57:46 -03:00
Arron Atchison 68be4282e6 Update __init__.py 2017-05-18 16:53:10 -03:00
penrods f9987c7c55 Converting last_internet_notification to a class instead of instance variable
I'm not 100% certain why this is needed, to be honest.  Maybe something I don't get about Python and threads?  This fixes double-announcements about connecting to the internet.
2017-05-18 16:53:10 -03:00
el-tocino eeb3c7fe06 punctuation matters. 2017-05-18 16:53:10 -03:00
el-tocino 4372d6f9ab more complete audio info 2017-05-18 16:53:10 -03:00
el-tocino c6179eb937 Issues-739 Adding my-info.sh 2017-05-18 16:53:10 -03:00
Åke Forslund 65d0943d4d Update pyOpenSSL version to 16.2.0
16.0.0 seem to have problems with newer versions of system installed
openSSL stack. Discussion in issue #705

Thanks to BoBeR182 for providing this solution.
2017-05-18 16:53:10 -03:00
penrods 3d62587a54 SSH messages were misleading - no reboot is needed anymore 2017-05-18 16:53:10 -03:00
Åke Forslund d6e816f747 Fix GoogleSTT
Fix provided by remidechazelles, many thanks.
2017-05-18 16:53:10 -03:00
penrods b0559a50af User prompts to help the Mark 1 get connected to the internet didn't always occur
On the Mark 1 device, there is a sequence of events that produce a guide to the user for getting their device setup and connected to the internet.  This process is basically:
* Enclosure client starts up, sending a message to the Arduino
* When/if the Arduino responds, it checks for a live internet connection
* If no connection is found, the user is prompted
However the speech client was sometimes not fully up, so the request to speak the prompt was sent before it was listening.

Additionally, sometimes events would occur that caused the prompt to connect the unit multiple time in a row.  This commit limits the prompts to a max of once every 30 seconds.

Finally, I commented the code and renamed some of the methods to clarify this sequence of events.  The code:
   Timer(5, self.stop).start()
and:
   def stop(self):
        if not self.started:
            self.writer.stop()
Are some of the most confusing lines of code I've ever seen.  :)

Major changes:
* The messagebus message "enclosure.start" is now "enclosure.started"
* Enclosure.start() is now Enclosure.on_arduino_responded()
* Enclosure.started is now Enclosure.arduino_responded
* Added Enclosure.last_internet_notification to track notification times
* The notification call to the speech client is now delayed by 5 seconds, providing time for the speech client to come up.  (And an additional check is run to verify the connection is still down immediately before the verbal prompt is spoken)
2017-05-18 16:53:10 -03:00
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