Commit Graph

2541 Commits (223c88b4dd84b5daaef7935cbd125b8cfde5ef8a)

Author SHA1 Message Date
Steve Penrod 223c88b4dd CLI Updates: Restore VT100 support, help, etc. (#1667)
* Restored VT100 function key support
* ESC now clears the entry line
* Spoken commands now become part of the history
* Enhanced help screen with auto word-wrap
* Bugfix: "Show meter" setting didn't persist, now it does
2018-07-12 09:38:29 +02:00
Steve Penrod bcb1e795ef Add 'venv-activate.sh' script (#1682)
Add 'venv-activate.sh' script

This script in the root makes it easier for devs to discover the
virtual environment which Mycroft should run under.  Virtual
environments are new to many, so the commands aren't obvious even
if they are only one liners.

====  Documentation Notes ====
Should probably be mentioned in the Getting Started docs for
Github users.  This mirrors the 'mycroft-venv-activate' alias found
under Mark 1/Picroft.
2018-07-12 09:15:17 +02:00
Åke 14349cfb25 Remove stray lock.release() (#1680)
This fixes a stray lock.release() causing a silent

RuntimeError: release unlocked lock

after TTS execution but just before reporting the timing for the TTS system.
2018-07-10 12:28:45 -05:00
Åke 23fcc631c4 Bugfix mycroft-use github (#1659)
* Fix startup scripts

- change start.sh to the new start-mycroft.sh
- fix startup of messagebus service
- fix startup of enclosure

* Fix running dev_setup.sh as root

Use --allow-root when calling dev_setup.sh

* Correct default directory for user

On the Mark-1 the script would create the mycroft-core repo in /home/root instead of /root when running the script as root

* Skip mimic installation correctly

* Allow doing the github install without root

Running mycroft under root stumbles into issues accessing the audio. allowing unstall under pi user is also more intuitive.

* Change ownership of the webcache

* fix starting/stopping wifi-service

* Fix switching permissions

* Correct startup order

- load messagebus before enclosure
- reboot to workaround audio input issue

* Disable updates when switched to github install

* Fix identity update

identity updates weren't transfered back to the mycroft user since the linked file was overwritten. Now the identity folder is linked instead.
2018-07-10 03:26:30 -05:00
Åke f8eb7587df Handle stop correctly in the audio service. (#1677)
* Handle stop correctly in the audio service.

This allows for example the news skill playback to be stopped without
the listening being triggered.

* Handle case where service stops at end of playlist

- Fix issue when receiving multiple stop signals
- Stop method of services now returns True or False depending on if audio was playing
2018-07-10 03:23:41 -05:00
JarbasAI 6cf2ed814c feature/allow to pronounce ordinals and very small fractions (#1663)
* allow to pronounce ordinals

* cleanup

* long scale / short scale very small fractions
2018-07-10 02:54:04 -05:00
Åke 1093383443 Fix extraction of 0 in extract_number() (#1673)
0 was not detected as a valid number when checking if the function should proceed to check for fractions.
2018-07-10 02:26:25 -05:00
devs-mycroft 83254d2f89 Version bump from 18.2.9 to 18.2.10 2018-07-06 09:31:59 +00:00
Åke 779012e693
Merge pull request #1675 from MycroftAI/feature/fix-unknown-platform
Fix crash during initial skill download
2018-07-06 09:04:52 +02:00
Åke 1b01eac7b0
Merge pull request #1657 from MycroftAI/feature/rewrite-precise
Refactor Precise engine and support engine timeouts
2018-07-06 08:52:45 +02:00
penrods e0dc373915 Fix crash during initial skill download
When running on a platform for which there was not DEFAULT.platform
file in the mycroft-skills repo, the downloading of skills would
crash.  Now an informational message is shown and the DEFAULT
skills alone are loaded.
2018-07-06 01:42:16 -05:00
Matthew Scholefield 189e0f10ab Refactor Precise engine and support engine timeouts 2018-07-06 00:05:28 -05:00
Steve Penrod 17aab53fae Enhance the behavior of the Mark 1 button (#1668)
The Mark 1 button press can now be "consumed" when a skill handles
the Stop command.  When this happens, the button press will not
trigger listening mode.  An additional press would be needed to
trigger listening.

This introduces the "mycroft.stop.handled" messagebus message.  It
carries a data field called "by" which identifies who handled it.
Currently the values are "TTS" for when speaking ends or the name
of a skill which implements Stop and returns True from the call.

Also fixed a potential bug when the flag to clear queued visemes
was left set after a button press.
2018-07-05 20:56:54 +02:00
JarbasAI db4740d407 Add Responsive voice tts (#1565)
Adds responsive voice as an optional TTS service.

See https://responsivevoice.org/text-to-speech-sdk/text-to-speech-widget/
2018-07-04 13:21:34 +02:00
Åke eb091ea87a
Update requests to bleeding edge (2.19.1) (#1661) 2018-07-04 09:54:28 +02:00
Åke 622748d7d3 Bugfix/parse corrections (#1670)
* Restore extractdatetime to return False

- Restore extractdatetime to return False if no time was found
- Add tests to make sure this is true
- Add a extract_datetime function to keep coherency with the rest of the functions. (the old extractdatetime still exists for compatibility)
- Update documentation to match

* Minor corrections to docstrings.
2018-07-02 02:44:28 -05:00
Michael Nguyen 8a26a3769a
Merge pull request #1666 from MycroftAI/feature/upgrade-msm-1
Upgrade msm
2018-06-28 17:00:17 -05:00
Matthew D. Scholefield 6a26af1ec5
Upgrade msm
This fixes a bug in msk with extract_author
2018-06-28 16:38:19 -05:00
Michael Nguyen 4522f9adcb
Merge pull request #1662 from MycroftAI/feature/upgrade-padaos-1
Upgrade Padaos
2018-06-27 14:54:49 -05:00
Matthew D. Scholefield 2cae3c91e2
Update Padaos
This fixed issues with Python 3.4
2018-06-27 13:19:09 -05:00
JarbasAI d69e73ced9 govivace_stt (#1654)
* Add support for Govivace STT (https://www.govivace.com/)
2018-06-27 16:09:56 +02:00
Aditya Mehra 3ae4746099 Feature add query mic status (#1656)
* Feature: Add query mic status

Adds the message bus message `mycroft.mic.get_status` which responds with data on if mic is muted or not.
2018-06-27 15:51:33 +02:00
JarbasAI fa4173a2d3 fix extract date (#1651)
* Fix errors when spaces are missing "3pm" "5seconds"
* Fix relative times "in 15 minutes" is now from current time not from midnight

Resolves #1650
2018-06-26 11:45:39 +02:00
Michael Nguyen cf847d1bf2
Merge pull request #1660 from MycroftAI/feature/upgrade-padaos
Lock padaos version
2018-06-25 16:00:48 -05:00
Matthew D. Scholefield 8afde98c7f
Lock padaos version
This forces users to get the new version when they run `dev_setup.sh`.
2018-06-25 15:28:34 -05:00
Carsten Agerskov 5994644085 Feature/nice date (#1635)
* Added nice_date, nice_date_time, nice_year
2018-06-25 17:43:24 +02:00
Åke b1408617bc CLI Feature: skill commands (#1612)
* Update format for skill listing

Now send the skills with id and active status

* Add commands to activate/deactivate skills

* Add "unload all except one" functionallity

* Update after rebasing

- fix identifying skills

* Unload skills if they're removed from disk

* Rename _shutdown to default_shutdown

The method is not intended to be non-public, and this should shut up
codacy bot.

* Handle keep command without argument

* Add new commands to help

- Split help into multiple pages as needed

* Support :activate all
2018-06-22 00:59:51 -05:00
devs-mycroft a085bfeee6 Version bump from 18.2.8 to 18.2.9 2018-06-21 11:49:07 +00:00
Josh Cox 8bed5f9fe9 Moving wait_while_speaking to mycroft.audio.rst (#1645) 2018-06-20 19:28:56 -05:00
Matthew D. Scholefield 41ec3829da Upgrade Padatious (#1641)
* Upgrade Padatious to 0.4.3
This upgrade adds a timeout to training and uses a rigid matcher on top of the neural networks to ensure consistency
2018-06-20 07:54:53 +02:00
Åke e1d13864bb
Merge pull request #1642 from JarbasAl/improve_extract_number_en
improve extract_number_en
2018-06-18 16:50:43 +02:00
Åke Forslund 39c4e0aaf1 Add wiki link for long/short scale 2018-06-18 15:46:20 +02:00
jarbasal 7e1fb80cb4 improve extract_number_en
- Support higher numbers, almost unreasonably high!
- Support long scale and short scale
2018-06-18 15:45:14 +02:00
Matthew D. Scholefield abd1fe7571
Merge pull request #1637 from forslund/feature/remove-monotonic
Use time.monotonic instead of monotonic module
2018-06-14 14:59:13 -05:00
Matthew D. Scholefield c7d8413b7c
Merge pull request #1630 from forslund/test/base-config
Make use of the default config when testing.
2018-06-14 14:53:37 -05:00
Åke 3a22eea5ba
Merge pull request #1636 from MycroftAI/feature/upgrade-msm-padatious
Upgrade msm and padatious
2018-06-13 07:44:16 +02:00
Matthew D. Scholefield 85df3adbb0 Remove Padatious version check
No longer necessary now that we notify users when dependencies are out of date
2018-06-12 16:10:26 -05:00
Michael Nguyen d81d321ed0
Merge pull request #1627 from forslund/bugfix/socket-timeout
Fix changed default socket timeout
2018-06-12 16:01:47 -05:00
f-e-l-i-x b239d3dc2f German language support (#1634)
* Add parse and format functions for german
* Add german dialog files
2018-06-12 08:55:21 +02:00
Michael P. Scherer a46c9e5671 Fixed dev_setup.sh for dnf users for python3 update (#1615)
* Fixed dev_setup.sh for dnf users for python3 update
2018-06-12 08:33:10 +02:00
Åke Forslund be8711a438 Use time.monotonic instead of monotonic module
Replace the monotonic time from the monotonic module with the built in time.monotonic
2018-06-11 16:05:50 +02:00
Matthew D. Scholefield 14897368f7
Upgrade msm and padatious
Padatious upgrade brings in nested parentheses support and slightly optimized network inputs
Msm upgrade brings in a bugfix for git repos with private or invalid remotes
2018-06-08 19:53:45 -05:00
devs-mycroft cdd5800098 Version bump from 18.2.7 to 18.2.8 2018-06-08 20:18:28 +00:00
Åke 03df1bf648
Merge pull request #1633 from MycroftAI/messagebus-warning
Add security notice running Mycroft from desktops
2018-06-08 20:48:47 +02:00
penrods 490b967a32 Add security notice running Mycroft from desktops
Security researcher w00t pointed out a potential exploit if an user
starts the Mycroft messagebus service on a system with an exposed
network connection with no protection for port 8181.  For now the
start-mycroft.sh script will simply display a CAUTION to point out
this concern and remind them to protect themselves with a firewall.

Future versions of the websocket implementation will use encryption
and authentication.
2018-06-08 12:59:00 -05:00
Åke c7cad45c71
Merge pull request #1632 from MycroftAI/feature/upgrade-msk
Upgrade msk to 0.3.9
2018-06-08 19:19:44 +02:00
Matthew D. Scholefield 46276c337a
Upgrade msk to 0.3.9 2018-06-08 11:12:06 -05:00
Åke Forslund 451a43fe51 Make use of the default config when testing.
Always use the default config as base config to make tests less error prone when changes occur.
2018-06-07 19:57:09 +02:00
Matthew D. Scholefield 724a439117
Merge pull request #1628 from forslund/feature/pronounciations
Feature/pronounciations
2018-06-07 11:36:15 -05:00
Åke 5d6fd4d871
Merge pull request #1629 from MycroftAI/feature/https-ww-upload
Change wake word upload to https request
2018-06-07 08:58:28 +02:00