Skip to main content

The GARMI gui.

Project description

garmi-gui

Actions Status Documentation Status PyPI version PyPI platforms codecov

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.

Requirements

To install this package you need pip >= 19.3 and SDL >= 2.0.8. You can upgrade pip by running pip install --upgrade pip. SDL can be installed on Ubuntu systems by executing sudo apt-get install libsdl-dev in a terminal.

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

garmi_gui-1.0.2.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

garmi_gui-1.0.2-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file garmi_gui-1.0.2.tar.gz.

File metadata

  • Download URL: garmi_gui-1.0.2.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

Hashes for garmi_gui-1.0.2.tar.gz
Algorithm Hash digest
SHA256 58539c728c02cdae8fa5807337015a6b0bfe83c17531a176b2bf919953c60ab5
MD5 795aa64100d517ea4a9ca4ce8e348c3d
BLAKE2b-256 90e993708e343d377a39fcb77f5fda23913021f16cb89f94d12c35660574927e

See more details on using hashes here.

File details

Details for the file garmi_gui-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: garmi_gui-1.0.2-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

Hashes for garmi_gui-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d510364a353b1edad598893cef42b9373f65d79477cc8cd70e528d0daae4eaf
MD5 c8b28510a6b5660f239cd916bcf858dd
BLAKE2b-256 43f9a0080b4c12bd9dda008051e7e27ec11ecc0d7da10d53cb6ee1940b26b4bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page