This project monitors the CPU temperature of a Raspberry Pi 5 system and reports if the temperature exceeds a predefined threshold. It can help you ensure that your system is not overheating and automatically log or respond to temperature changes.
-
Clone or download the repository.
-
Ensure you have the necessary development tools (like
gcc
andmake
) installed. -
Build the project:
make all
-
After the build completes, the executable
rpi_hardware_monitor
will be generated insrc
folder.
To run the CPU temperature monitor, execute the following command:
src/rpi_hardware_monitor
This will start monitoring the CPU temperature. If the CPU temperature exceeds the defined threshold, an alert will be logged to the syslog.
make all
: Builds the program.make clean
: Cleans up object files and the compiled executable.
This project is open-source and available under the MIT License.
pfs