Skip to content

alberto-rota/ground-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

71 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ 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

About

Rich visualization and monitoring of system metrics in the terminal

Resources

License

Stars

Watchers

Forks

Contributors

Languages