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.
- Host: GitHub
- URL: https://github.com/bastien2203/pi-stats
- Owner: Bastien2203
- Created: 2025-02-24T15:39:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T09:38:35.000Z (over 1 year ago)
- Last Synced: 2025-02-27T13:26:05.109Z (over 1 year ago)
- Topics: raspberry-pi, shell
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

## 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!