XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Aug 21日 09:48

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: CPU temp
PostPosted: 2013年 May 16日 17:56 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4526
This code just not working....
Cov reports that if you have the "CoreTemp Demo" program installed in the pc then the temp shows up!
But Norton shows this .exe as malware and the code should work with Designer's code and without any tricks or additional software...
Please Tony fix this.

Thanks

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: CPU temp
PostPosted: 2013年 May 16日 18:31 
Offline
User avatar

Joined: 2013年 Mar 22日 03:49
Posts: 154
Yes, please Tony. This needs to be fixed as it's important.
Thank you!
Image


Top
 Profile  
 
 Post subject: Re: CPU temp
PostPosted: 2016年 Mar 15日 08:53 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 536
A reply to an old post but it may still be informative.

The Xwidget program cannot obtain temperatures from the o/s by itself as the temperatures are NOT provided by the o/s.

The devices that provide the temperature data are temperature sensors (thermo-couples) which are situated on the motherboard and on other devices such as discs &c. Each thermo-couple and its placement is unique to the device and therefore unknown to the o/s that unfortunately knows next to nothing about the motherboard unless it adheres to a standard that the o/s recognises. There is no such temperature provision standard that is fully implemented for Windows and its compatible cpus/motherboards. Every motherboard/device is potentially completely different from another.

Therefore, you must have a program whose job it is to extract the sensor information. It needs to know about hundreds if not thousands of motherboards, it must have the latest information on the newest motherboards. Code needs to be written to extract that information and it needs to be tested against hundreds of motherboards to avoid crashing/damaging the device you are probing.

Speedfan, coretemp and open hardware monitor are the main tools that people seem to use on Windows. Each maintains a list of compatible devices and if your m'board is on the list then the utility will/should be able to provide the temperature information.

What the Xwidget core does is to access this utility's API to extract that information and present it to the widgeteer in a usable fashion. In the case of Speedfan there is a shared memory area that provides the barest minimum of data. Speedfan provides the temperature data for a set number of sensors without naming or identifying the sensors properly. Therefore you don't know whether sensor 1 is the CPU core sensor or the ambient temperature sensor. This is why the information as presented by Xwidget is so vague (temp1, temp2, temp &c). This is not a limitation of the Xwidget engine but a major limitation on Speedfan's part which that utility's developer cannot be bothered to address despite being asked hundreds of times, link to tracker - http://www.bugtrack.almico.com/view.php?id=1568

The end result is that without using Speedfan or similar neither the Xwidget program nor any other utility can provide the temperature information without such a tool being installed and run independently.

Coretemp has been around for a while now and it has been suggested that it is a bit long in the tooth and not being actively developed so newer motherboards/devices may not be supported.

That leaves us with Open Hardware Monitor which is a much better tool and uses the Windows Management Instrumentation (WMI) layer to provide the information in a more structured way. We can just hope that Tony will write a new core for OHM that will allow widgets access to all the sensor information for all devices without having to write the WMI code in javascript to access the WMI data independently.


Top
 Profile  
 
 Post subject: Re: CPU temp
PostPosted: 2016年 Mar 15日 09:44 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 536
I have noticed that the Xwidget interface to coretemp only provides temperatures for three cores whereas coretemp provides data from all four cores as it should. I assume that %CPU1Temp is core zero?

%CPU1Temp
%CPU1Core1Temp
%CPU1Core2Temp
%CPU1Core3Temp

Jim, you know your stuff here, please tell me if this is what I am seeing is actually what is happening.


Top
 Profile  
 
 Post subject: Re: CPU temp
PostPosted: 2016年 Mar 15日 11:26 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4526
I never used this type of tag. As I told in my previous post, we need an external program installed so XWidget can read the data. It will be great of course if XWidget can handle this by itself. I can't tell you more..

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: CPU temp
PostPosted: 2016年 Apr 15日 08:42 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 536
Xwidget will never be able to handle this by itself. See my post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group