Skip to main content

A Python Textual app for monitoring hardware in the terminal

Project description

🚀 Ground Control - The Ultimate Terminal System Monitor

Ground Control Banner

PyPI version License: GPL v3 Python 3.6+

Ground Control is a sleek, real-time terminal-based system monitor built with Textual, Plotext and the nvitop API. It provides a powerful, aesthetic, customizable interface for tracking CPU, memory, disk, network, GPU usage, and system temperatures — all in a visually appealing and responsive TUI.

Ground Control works optimally with TMUX, install it here!

We tested Ground Control with the Windows Terminal app, Tabby and the VSCode integrated terminal. Monospaced fonts are preferred.

🌟 Features

📊 Real-Time System Monitoring

  • CPU Usage: Per-core load tracking with frequency stats and detailed performance metrics.
  • Memory Utilization: RAM usage with dynamic visualization and memory statistics.
  • Temperature Monitoring: Real-time system temperature tracking with thermal status indicators.
  • Disk I/O: Monitor read/write speeds and disk usage with comprehensive storage metrics.
  • Network Traffic: Live upload/download speeds with bandwidth utilization graphs.
  • GPU Metrics: Real-time NVIDIA GPU monitoring with utilization and memory tracking (if available).

🖥️ Responsive Layout

  • Automatic resizing to fit your terminal window.
  • Multiple layouts: Grid, Horizontal, and Vertical.
  • Customizable widgets: Show only the metrics you need with granular control.

🎛️ Interactive Controls

  • Keyboard shortcuts for quick navigation.
  • Toggle between different layouts instantly.
  • Customize displayed metrics via a built-in selection panel with individual widget control.

🛠️ Installation

🔹 Install via PyPI

pip install ground-control-tui

🔹 Install from Source

git clone https://github.com/alberto-rota/ground-control
cd ground-control
pip install -e .

🚀 Getting Started

🔹 Run Ground Control

Once installed, simply launch Ground Control with:

groundcontrol

or

gc

🔹 Available Layouts

Grid Layout

A structured layout displaying all widgets neatly in a grid. When you first launch Ground Control, it will show this layout. Grid Layout

Horizontal Layout

All widgets aligned in a single row. If you like working with wide shell spaces, split a TMUX session horizontally and use this layout! Horizontal Layout

Vertical Layout

A column-based layout, ideal for narrow shell spaces. If you like working with tall shell spaces, split a TMUX session verticall and use this layout! Vertical Layout

🖥️ Widget Breakdown

Each panel in Ground Control represents a different system metric:

🔹 CPU Usage

  • Shows per-core CPU usage as horizontal bars (0-100%)
  • Displays each core's utilization in a compact bar chart format
  • Updates in real-time with color-coded bars showing load intensity
CPU_widget

🔹 Memory Utilization

  • Dual plot showing RAM (positive axis) and SWAP (negative axis) usage in GB
  • Center bar with color-coded sections showing used/free RAM and SWAP
  • Title displays total RAM and SWAP capacity in GB
RAM_widget

🔹 Temperature Monitoring

  • Multi-line plot tracking temperature over time in °C for up to 4 key sensors
  • Color-coded warning thresholds at 60°C (orange) and 80°C (red)
  • Right panel shows current temperatures with dynamic color bars based on heat levels
  • Prioritizes CPU, GPU, and motherboard sensors
Temperature_widget

🔹 Disk I/O

  • Dual plot showing read (positive axis) and write (negative axis) speeds for each mounted disk/partition
  • Shows disk usage with color-coded bar for used/free space in GB
  • Updates in real-time with throughput history
  • Each mounted disk/partition gets its own widget (except boot/EFI partitions)
  • Automatically detects and displays all mounted disks and partitions
Disk_widget

🔹 Network Traffic

  • Dual plot showing upload (positive axis) and download (negative axis) speeds
  • Shows current transfer rates with color-coded indicators
  • Tracks cumulative data transfer amounts
Network_widget

