Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Getting CPU Temperature filter_list
Author
Message
Getting CPU Temperature #1
Okay well I'm completely stumped; I've been thinking about this for a while and all I can think of is using MSAcpi_ThermalZoneTemperature Class in the WMI, but my problem here is that not all CPU's support WMI Callbacks. Any ideas? Thanks.
[Image: OkXCq.gif]

Reply

RE: Getting CPU Temperature #2
I am also interested in getting my CPU(And GPU if possible) temperatures.
[Image: tumblr_m4vms28lYu1qj3ir1.gif]

Reply

RE: Getting CPU Temperature #3
Well, I have a GPU Meter for my graphics card that came with it. A long with fan speed and other stuff if you ahve GeForce or Nivida graphics card it will work. Smile
[Image: xlbdwZT.png]

Reply

RE: Getting CPU Temperature #4
I think we both know that, we just want to know how to do it in .NET Smile
[Image: tumblr_m4vms28lYu1qj3ir1.gif]

Reply

RE: Getting CPU Temperature #5
(07-13-2013, 12:00 PM)Eternity Wrote: I think we both know that, we just want to know how to do it in .NET Smile

I'll throw one together real quick pretty easy to make. I'll post it for you guys! Biggrin
[Image: xlbdwZT.png]

Reply

RE: Getting CPU Temperature #6
(07-13-2013, 12:03 PM)Blue Wrote:
(07-13-2013, 12:00 PM)Eternity Wrote: I think we both know that, we just want to know how to do it in .NET Smile

I'll throw one together real quick pretty easy to make. I'll post it for you guys! Biggrin

It's alright I already coded one, its just that not everyone's PC supports callbacks from WMI
[Image: OkXCq.gif]

Reply

RE: Getting CPU Temperature #7
(07-13-2013, 12:07 PM)Hexology Wrote:
(07-13-2013, 12:03 PM)Blue Wrote:
(07-13-2013, 12:00 PM)Eternity Wrote: I think we both know that, we just want to know how to do it in .NET Smile

I'll throw one together real quick pretty easy to make. I'll post it for you guys! Biggrin

It's alright I already coded one, its just that not everyone's PC supports callbacks from WMI

Oh okay. Well yeah.
[Image: xlbdwZT.png]

Reply

RE: Getting CPU Temperature #8
Here's what I mean Blue,
[Image: nK3VXuV.gif]
[Image: OkXCq.gif]

Reply

RE: Getting CPU Temperature #9
(07-13-2013, 12:20 PM)Hexology Wrote: Here's what I mean Blue,
[Image: nK3VXuV.gif]

Oh yeah I understand now. Smile
[Image: xlbdwZT.png]

Reply

RE: Getting CPU Temperature #10
You can do it using WMI.
Parse this code into your application, and make sure you've set a reference to System.Management.

PHP Code:
Imports System.Management

Public Class Form1

    
Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
        
Try
            
Dim searcher As New ManagementObjectSearcher("root\WMI""SELECT * FROM MSAcpi_ThermalZoneTemperature")
            For 
Each queryObj As ManagementObject In searcher.Get()
                
Dim temp As Double CDbl(queryObj("CurrentTemperature"))
                
temp = (temp 2732) / 10.0
                MessageBox
.Show(temp.ToString "°C")
            
Next
        
Catch err As ManagementException
            MessageBox
.Show("An error occurred while querying for WMI data: " err.Message)
        
End Try
    
End Sub
End 
Class 

Then start it as administrator and it will look like this:

[Image: 3qmh7dfz.png]

Reply







Users browsing this thread: 1 Guest(s)