Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI File Server and Alternate GUI Framework Support #9

Merged
merged 29 commits into from
Jul 8, 2023
Merged

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented May 1, 2023

Adds support for multiple GUIs, including multiple concurrent clients using different GUI frameworks

setting to translate qml paths to urls

replaces OpenVoiceOS/ovos-core#38

adds support for ovos-docker

2023-05-02 02:13:22.088 - gui - ovos_gui.bus:create_gui_service:65 - INFO - GUI Message bus started!
2023-05-02 02:13:22.088 - gui - ovos_gui.namespace:_get_idle_display_config:384 - INFO - Getting Idle Skill From Config
2023-05-02 02:13:22.088 - gui - ovos_gui.namespace:_get_active_gui_extension:394 - INFO - Getting GUI Extension From Config
2023-05-02 02:13:22.090 - gui - ovos_gui.qml_server:_initialize_http_server:49 - INFO - QML file server started: 0.0.0.0:8089
2023-05-02 02:13:22.091 - gui - ovos_gui.service:on_alive:14 - INFO - Gui Service is alive.
(...)
2023-05-02 02:13:25.706 - gui - ovos_gui.namespace:handle_client_connected:751 - INFO - GUI with ID ovos-gui-client_922259 connected to core message bus
2023-05-02 02:14:38.925 - gui - ovos_gui.namespace:handle_show_page:521 - INFO - Handling page show request
2023-05-02 02:14:38.926 - gui - ovos_gui.page:__init__:35 - INFO - serving qml file SYSTEM_ImageFrame.qml from /tmp/ovos_qml_server/SYSTEM_ImageFrame.qml via http://0.0.0.0:8089/SYSTEM_ImageFrame.qml
2023-05-02 02:14:38.926 - gui - ovos_gui.namespace:_activate_namespace:560 - INFO - Activating namespace: skill-ovos-wikipedia.openvoiceos
(...)
2023-05-02 02:14:38.928 - gui - ovos_gui.namespace:_add_pages:238 - INFO - Page: http://0.0.0.0:8089/SYSTEM_ImageFrame.qml, SYSTEM_ImageFrame.qml, False, 20
2023-05-02 02:14:38.929 - gui - ovos_gui.namespace:_activate_page:258 - INFO - Activating page SYSTEM_ImageFrame.qml in GUI namespace skill-ovos-wikipedia.openvoiceos

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

❗ No coverage uploaded for pull request base (dev@f446173). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             dev       #9   +/-   ##
======================================
  Coverage       ?   53.02%           
======================================
  Files          ?       11           
  Lines          ?      992           
  Branches       ?        0           
======================================
  Hits           ?      526           
  Misses         ?      466           
  Partials       ?        0           

Copy link
Member

@goldyfruit goldyfruit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README should be updated as well for the qml_server option.

ovos_gui/page.py Outdated Show resolved Hide resolved
@JarbasAl JarbasAl marked this pull request as draft June 21, 2023 18:53
comments

enclosure everywhere, clarity nowhere

Update GUI page handling to always write gathered pages locally
Support configured GUI directory to write files to (i.e. for a mounted docker volume)

Start on URI determination with annotated TODO

Add handler to request GUI pages on `ready`

not bytes

bus upload qml

bus upload qml

better logs

better logs

feat/qml_server

setting to translate qml paths to urls

Increment Version
ovos_gui/bus.py Outdated Show resolved Hide resolved
ovos_gui/bus.py Outdated Show resolved Hide resolved
ovos_gui/bus.py Show resolved Hide resolved
ovos_gui/bus.py Outdated Show resolved Hide resolved
ovos_gui/namespace.py Outdated Show resolved Hide resolved
ovos_gui/qml_server.py Outdated Show resolved Hide resolved
ovos_gui/bus.py Outdated Show resolved Hide resolved
Include homescreen reload after resource file upload
Add unit test coverage
@JarbasAl JarbasAl mentioned this pull request Jul 6, 2023
@NeonDaniel NeonDaniel marked this pull request as ready for review July 6, 2023 22:21
@NeonDaniel NeonDaniel changed the title feat/qml_server GUI File Server and Alternate GUI Framework Support Jul 6, 2023
@NeonDaniel NeonDaniel marked this pull request as draft July 6, 2023 22:51
@NeonDaniel NeonDaniel marked this pull request as ready for review July 7, 2023 00:36
@NeonDaniel
Copy link
Member

NeonDaniel commented Jul 7, 2023

Replaces #18
Needs OpenVoiceOS/ovos-utils#178

@JarbasAl JarbasAl merged commit fc49193 into dev Jul 8, 2023
7 checks passed
@JarbasAl JarbasAl deleted the feat/qml_server branch July 8, 2023 00:05
@github-actions github-actions bot mentioned this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants