Jose
(Seasoned Scripter)
2004-10-15 08:04 PM
Temperature

Hi guys!!
I am playing with KiXomatic but I cannot find any information about the temperature, ¿has anybody seen it thought WMI?

Thanks.


LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:09 PM
Re: Temperature

did not check yet, but it must be perf-class...

LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:10 PM
Re: Temperature

more precisely, what temp you want?
chassis or CPU?


LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:10 PM
Re: Temperature

k, direct answer. there is temperature class:
Win32_TemperatureProbe


LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:11 PM
Re: Temperature

oh, and kixomatic should be fixed to support wkix32.

ShawnAdministrator
(KiX Supporter)
2004-10-15 08:22 PM
Re: Temperature

Wonder what kind of other "probes" there are.

LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:24 PM
Re: Temperature

returns nothing on my laptop though...


Jose
(Seasoned Scripter)
2004-10-15 08:28 PM
Re: Temperature

Thanks very much for your answer Jooel. U the man!!

It is weird casue in most cases I run KiXomatic result and works fine, in some others dont see any result like Win32_TemperatureProbe.

Does this happends to you too?
I am running XP pro SP1.


LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:30 PM
Re: Temperature

but what is this:
Win32_Property

it brings [censored] on my face like -*-


LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:32 PM
Re: Temperature

btw, for wkix32.exe compatibility, runscript would need to be like this:
Code:

Function RunScript()
$objFSO = CreateObject("Scripting.FileSystemObject")
$strTmpName = "%temp%\kixomatic_temp_script.kix"
$objScript = $objFSO.CreateTextFile($strTmpName)
$objScript.Write ($TextBox.Text+" get $")
$objScript.Close
$objShell = CreateObject("WScript.Shell")
$strCmdLine = "wkix32.exe "
$strCmdLine = $strCmdLine + '"' + $strTmpName + '"'
$nul = $objShell.Run($strCmdLine)
EndFunction



LonkeroAdministrator
(KiX Master Guru)
2004-10-15 08:39 PM
Re: Temperature

lol.
motherboard has been translated as "mother-card"...
MS has it's ways to stupid land almost as wide as IBM.


Les
(KiX Master)
2004-10-15 10:04 PM
Re: Temperature

Hehee
The PC (Politically Correct) Police are having a field day with terminology like Mother / Daughter and Master / Slave etc. Where will it end?


Sealeopard
(KiX Master)
2004-10-16 02:03 AM
Re: Temperature

Parent-child relationships should also not be PC. There are normally two parents to a child

ShawnAdministrator
(KiX Supporter)
2004-10-16 03:35 AM
Re: Temperature

Two parents per child ? generally true except in Jooel's case - he's a basta child :0(, and I'm his farsha.

Sealeopard
(KiX Master)
2004-10-16 02:59 PM
Re: Temperature

So, does that now make the Shawn-Jooel connection a Grand-Parent-Child relationship? ;-)

LonkeroAdministrator
(KiX Master Guru)
2004-10-16 03:32 PM
Re: Temperature

hmm...
iirc, it had something to do with some green plasma...


Jose
(Seasoned Scripter)
2004-10-23 12:40 AM
Re: Temperature

Does anyone see this as result? Cause I cannot.
Code:

Break On
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\" + $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_TemperatureProbe",,48)
For Each $objItem In $colItems
"Accuracy: " + $objItem.Accuracy ?
"Availability: " + $objItem.Availability ?
"Caption: " + $objItem.Caption ?
"ConfigManagerErrorCode: " + $objItem.ConfigManagerErrorCode ?
"ConfigManagerUserConfig: " + $objItem.ConfigManagerUserConfig ?
"CreationClassName: " + $objItem.CreationClassName ?
"CurrentReading: " + $objItem.CurrentReading ?
"Description: " + $objItem.Description ?
"DeviceID: " + $objItem.DeviceID ?
"ErrorCleared: " + $objItem.ErrorCleared ?
"ErrorDescription: " + $objItem.ErrorDescription ?
"InstallDate: " + $objItem.InstallDate ?
"IsLinear: " + $objItem.IsLinear ?
"LastErrorCode: " + $objItem.LastErrorCode ?
"LowerThresholdCritical: " + $objItem.LowerThresholdCritical ?
"LowerThresholdFatal: " + $objItem.LowerThresholdFatal ?
"LowerThresholdNonCritical: " + $objItem.LowerThresholdNonCritical ?
"MaxReadable: " + $objItem.MaxReadable ?
"MinReadable: " + $objItem.MinReadable ?
"Name: " + $objItem.Name ?
"NominalReading: " + $objItem.NominalReading ?
"NormalMax: " + $objItem.NormalMax ?
"NormalMin: " + $objItem.NormalMin ?
"PNPDeviceID: " + $objItem.PNPDeviceID ?
"PowerManagementCapabilities: " + $objItem.PowerManagementCapabilities ?
"PowerManagementSupported: " + $objItem.PowerManagementSupported ?
"Resolution: " + $objItem.Resolution ?
"Status: " + $objItem.Status ?
"StatusInfo: " + $objItem.StatusInfo ?
"SystemCreationClassName: " + $objItem.SystemCreationClassName ?
"SystemName: " + $objItem.SystemName ?
"Tolerance: " + $objItem.Tolerance ?
"UpperThresholdCritical: " + $objItem.UpperThresholdCritical ?
"UpperThresholdFatal: " + $objItem.UpperThresholdFatal ?
"UpperThresholdNonCritical: " + $objItem.UpperThresholdNonCritical ?
?
Next
? 'Press Any Key to close the window'
Get $



BTW Jooel, nice detail the get$.


AllenAdministrator
(KiX Supporter)
2004-10-23 01:35 AM
Re: Temperature

I just ran it on XP SP2, with no results.

AllenAdministrator
(KiX Supporter)
2004-10-23 01:52 AM
Re: Temperature

Just googling and it appears that this is a very common problem, with no simple solution...

http://www.adminlife.com/247reference/msgs/21/106521.aspx
http://www.dotnet247.com/247reference/msgs/55/279739.aspx
http://www.experts-exchange.com/Hardware/Microchips/Q_20703955.html


Jose
(Seasoned Scripter)
2004-10-25 08:52 PM
Re: Temperature

Thanks for the test Al, pitty thought cause aint no minor variable.
It could be nice to have it in future Kixtart version as macro.