Skip to content

TARQkop/system-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

🌡️ CPU Temperature Monitor (Python)

A simple Python script for monitoring CPU temperature on Windows using the wmi library. The program reads temperature values in real time and displays the current values, maximum, and average temperature.


✨ Features

  • Reads CPU temperature from Windows sensors

  • Converts values from Kelvin to Celsius (°C)

  • Displays:

    • All available temperature readings
    • Maximum temperature (Max)
    • Average temperature (Avg)
  • Auto refresh every 2 seconds

  • Safe exit using Ctrl + C


🧰 Requirements

  • Operating System: Windows only
  • Python 3.8 or newer
  • wmi library

Install dependency

pip install wmi

⚠️ Important (Administrator Mode Required)

This script must be run as Administrator to access hardware temperature sensors.

How to run as Administrator:

  1. Right-click on Command Prompt or PowerShell
  2. Select Run as administrator
  3. Navigate to the script location and run it

▶️ How to Run

  1. Save the script as:

    cpu_temp_monitor.py
    
  2. Run the script:

    python cpu_temp_monitor.py
  3. CPU temperature will be displayed every 2 seconds

  4. Stop the program with:

    Ctrl + C
    

📌 Example Output

CPU Temperatures (°C): [45.2, 47.0] | Max: 47.0 | Avg: 46.1

⚠️ Notes

  • Some systems do not expose CPU temperature via WMI
  • Values may represent general thermal zones, not exact CPU core temperatures
  • Accuracy depends on motherboard and BIOS support

💡 Possible Improvements

  • Temperature warning when exceeding a threshold (e.g. 80°C)
  • Save readings to a CSV file
  • Plot temperature graphs 📊
  • Add a GUI interface
  • Integrate with OpenHardwareMonitor for more accurate data

📄 License

This project is open-source and intended for educational and monitoring purposes.


✨ Created for learning and system monitoring

About

Lightweight Windows CPU temperature monitor built with Python and WMI for real-time sensor tracking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages