# Windows CPU Temp

**URL:** <https://forum.inductiveautomation.com/t/windows-cpu-temp/26114>\
**Category:** Ignition\
**Created:** [June 26, 2019, 6:24pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114 "2019-06-26T18:24:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [June 26, 2019, 6:24pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/1 "2019-06-26T18:24:50Z")

</div>

Anyone have any luck getting the CPU temp from a Windows computer in to their Ignition application? I’ve found this [article](https://stackoverflow.com/questions/39738494/get-cpu-temperature-in-cmd-power-shell) but it returns the same temperature value every time.

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [June 26, 2019, 8:32pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/2 "2019-06-26T20:32:39Z")

</div>

There is a very similar post:

> [@Battery percentage display](http://forum.inductiveautomation.com/t/battery-percentage-display/25993):
>
> Is there a way to retrieve and display the percentage of the mobile device that is being used. I am attempting to display this percentage in a window, advice on this would be helpful. Thanks

which addresses another Ignition user looking for similar information. The issue that I explain with an illustration is that the firmware at the BIOS level varies from physical machine to physical machine. While some higher-level calls can make use of other machines 'hooks', you results will vary. So there is no one good way to get that information from multiple devices unless they are exactly the same in terms of maker basic-input-output-systems (BIOS). The Ignition moderator leaves a great link to a site where this sort of thing is commonly explored. So for selected machines, see that battery status post I list above. I only bring the news- some other folks created it when they sought to avoid patent or copyright infringement.

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [June 26, 2019, 8:42pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/3 "2019-06-26T20:42:27Z")

</div>

[https://ideas.inductiveautomation.com/ignition-features-and-ideas](https://ideas.inductiveautomation.com/ignition-features-and-ideas) or maybe form a special-interest group with others. Lastly, many remote-control software programs can be automated to perform such a task on a Windows PC- just one problem- there are so many flavors of Windows and so many different machines- this is controlled by the makers of the machines who often ‘adapt’ Windows for their diagnostics.

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [June 26, 2019, 8:56pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/4 "2019-06-26T20:56:12Z")

</div>

thanks for the help!

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [June 28, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/5 "2019-06-28T21:35:37Z")

</div>

> [@Battery percentage display](https://forum.inductiveautomation.com/t/battery-percentage-display/25993/8):
>
> I’ve put this inside actionPerformed event of the Timer component (15seconds) in Vision (not Perspective):
> 
> ```auto
> def bateryremaining():
> import subprocess
> proc = subprocess.Popen('powershell.exe -noprofile -command "(Get-WmiObject win32_battery).estimatedChargeRemaining"', stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
> tmp = proc.stdout.read()
> print "estimatedChargeRemaining: ", tmp
> system.tag.write("[Client]bateryRemaining", tmp)
> system.util.invokeAsynchronous(bateryremaining)
> 
> ```
> 
> Running client on Windows 10 Pro tablet  
> and it is working (Ignition v7.9.11)…

This information from Mr. ZX.... may help, yet you would need to modify it for the other parameter you seek ( It is not CPU Temp- Go to the other thread and note the Blue Browse left by the moderator for a great starting point URL ).

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [June 28, 2019, 9:37pm UTC](https://forum.inductiveautomation.com/t/windows-cpu-temp/26114/6 "2019-06-28T21:37:25Z")

</div>

Thanks! I’ll give this a shot and report what I find out.
