The GARMI gui.
Project description
garmi-gui
GUI for the GARMI robot's face screen with remote control to show images, play videos and sounds, and render text.
Install
To install run
pip install garmi-gui
or if you're working with the code in a local clone of the repository
pip install -v -e .[dev]
Checkout the contribution guide for more details.
Run
The Python package installs executables for convenience. You can start the GUI
by simply running garmi-gui
. This will start the GUI in fullscreen mode. For
development purposes it is convenient to run the GUI in windowed mode, you can
do so by executing garmi-gui --windowed
.
Remote Control
The GUI is controlled remotely using xmlrpc. There is a convenience terminal
script to quickly execute GUI functions. You can run the tool by executing
garmi-gui-control --hostname <gui-hostname>
where is the
hostname of the computer running the GUI.
To control the GUI from Python simply connect with an xmlrpc client and call the remote functions like this:
from xmlrpc import client
hostname = "localhost"
port = 8000
server_url = f"http://{hostname}:{port}"
proxy = client.ServerProxy(server_url)
proxy.show_image("happy.png")
proxy.play_sound("success.wav")
You may specify an absolute path to a file on the computer running the GUI, relative paths are evaluated relative to the resources directory. Checkout the documentation or the control script for a complete list of possible commands.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file garmi_gui-1.0.0.tar.gz
.
File metadata
- Download URL: garmi_gui-1.0.0.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c934523524177a80ea6c5a53d8602242f731567c48c568d97d026db0552091 |
|
MD5 | 938c5a0231bb180dfe1305651452b29f |
|
BLAKE2b-256 | 1eb80e6bce7b7b950e60387282a6637dc8f6ec4dd8028e4d8b9a62eca7cdf8f9 |
File details
Details for the file garmi_gui-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: garmi_gui-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51d55439b5989f85f17e3e22577c20354bcb03cfd6610832b2d7af130e34f32d |
|
MD5 | e2508a286d26d929d1d4746a0f599739 |
|
BLAKE2b-256 | 8bba27b75918085614ac6e0bb4c077f315e72cc41241c45bfd7e14cd8d16b7ce |