An open API service indexing awesome lists of open source software.

https://github.com/bastien2203/pi-stats

A simple script to display system stats for your Raspberry Pi, including CPU temperature, memory usage, disk usage, CPU load, and power status.
https://github.com/bastien2203/pi-stats

raspberry-pi shell

Last synced: 2 months ago
JSON representation

A simple script to display system stats for your Raspberry Pi, including CPU temperature, memory usage, disk usage, CPU load, and power status.

Awesome Lists containing this project

README

          

# pi-stats
A simple script to display system stats for your Raspberry Pi, including CPU temperature, memory usage, disk usage, CPU load, and power status.

Capture d’écran 2025-02-27 à 10 34 29

## Installation

1. Clone or download the script:
```sh
curl -o ~/.metrics.sh https://raw.githubusercontent.com/Bastien2203/pi-stats/refs/heads/main/.metrics.sh
```

1. Make it executable:
```sh
chmod +x ~/.metrics.sh
```

## Usage

To display system metrics, run:
```sh
~/.metrics.sh
```

## Auto-run on Terminal Start

To automatically show the metrics when opening a new terminal:

- **For Bash:**
```sh
echo 'source ~/.metrics.sh' >> ~/.bashrc
```

- **For Zsh:**
```sh
echo 'source ~/.metrics.sh' >> ~/.zshrc
```

Then, restart your terminal or run `source ~/.bashrc` (or `source ~/.zshrc`).

---------------

> 💡 Feedback and suggestions are always welcome!