pi-cpu is a command-line utility for Raspberry Pi that provides real-time information about the device's board model, CPU frequency, and temperature. It offers both Celsius and Fahrenheit outputs for temperature monitoring.
- Board Model: Displays the model of the Raspberry Pi.
- CPU Frequency: Shows current, minimum, and maximum CPU frequencies.
- Temperature Monitoring: Monitors and displays CPU temperature in Celsius or Fahrenheit.
Make sure you have gcc installed on your Raspberry Pi. Install it with:
sudo apt-get install gcc
Clone the repository and compile the utility using the provided Makefile:
git clone https://github.com/Coralesoft/pi-cpu.git
cd pi-cpu
make
Install pi-cpu to your system with:
make install
This command copies the executable to /usr/local/bin, allowing it to be run from anywhere on the system.
Run pi-cpu with the following options:
pi-cpu [options]
-v: Verbose mode, shows detailed information.-V: Displays version information.-f: Outputs the temperature in Fahrenheit.-t: Displays the current CPU temperature.-m: Shows the current CPU MHz.-h: Displays help information.
- Show all information in verbose mode:
./pi-cpu -v - Display the CPU temperature in Fahrenheit:
./pi-cpu -f - Show the current CPU frequency:
./pi-cpu -m
Contributions are welcome! Fork the repository, make your changes, and submit a pull request. For bugs and feature requests, please open an issue.
pi-cpu is released under the MIT License. See the LICENSE file for more details.