Chris Veilleux
abab1e9bda
Merge branch 'feature/mark-2' into feature/mark-2-boot
...
# Conflicts:
# mycroft/client/enclosure/mark2/interface.py
2021-12-30 12:06:14 -06:00
Kris Gesling
a59002ac8e
Autoformat
2021-12-28 17:18:43 +09:30
Kris Gesling
d07886b284
Fix reporting of volume level 1
...
All volumes were being translated from range of 0-10
into a float. 1.0 was left assuming it was 100 but
this was a false assumption. Have added docstring to
make the expected argument explicit.
2021-12-28 17:18:20 +09:30
Michael Hansen
b521cbf0e8
Disable audio ducking, use volume skill feature/mark-2 branch
2021-12-21 13:04:06 -05:00
Michael Hansen
a3c272c5e7
Add run_background in Activity
2021-12-16 17:11:04 -05:00
Chris Veilleux
ad391e8200
Add an event indicating the internet connection is ready for use
2021-12-16 15:25:01 -06:00
Michael Hansen
cd95cf60f7
Network connect activity handles intermediary disconnect state
2021-12-15 15:45:08 -05:00
Michael Hansen
3c22bda38c
Refactor and clean up code for wifi connect
2021-12-14 19:23:07 -05:00
Michael Hansen
3bf3c1a999
Merge branch 'feature/mark-2-boot' of https://github.com/MycroftAI/mycroft-core into feature/mark-2-boot
2021-12-14 12:05:42 -05:00
Michael Hansen
dffcd5605f
Use shared proc in awconnect server
2021-12-14 12:05:23 -05:00
Chris Veilleux
ba64ca08bf
Merge branch 'feature/mark-2-boot' of https://github.com/MycroftAI/mycroft-core into feature/mark-2-boot
...
Conflicts:
mycroft/client/enclosure/mark2/interface.py
2021-12-13 17:08:53 -06:00
Chris Veilleux
986ba6a87d
added new event handler for when the device has authenticated with the server.
2021-12-13 17:07:52 -06:00
Michael Hansen
5030da2cc8
Add event for user selecting access point in wifi setup
2021-12-13 11:18:07 -05:00
Michael Hansen
4e2afccf8b
Add hotspot activity with socket to awconnect
2021-12-09 17:57:52 -05:00
Michael Hansen
19df425b0a
Convert some activities to threaded
2021-12-09 17:56:30 -05:00
Michael Hansen
4159f9d646
Clear properties changed event in network connect
2021-12-08 15:48:54 -05:00
Michael Hansen
a303177ed5
Check wifi/ethernet device states directly for connectivity
2021-12-08 15:17:56 -05:00
Michael Hansen
9e67748bea
Use configuration for dbus address
2021-12-08 11:08:35 -05:00
Michael Hansen
46b02e25cc
Make clock sync activity synchronous
2021-12-07 22:39:52 -05:00
Michael Hansen
f0eb10d5ea
Move some DBus code back into network_utils
2021-12-07 17:21:47 -05:00
Michael Hansen
8f0a5d65a4
timedatectl still failing in mark2
2021-12-07 16:28:12 -05:00
Michael Hansen
7fb2847d53
Merge branch 'feature/mark-2-boot' of https://github.com/MycroftAI/mycroft-core into feature/mark-2-boot
2021-12-07 15:18:57 -05:00
Michael Hansen
07c88b980d
Add clock sync activity
2021-12-07 14:32:57 -05:00
Chris Veilleux
6e5f46cbac
added a wait into the synchronize clock method
2021-12-07 13:27:51 -06:00
Michael Hansen
d233fbd2a0
Merge branch 'feature/mark-2-boot' of https://github.com/MycroftAI/mycroft-core into feature/mark-2-boot
2021-12-07 14:12:58 -05:00
Michael Hansen
369dee5ec1
Add network/internet connect activities
2021-12-07 14:10:41 -05:00
Chris Veilleux
ea5cf61361
Added a function to determine if time is synchronized via NTP and an activity in the enclosure service to leverage it.
2021-12-07 13:06:57 -06:00
Chris Veilleux
7f2d4bd25f
Defining message bus event handlers before a message bus connection is established can cause errors.
2021-12-06 10:53:40 -06:00
Chris Veilleux
0eb5a1fc44
Fix a race condition when waiting for initialized services
2021-12-03 18:14:21 -06:00
Chris Veilleux
409fff9390
Removed if statement that checked for the existence of an enclosure. The create_enclosure() method always returns an instance of an Enclosure class
2021-12-02 16:04:37 -06:00
Chris Veilleux
9819dbf2f7
Logging improvements
2021-12-02 16:04:37 -06:00
Michael Hansen
c49868905c
Remove DEBUG log from mark2 connectivity check
2021-12-02 16:04:17 -06:00
Michael Hansen
a296952efa
Add network/internet polling thread to mark2
...
==== Tech Notes ====
Mark2 enclosure uses NetworkManager to poll for network/internet
connectivity.
On state change, outputs:
mycroft.network.connected
mycroft.network.disconnected
mycroft.internet.connected
mycroft.internet.disconnected
Every polling interval, outputs:
mycroft.network.state (data.state=connected/disconnected)
mycroft.internet.state (data.state=connected/disconnected)
2021-12-02 16:04:17 -06:00
Chris Veilleux
0328043f7c
Added log messages, changed mycroft.ready to mycroft.started and added handler for mycroft.started
2021-12-02 13:09:21 -06:00
Chris Veilleux
4b7dd93b85
Fixed bug with method signature and added log message for device ready for use.
2021-12-02 13:08:42 -06:00
Kris Gesling
be45edb54f
autoformat
2021-12-01 09:32:24 +09:30
Åke Forslund
6b5d45e507
Do not create configs folders until writing
...
This replaces save_*_path with usage of the xdg_*_home when handling
config files. This means the config folders will not be created unless
actually written to.
The check for whether a directory needs to be created is handled behind
a lock to avoid race conditions
2021-11-30 22:50:09 +01:00
Chris Veilleux
982b79482c
move enclosure logic from skill service to enclosure service
2021-11-30 15:44:09 -06:00
Chris Veilleux
aca4d1a2f6
improve enclosure initialization logging
2021-11-30 15:41:57 -06:00
Chris Veilleux
53ffd737a0
move some steps in the startup sequence so that the message bus connection is established as early as possible. this will facilitate status updates occurring as soon as possible as well.
2021-11-30 15:40:40 -06:00
Chris Veilleux
ef7009dfbc
PEP8 refactoring
2021-11-30 15:40:40 -06:00
Chris Veilleux
3d26fa9ada
Add service ready event and improve logic to determine if device is ready.
2021-11-30 15:40:27 -06:00
Kris Gesling
77549d01e2
Remove incorrectly added args in GUIWebsocketHandler methods ( #3036 )
...
PR #2879 updated the websocket-client and changed function
signatures to account for API changes in that package. These
were falsely changed as the GUI bus does not use the
websocket-client.
Consistency would be good however modifying the protocols
would require significant work. For now we have two slightly
different bus interfaces.
2021-11-22 15:00:20 +09:30
Kris Gesling
131a9ed03f
PEP8
2021-11-04 20:53:00 +09:30
jarbasal
f8f640e3e5
fix/race condition dictionary changed iteration
...
bus events could cause the dict to change while being iterated
2021-11-04 13:37:54 +09:30
Bart Ribbers
34ee3a9a84
Upgrade websocket-client to 1.2.1 ( #2879 )
...
* Upgrade websocket-client to 1.2.1
core equivalent of https://github.com/MycroftAI/mycroft-messagebus-client/pull/21
There was an incompability with the latest websocket-client and the
messagebus which needed fixing for Linux distro compatibility. Since
messagebus-client was going to depend on websocket-client 1.2.1, let's
do the same in core
* Bump message bus client and tornado versions
New version of the messagebus-client released.
Upgraded Tornado to match new function signature.
* Revert removal of websocket-client
It is still used in the `mycroft.client.text.gui_server`
Should investigate removal of this so that websocket client versions do not need to be
kept in sync between mycroft-core and mycroft-messagebus-client.
Co-authored-by: Kris Gesling <kris.gesling@mycroft.ai>
2021-10-28 14:42:23 +09:30
Kris Gesling
34ef8752ec
Demote cpu temp and led log messages to debug
2021-08-17 15:41:58 +09:30
Åke Forslund
3fd96cf71b
WIP Review comments
...
- Add TODO for 22.02 to remove the compatibility code
- Make Warning a single Log statement
- mycroft-config script now uses XDG-environment variable
- Remove redundant code
- Replace hard coded references to ~/.config
- Explicitly remove new path before move of "filesystem" (if needed)
2021-08-05 10:04:45 +02:00
Åke Forslund
9029dc1f41
Slight cleanup
...
- Make XDG usage more visible by using the xdg module prefix
- fix overloaded python keywords
- remove unused imports
2021-08-05 10:04:45 +02:00
Bart Ribbers
e20443b824
Use XDG Base directories for settings, cache and runtime data
...
Improve deprecation warning message
2021-08-05 10:04:45 +02:00
Ken Smith
ff01b7388b
add pause and resume ability to tts playback thread and use it during barge in
2021-07-02 12:12:07 -04:00
Kris Gesling
2c598fd96b
Merge branch 'dev' into feature/mark-2
2021-06-15 12:01:18 +09:30
Kris Gesling
6d57b4a855
Remove Mark II specific deprecation notices.
...
These were being perceived by the community as mycroft-core deprecations
Ducking is required on other platforms so I think it's worth waiting to
see how we implement that before actually deprecating the methods.
2021-06-10 06:47:25 +09:30
Kris Gesling
0e2a78068a
Merge pull request #2910 from MycroftAI/feature/avx-check
...
Check for the AVX instruction set during install
2021-06-02 06:54:08 +09:30
mathmauney
305b93625a
Update hotword_factory.py
...
Fix long line string
2021-05-28 21:48:49 +09:30
mathmauney
011c3899a9
Fix line too long
2021-05-28 21:48:49 +09:30
mathmauney
4ca656caac
Issue-2232 Add warning when AVX is not detected and fallback.
2021-05-28 21:48:49 +09:30
Kris Gesling
c936f2f116
Fix incorrect CLI info
2021-05-11 15:12:10 +09:30
Kris Gesling
083463a75e
Clean up docstrings and CLI help info
2021-05-11 15:12:10 +09:30
Kris Gesling
e75a05557b
docstring cleanup
2021-05-11 15:10:32 +09:30
Kris Gesling
9d23fad9e8
clean up non-error level logs
2021-05-11 14:17:53 +09:30
Kris Gesling
13e593740c
Add enclosure logs to CLI
2021-05-11 14:15:55 +09:30
Kris Gesling
27cf725411
Merge branch 'dev' into feature/mark-2
2021-05-10 07:22:45 +09:30
Kris Gesling
0fb90edd28
Rename to get_temp_path and add docstring
2021-04-30 16:49:59 +09:30
Kris Gesling
d49ccc8b7a
Fix typo and auto-format
2021-04-30 15:58:10 +09:30
dzekem christa
4547752c66
minor errors fixed
2021-04-30 14:48:15 +09:30
dzekem christa
7765d11224
ran autopep8
2021-04-30 14:48:15 +09:30
dzekem christa
3f745c52ad
created temp path function
2021-04-30 14:47:49 +09:30
dzekem christa
304439ed4b
minor fixes
2021-04-30 14:46:36 +09:30
dzekem christa
d659179645
more fixes
2021-04-30 14:46:36 +09:30
dzekem christa
621b4ab650
spaces added and uniformity in code
2021-04-30 14:46:36 +09:30
dzekem christa
9252158829
rectified pep8 issues
2021-04-30 14:46:36 +09:30
dzekem christa
32f666edd4
Issue-2727 - fixing hard coded /tmp
2021-04-30 14:46:36 +09:30
dzekem christa
a174c3c822
replaced hard coded /tmp
2021-04-30 14:46:36 +09:30
Ken Smith
cac46ad1d6
fix for jira skill-207
2021-03-29 14:49:33 -04:00
Kris Gesling
b1fb220858
Revert "update apt cache to allow Skill installation"
...
This reverts commit 9805fedd79
.
2021-03-19 12:28:48 +09:30
Ken Smith
82d9030e4d
fix for jira mk2-331
2021-03-16 15:17:36 -04:00
Kris Gesling
efee72549d
auto-format
2021-03-09 22:04:18 +09:30
Kris Gesling
9805fedd79
update apt cache to allow Skill installation
2021-03-09 22:00:57 +09:30
Ken Smith
21c201c0f4
fix chase leds never stopping
2021-03-08 14:53:23 -05:00
Ken Smith
c8a44c206d
comply with new gui requirements
2021-03-01 17:14:37 -05:00
Kris Gesling
7797dc855b
Fix missing imports for ProcessStatus
2021-02-27 15:21:44 +09:30
Ken Smith
893dbe6080
fix volume display bug, try to use palette object rather than hard coded values, change red warning to burnt orange and make reserved led show one of four temperature ranges
2021-02-26 16:10:50 -05:00
Ken Smith
f2f024e315
addresses jira mk2-249, make capabilities queryable via the msg bus
2021-02-26 15:09:39 -05:00
Ken Smith
a1035cf3d2
fix mute mic led bring up bug and fix sync between buttons and volume skill and added an async volume update message so the gui can pick it up
2021-02-26 14:06:10 -05:00
Chris Veilleux
6ed674bd3e
Merge remote-tracking branch 'origin/dev' into feature/mark-2
...
# Conflicts:
# mycroft/audio/__main__.py
# mycroft/client/speech/__main__.py
# mycroft/skills/__main__.py
# mycroft/util/process_utils.py
2021-02-26 11:49:30 -06:00
Ken Smith
b7a79f6634
add fan control
2021-02-15 14:07:06 -05:00
Ken Smith
b94d5e5c58
fix audioservice bug and stop pulsing when stop detected
2021-02-11 16:09:38 -05:00
Ken Smith
a22dd87dc1
scaffolding for led feedback around voice activity
2021-02-11 13:07:06 -05:00
Ken Smith
a7873cc22f
Generic hardware enclosure capabilities should work with any device like your laptop or the Mark2. Provides a view of the default input devices (keyboards and mice) and default output devices (screens). Should be safe to merge to master also.
2021-02-09 16:28:48 -05:00
Åke Forslund
1397659c77
Add skill api help to CLI
2021-02-06 17:57:38 +01:00
Ken Smith
289f229630
synchronize volume between skill and switches, fix mute led bring up issue and fix color palette
2021-02-05 13:47:27 -05:00
Åke Forslund
5df15245c4
Add Todo / comment regarding startup order
2021-01-28 17:24:21 +01:00
Kris Gesling
8a1ee0e106
Move ready check to enclosure; use ProcessStatus
...
Previously Mycroft reported mycroft.ready when Padatious had
finished it's first training run. This check has been shifted
to the enclosure service, and starts checking once the Padatious
training is complete.
Currently checks on readiness of audio, speech and skills services.
2021-01-28 17:24:21 +01:00
Kris Gesling
1273425799
add ProcessStatus to key services
2021-01-28 17:24:21 +01:00
Kris Gesling
73f0299cfa
Merge pull request #2722 from forslund/bugfix/latest-porcupine
...
Update for newer Porcupine engines
2021-01-25 16:29:48 +09:30
Kris Gesling
303f6a3b95
Merge pull request #2792 from MycroftAI/feature/common-bus-connection
...
Refactor - common bus connection method
2021-01-18 15:58:37 +09:30
Kris Gesling
824792dcdf
improve mic error handling
2021-01-15 11:45:57 +09:30
Kris Gesling
5e9b1ac24b
Merge pull request #2801 from MycroftAI/bugfix/mimic2-cache-dir
...
Bugfix/mimic2 cache dir
2021-01-15 11:43:04 +09:30
Ken Smith
0d765d61dc
remove logging
2021-01-12 14:38:34 -05:00