Skip to main content

Overview

stretch4_tray is an Ubuntu system tray application for displaying battery level and providing a system tray menu for launching Stretch tools or help resources.

To get up and running, please see the Installation and Updates section below.

Installation and Updates

Installation

To install stretch4_tray and configure it to automatically start up when you log in, run:

# Install the latest version from PyPI
pip install hello-robot-stretch4-tray

# Install the systemd user service so the tray starts at login
stretch_tray --install

# Start the system tray daemon immediately
stretch_tray --restart

Updating the Package & Menu Scripts

When a new version is released, you can easily upgrade both the software and your system tray menu scripts:

  1. Upgrade the Python package:

    pip install -U hello-robot-stretch4-tray
    
  2. Update your menu scripts: To fetch any newly added commands or tool scripts, run the factory reset command:

    stretch_tray --factory_reset
    

The easiest way to run stretch4_tray is as a linux systemd user service.

To install and start the service:

stretch_tray --install

Other available management commands:

  • stretch_tray --status: Check if the service is running and view recent logs
  • stretch_tray --restart: Restart the service
  • stretch_tray --uninstall: Stop and remove the service, and uninstall the Python package
  • stretch_tray --kill: Forcefully stop the service and any dangling processes

To view continuous logs:

journalctl --user -u stretch_tray.service -f

Configuration

On the first run, stretch_tray creates a user-editable configuration file at: $HELLO_FLEET_PATH/$HELLO_FLEET_ID/stretch_tray.yaml

By default, this is a copy of the built-in configuration. You can modify this file to add, remove, or change the tools that appear in the tray and the GUI.

If you want to reset your configuration to the default:

stretch_tray --factory_reset

Developing

To develop on this package:

sudo apt update
sudo apt install pkg-config libcairo-dev gir1.2-appindicator3-0.1 libgirepository-2.0-dev

git clone https://github.com/hello-robot/stretch4_tray
cd stretch4_tray

uv venv --system-site-packages --no-managed-python
uv pip install -e .

Edit scripts list

To edit the scripts list that shows up in both the system tray and the GUI, please do the following:

  1. Edit your user configuration file at $HELLO_FLEET_PATH/$HELLO_FLEET_ID/stretch_tray.yaml
  2. Add or modify commands to match the ScriptsConfig data model schema.
    • Please reference the docstrings in ScriptsConfig for details on each field.
  3. Restart the tray: stretch_tray --restart

Metadata

Release files for hello-robot-stretch4-tray 2026.10.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hello-robot-stretch4-tray 2026.10.20
File Size Uploaded Provenance Actions
hello_robot_stretch4_tray-2026.10.20.tar.gz 136.4 kB Without provenance Details for hello_robot_stretch4_tray-2026.10.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hello-robot-stretch4-tray 2026.10.20
File Interpreter ABI Platform Actions
hello_robot_stretch4_tray-2026.10.20-py3-none-any.whl Python 3 none any Details for hello_robot_stretch4_tray-2026.10.20-py3-none-any.whl

Total release size: 307.2 kB

Release files / hello_robot_stretch4_tray-2026.10.20.tar.gz

Download URL hello_robot_stretch4_tray-2026.10.20.tar.gz
Size 136.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b6a7367803eff921909ad9754dc3625fad4edb2e2f5edb0d0556f48266afad9c
BLAKE2b-256 checksum
How to use checksums
c5615c23ba8106b3e38a5b42f70c9aa830ab20c9f02f2686b14b71874a403997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hello_robot_stretch4_tray-2026.10.20-py3-none-any.whl

Download URL hello_robot_stretch4_tray-2026.10.20-py3-none-any.whl
Size 170.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
177927dd5e0ffbdb3c43083e2a5de0fc4c37fdd48fa13208f2e18dd9ab0fb642
BLAKE2b-256 checksum
How to use checksums
72daf1a4b836d6d776206d1d24f38a3f24b5c3d510c95d5a243903f8b4e80519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for hello-robot-stretch4-tray 2026.10.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page