Giter VIP home page Giter VIP logo

pi-cpu's Introduction

pi-cpu

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.

Features

  • 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.

Installation

Prerequisites

Make sure you have gcc installed on your Raspberry Pi. Install it with:

sudo apt-get install gcc

Building pi-cpu

Clone the repository and compile the utility using the provided Makefile:

git clone https://github.com/Coralesoft/pi-cpu.git
cd pi-cpu
make

Installing pi-cpu

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.

Usage

Run pi-cpu with the following options:

pi-cpu [options]

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.

Examples

  • 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
    

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request. For bugs and feature requests, please open an issue.

License

pi-cpu is released under the MIT License. See the LICENSE file for more details.

pi-cpu's People

Contributors

coraledev avatar coralesoft avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.