🔹 GPU Metrics (NVIDIA Only)

  • Dual plot showing GPU usage % (positive axis) and memory usage GB (negative axis)
  • Center bar displays current GPU memory usage (GB) and utilization (%)
  • Shows "Usage UNAV" when GPU utilization cannot be detected
GPU_widget

🛠️ Configuring Ground Control

Ground Control offers extensive customization options to tailor your monitoring experience. You might not want to see all the widgets all at once, or you may want to focus on specific system metrics.

🔹 Widget Selection Panel

The configuration panel can be accessed by pressing c or clicking the Configure button. This opens a panel that allows you to:

  • Toggle widgets: Enable/disable individual widgets (CPU, Memory, Temperature, Disk, Network, GPU) by clicking their checkboxes
  • Refresh rate: Choose update intervals from 500ms to 1 minute using the refresh rate buttons
  • History size: Set the data history length from 30 seconds to 10 minutes using the history buttons
  • Save preferences: All settings are automatically saved to ~/.config/ground-control/config.json

The config file stores:

  • Widget visibility settings for each widget
  • Current layout (grid/horizontal/vertical)
  • Refresh rate in seconds
  • History size in seconds

🔹 Layout Management

You can switch between different layouts instantly:

  • Press g or click Grid Layout for the structured grid view
  • Press h or click Horizontal Layout for single-row alignment
  • Press v or click Vertical Layout for column-based display

Config_widget

🔹 Persistent Configuration

All your customizations are automatically saved when you quit Ground Control. When you launch it again, you'll see the same layout and widget configuration you previously selected, ensuring a consistent monitoring experience.

🔹 Keyboard Shortcuts

All available keyboard shortcuts are listed here:

Key Action
h Switch to Horizontal Layout
v Switch to Vertical Layout
g Switch to Grid Layout
c Show/Hide the configuration panel
q Quit Ground Control

Ground Control saves user preferences in a configuration file located at: ~/.config/ground-control/config.json. Modify this file in your default text editor with

groundcontrol config

or

gc config

⛔ Current Known Limitations/Bugs

  • In heavy-duty HPC systems, with multiple disks, cores and GPUs to be monitored, metric collection and plotting might get bottlenecked and groundcontrol might run slow. Consider directly editing the config file with a text editor to avoid
  • GPU usage is monitored only for CUDA-enabled hardware. Ground Control detects MiG devices but in some cases it cannot detect their utilization. You'll see Usage UNAV in the GPU Widget if this is the case
  • Temperature monitoring availability depends on system sensors and may not be available on all platforms

👨‍💻 Contributing

Pull requests and contributions are welcome! To contribute:

  1. Fork the repo.
  2. Create a feature branch.
  3. Submit a PR with your changes.

Visit the Issue Section to start!

📜 License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

📧 Author

Alberto Rota
📩 Email: alberto_rota@outlook.com
🐙 GitHub: @alberto-rota

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

ground_control_tui-1.2.3.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ground_control_tui-1.2.3-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

Details for the file ground_control_tui-1.2.3.tar.gz.

File metadata

  • Download URL: ground_control_tui-1.2.3.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for ground_control_tui-1.2.3.tar.gz
Algorithm Hash digest
SHA256 c0b629c501c98ab9704a8dcf4c2d5f197b52fbe236671a550042f7941f4cd70b
MD5 b6c6c482912fcbd211aeeffc4c676bcd
BLAKE2b-256 dbe2adf6e90540d4ad533c807ca22d37c190c0fdc9dc8bcbddaeac3391426eed

See more details on using hashes here.

File details

Details for the file ground_control_tui-1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ground_control_tui-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 534cd3337ffde7854d01b5b8e472404674cb3c0cf4b9e81ddc6a59988b5ef477
MD5 6ee3877fe06639c6b65efd1683131972
BLAKE2b-256 11619a74c7516fa1165b1c5a2cdb023848e64bfae837e48e894d83c2b198c40a

See more details on using hashes here.

Supported by

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