Hack Forums
[.NET] Temp Monitor - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Temp Monitor (/showthread.php?tid=4448432)



Temp Monitor - [ MVP ] MalRoto - Sep 15, 2014

I was planning on making a program like Speccy but I got bored and side tracked.

Simple program that monitors your CPU temp (if supported) and alerts you if the temp (in celsius) is warmer than the limit you made.

https://www.sendspace.com/file/rscz4i

[Image: 334a33cc2d854a3df581792fcafd9995.png]


* - $lick - Sep 15, 2014

Please post screenshots if you can.

Here is a scan of the rar file (Click to View)


* - [ MVP ] MalRoto - Sep 15, 2014

[Image: 334a33cc2d854a3df581792fcafd9995.png]


* - $lick - Sep 15, 2014

(Sep 15, 2014 01:22 PM)MalRoto Wrote:  [Image: 334a33cc2d854a3df581792fcafd9995.png]

You should really just paste source if the project is as small as this.

PHP Code

<?php 
Imports System
Imports System
.Management

    
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
            Label2
.Text = (temp.ToString)
      
Next
      
Catch ex As ManagementException
      MessageBox
.Show(ex.Message)
      
End Try 



* - [ MVP ] MalRoto - Sep 15, 2014

(Sep 15, 2014 01:28 PM)๖ۣۜLazy™ Wrote:  You should really just paste source if the project is as small as this.

PHP Code

<?php 
Imports System
Imports System
.Management

    
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
      Label2
.Text = (temp.ToString)
      
Next
      
Catch ex As ManagementException
      MessageBox
.Show(ex.Message)
      
End Try 

I'll remember it for next time. Thanks


* - $lick - Sep 15, 2014

(Sep 15, 2014 01:37 PM)MalRoto Wrote:  I'll remember it for next time. Thanks

Also I found two other places with the same exact code.

Did you just copy/paste this?

http://forum.arduino.cc/index.php/topic,257930.0.html
http://www.windows-tech.info/7/4d6479e10d41ae4f.php#wrap
http://social.microsoft.com/Forums/en-US/18ce0701-e87d-4414-a8b5-8be3908a21b8/reading-cpu-temperature-wmi?forum=vblanguage
http://stackoverflow.com/questions/24963295/how-can-i-get-the-hardwares-temperatures-using-vb-net

And a ton more.


* - [ MVP ] MalRoto - Sep 15, 2014

(Sep 15, 2014 01:42 PM)๖ۣۜLazy™ Wrote:  Also I found two other places with the same exact code.

Did you just copy/paste this?

http://forum.arduino.cc/index.php/topic,257930.0.html
http://www.windows-tech.info/7/4d6479e10d41ae4f.php#wrap
http://social.microsoft.com/Forums/en-US/18ce0701-e87d-4414-a8b5-8be3908a21b8/reading-cpu-temperature-wmi?forum=vblanguage
http://stackoverflow.com/questions/24963295/how-can-i-get-the-hardwares-temperatures-using-vb-net

And a ton more.

I never said I coded it, I stated I was planning on making a clone of Speccy but lost interest. It is meant to just be a module/plugin for a project someone may work on.


* - Gasp - Sep 15, 2014

So its basically copy and pasted? I'm sure if someone needed this they could have found a source elsewhere.


* - PapaBeans - Sep 15, 2014

(Sep 15, 2014 02:13 PM)Gasp Wrote:  So its basically copy and pasted? I'm sure if someone needed this they could have found a source elsewhere.

Does it matter? He released it here. Since he didn't claim it to be his, I don't see the issue.


* - tweety - Sep 15, 2014

(Sep 15, 2014 03:57 PM)PapaBeans Wrote:  Does it matter? He released it here. Since he didn't claim it to be his, I don't see the issue.

Yes it does matter. Why do we want a release of something we already seen hundreds of times? We don't need junk posting. We have enough of that.


* - PapaBeans - Sep 16, 2014

(Sep 15, 2014 08:28 PM)Tweety. Wrote:  Yes it does matter. Why do we want a release of something we already seen hundreds of times? We don't need junk posting. We have enough of that.

The search function doesn't work for me, but when I use Google I see one release for a temperature monitor on hackforums. I don't see hundreds


* - $lick - Sep 16, 2014

(Sep 16, 2014 03:49 AM)PapaBeans Wrote:  The search function doesn't work for me, but when I use Google I see one release for a temperature monitor. I don't see hundreds

You must be really bad at google then.

I find 100s of results.


* - PapaBeans - Sep 16, 2014

(Sep 16, 2014 03:49 AM)๖ۣۜLazy™ Wrote:  You must be really bad at google then.

I find 100s of results.

Can you post a few from HF? If so this shouldn't be here, but my post says from hackforums


* - $lick - Sep 16, 2014

(Sep 16, 2014 03:52 AM)PapaBeans Wrote:  Can you post a few from HF? If so this shouldn't be here, but my post says from hackforums

Your post says from google.

https://hackforums.net/showthread.php?tid=693968&pid=6599218#pid6599218
https://hackforums.net/showthread.php?tid=3713040
https://hackforums.net/showthread.php?tid=3314064&pid=31109871#pid31109871