# CPU Temperature on Windows

**URL:** <https://discourse.nodered.org/t/cpu-temperature-on-windows/88115>\
**Category:** General\
**Created:** [20 May 2024 08:07 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115 "2024-05-20T08:07:20Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 May 2024 21:04 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/21 "2024-05-20T21:04:44Z")

</div>

> [@TotallyInformation](#):
>
> > [@jbudd](#):
> >
> > I have defined tasks over and over on this PC but after a reboot I see no sign of them, nor evidence of them having run.
> 
> Strange, is it a managed work PC?

Nope it is a home W11 laptop on the very brink of being wiped in favour of Linux.  
A statement I have made many times over the years yet somehow never had a happy experience with. But Mint seems to know how to drive screen, sound, wifi and touchpad this time round.

hwinfo on my PC gives me this  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/796a06c483cdceae841730023c32ddc3552f6403.png)

All useful info but not amenable to sending over MQTT from the other side of the world.

A little background: There is a 2 year old PC which I had built to replace one that was prone to sudden shutdowns. Now this one does the same.  
There is nothing in Event Viewer to give any clue, except "Unexpected loss of power" which I think is when the plug is pulled and reinserted to force a restart.  
The owner is terminally technophobic and cannot explain the visible LEDs, never mind verify that it's really dead.

So the plan is continuous monitoring over MQTT to see if I can see any patterns.  
I'd like to monitor the temperature because I suspect the instability might be down to the builder not using enough thermal paste. But simpler system metrics will probably suffice.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 May 2024 21:40 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/22 "2024-05-20T21:40:53Z")

</div>

If they've been yanking the power cord, you will need to do some checks. From my notebook:

From admin command prompt

```auto
SFC /scannow

```

Will need to reboot after.

```auto
DISM.exe /Online /Cleanup-Image /Restorehealth

```

Don't run `chkdsk /f` on the C: drive directly. Instead:

- Settings \> Recovery
- Advanced Start up
- Command Line
- chkdsk /f c:
- Reboot as needed

I recommend getting Teamviewer set up so you can do remote support.

---

<div class="post-metadata">

**Author:** ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)\
**Post date:** [21 May 2024 03:56 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/23 "2024-05-21T03:56:36Z")

</div>

To throw another option into the mix, [SystemBridge](https://system-bridge.timmo.dev/) extracts CPU temps (plus more) and it has a fairly simple (but scantily documented) API that NR could use.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [21 May 2024 07:14 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/24 "2024-05-21T07:14:59Z")

</div>

And another one: I'm using [Telegraf](https://www.influxdata.com/time-series-platform/telegraf/) to monitor most of my systems, both Linux and Windows. You don't have to necessarily use it with InfluxDB, you can simply use the MQTT output and process the data as you want.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [21 May 2024 07:31 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/25 "2024-05-21T07:31:56Z")

</div>

Looking at those options too, thanks.

Sadly my antivirus does not like the systembridge installer.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 May 2024 08:14 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/26 "2024-05-21T08:14:23Z")

</div>

> [@kuema](#):
>
> I'm using [Telegraf](https://www.influxdata.com/time-series-platform/telegraf/) to monitor most of my systems, both Linux and Windows

I was going to mention Telegraf but I wasn't sure what it could pick up on Windows. One of the advantages of that is that you can dump everything to MQTT (for current data) as well as to InfluxDB (for history). I don't bother to run it on my Windows desktop right now but I have done. I do run it on my Linux server and it captures all manner of stuff, not just the PC data but it monitors my WAN connections, DNS performance and more.

It seems fairly light on resources too. I used to run it along side Node-RED, Mosquitto, InfluxDB on my Pi3.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [21 May 2024 08:22 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/27 "2024-05-21T08:22:01Z")

</div>

Some features are (or were) available on Linux only, but Telegraf has improved there. For some metrics, you need to use WMI.

If you run libre/open-hardwaremonitor you can get even more data via WMI. Apart from the sensor data, I use that technique to get metrics from my Nvidia GPU.

BTW: I adapted the "external output plugin" for Telegraf to get it working with LibreHardwareMonitor: [GitHub - kuema/open\_hardware\_monitor-telegraf-plugin: Open Hardware Monitor plugin for Telegraf](https://github.com/kuema/open_hardware_monitor-telegraf-plugin)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 August 2024 08:22 UTC](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115/28 "2024-08-19T08:22:18Z")

</div>

Closed on 19 August 2024 08:22 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/cpu-temperature-on-windows/88115.md?page=1)
