This commit is contained in:
ckaczor
2024-11-22 01:17:32 +00:00
parent dc334c6e75
commit 730d65793d
24 changed files with 451 additions and 452 deletions

View File

@@ -5,11 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>System Temperature Status Window</title>
<meta name="description" content="Code, Critters, and whatever I feel like writing about.">
<link rel="alternate" href="/Blog/feed/feed.xml" type="application/atom+xml" title="Chris Kaczor">
<link rel="alternate" href="/feed/feed.xml" type="application/atom+xml" title="Chris Kaczor">
<link rel="apple-touch-icon" sizes="180x180" href="/Blog/img/apple-touch-icon.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="/Blog/img/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="/Blog/img/favicon-16x16.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png?v=2">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
@@ -507,22 +507,22 @@ img[width][height] {
<a href="#skip" class="visually-hidden">Skip to main content</a>
<header>
<a href="/Blog/" class="home-link">Chris Kaczor</a>
<a href="/" class="home-link">Chris Kaczor</a>
<nav>
<h2 class="visually-hidden" id="top-level-navigation-menu">Top level navigation menu</h2>
<ul class="nav">
<li class="nav-item">
<a href="/Blog/">
<a href="/">
Home
</a>
</li>
<li class="nav-item">
<a href="/Blog/tags/">
<a href="/tags/">
Tags
</a>
</li>
<li class="nav-item">
<a href="/Blog/about/">
<a href="/about/">
About
</a>
</li>
@@ -540,15 +540,15 @@ img[width][height] {
<time datetime="2018-03-19">19 March 2018</time>
</li>
<li>
<a href="/Blog/tags/code/" class="post-tag">Code</a>,
<a href="/tags/code/" class="post-tag">Code</a>,
</li>
<li>
<a href="/Blog/tags/floating-status-window/" class="post-tag">Floating Status Window</a>
<a href="/tags/floating-status-window/" class="post-tag">Floating Status Window</a>
</li>
</ul>
<p>Next up in the &quot;floating status window&quot; category is <a href="https://github.com/ckaczor/SystemTemperatureStatusWindow">SystemTemperatureStatusWindow</a>. This one does exactly what it says on the tin - it shows various system temperature values.</p>
<p><a href="/Blog/blog/system-temperature-status-window/images/SystemTemperatureStatusWindow.png"><picture><source type="image/avif" srcset="/Blog/img/LBCvSAQh1L-121.avif 121w"><source type="image/webp" srcset="/Blog/img/LBCvSAQh1L-121.webp 121w"><img loading="lazy" decoding="async" src="/Blog/img/LBCvSAQh1L-121.png" alt="" width="121" height="118"></picture></a></p>
<p><a href="/blog/system-temperature-status-window/images/SystemTemperatureStatusWindow.png"><picture><source type="image/avif" srcset="/img/LBCvSAQh1L-121.avif 121w"><source type="image/webp" srcset="/img/LBCvSAQh1L-121.webp 121w"><img loading="lazy" decoding="async" src="/img/LBCvSAQh1L-121.png" alt="" width="121" height="118"></picture></a></p>
<p>The sensor data is read using the <a href="http://openhardwaremonitor.org/">Open Hardware Monitor</a> library which is pretty straightforward - the one catch is that it requires running as an administrator and getting a UAC prompt each time the application starts got a bit annoying after a while.</p>
<p>I first tried to solve this by splitting the application into two parts - a Windows service that ran with administrator privileges to read the sensors and a normal application to handle the display. While this got past the annoying UAC prompts (after the service was installed) I found that Windows doesn't let you get GPU information from inside a Windows service.</p>
<p>After doing some more research I came across a workaround of using the Windows Task Scheduler to run the service as an administrator. I just turned the service into a regular application and set up the Task Scheduler to run it on system startup - problem solved.</p>
@@ -557,11 +557,11 @@ img[width][height] {
<ul class="links-nextprev">
<li class="links-nextprev-prev">← Previous<br>
<a href="/Blog/blog/cpu-usage-status-window/">CPU Usage Status Window</a>
<a href="/blog/cpu-usage-status-window/">CPU Usage Status Window</a>
</li>
<li class="links-nextprev-next">Next →<br>
<a href="/Blog/blog/work-indicator/">Work Indicator</a>
<a href="/blog/work-indicator/">Work Indicator</a>
</li>
</ul>
@@ -574,7 +574,7 @@ img[width][height] {
</p>
</footer>
<!-- This page `/Blog/blog/system-temperature-status-window/` was built on 2024-11-21T23:16:50.532Z -->
<script type="module" src="/Blog/dist/rJ3_G-2ArF.js"></script>
<!-- This page `/blog/system-temperature-status-window/` was built on 2024-11-22T01:17:28.245Z -->
<script type="module" src="/dist/rJ3_G-2ArF.js"></script>
</body>
</html>