Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 800 Bytes

File metadata and controls

31 lines (21 loc) · 800 Bytes

CPU Temperature

This python script is used to get cpu temperature

  • psutil (process and system utilities) is a cross-platform library.
  • It is used for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python.

Explanation of the script

  • Using psutil library's inbuilt function "sensors_temperatures()" to measure temperature of CPU

Setup instructions

  • Clone the repo to your machine
  • Head over to the required folder (Cpu Temperature folder)
  • Install psutil using
pip install psutil
  • Run the script
python temp.py

Output

Disclaimer

This does not work on a windows machine