Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
/ temp-guard Public archive

Browser-based CPU temperature chart (abandoned - see readme)

Notifications You must be signed in to change notification settings

timothy-holmes/temp-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project on hold.

I discovered I'm unable to use wmi and flask simulataneously due to mutlithreading conflicts. At least, that's what I think. Multithreading isn't in my wheelhouse just yet (it's on the list - I believe concurrency is the future of computing).

Skills and experience were gained in writing unit tests and semi-integrated testing inlcuding component mocking, and I had fun playing software developer with Brendan, handling merge requests, issue assignments etc. I'll find a pre-existing solution if I need a temperature monitor this summer. I'll leave this here for the time being.

TempWatch

Super simple monitoring of PC (Windows) CPU temperature

Lightweight localhost server (Flask) to listens for requests from front-end and returns CPU temperature.

Front-end consists of a basic line plotting (Chart.JS) of received data.

Reason for creating:

  • Admin rights are required for temp monitoring and my laptop kept overheating during summer ❌
  • Small app to learn about unit testing/mocking/integration testing ✔️

How to use

  1. Clone repo to somewhere... If using admins rights is a security risk, save in a folder and lock changes.
  2. Change into the temp-guard directory (cd temp-guard)
  3. Install dependencies: pip install -r requirements.txt
  4. Run (Python 3.x) python app/__init__.py with admin rights
    • Use Task Scheduler to save admin credentials for future runs
    • Use pythonw.exe rather than python.exe to suppress the console window
  5. Open browser at URL http://127.0.0.1:4999 and watch the plot populate with CPU temps

TODO

  • Do integration test (aka run the app with WMI access) ❌ Tests failed
  • Investigate WMI options (or adopt OpenHardwareMonitor DLLs) to access temps of other parts of CPU ❌ Not able to integrate without .NET
    • Include temps from more sensors (eg. individual cores, motherboard, GPU)

About

Browser-based CPU temperature chart (abandoned - see readme)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published