CPU Temp

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
Score 80.6%

lionhater

6 years ago

Finally a sensible usable temp widget.

Just one blemish. It reads: 52.000. How can I get rid of the ".000" part? It unnecessarily waste space, more so in my vertical panel forcing me to enlarge.

If you can add CPU and memory usage as well in the same way and give an option to align them verticall for vertical panels, I'll go find and kiss you (on the cheek, that is)!

Report

lionhater

6 years ago

Solved it by some googling; for other noobs like me:

Open the cputemp.py file inside this folder:
/home/YOUR_USERNAME/.kde/share/apps/plasma/plasmoids/cputemp/contents/code/

Then change the line

sensor = commands.getoutput("sensors -u | grep temp1")

to

sensor = commands.getoutput('sensors -u | grep temp1 | cut --delim="." -f 1')

Now instead of 51.000 ℃, you get 51 ℃.

You can manipulate the ℃ part as well on this line:

self.label.setText(sensor[start:end] + ' ' + chr(176) +'C')

For example, if you change it to

self.label.setText(sensor[start:end] + ' ' +chr(176))

you get 51° instead of 51 ℃.

Report

icewind1991

8 years ago

For mutlicore system, it might be nice to show the average temperature of both cores in the panel, and show a popup with the temperature of the individual cores when you click on it

Report

C

sezaru

8 years ago

Hello, can you give me the output of $ sensors
and
$ sensors -u
so i can try implement something like that
thanks

Report

icewind1991

8 years ago

sensors:
Quote:k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +42.0 C
Core1 Temp: +35.0 C

sensors -u:
Quote:k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
temp1_input: 41.00
Core1 Temp:
temp3_input: 32.00

Report

itsjustarumour2

8 years ago

Installed it, but it didn't work. Then I released that it requires lm_sensors to be installed, so I installed that. Now when I install the plasmoid its kinda half-working - I get the "Degrees C" bit showing, but not the number for the actual temperature. Any ideas?

(Fedora 13 32-bit, KDE 4.5.2)

Report

C

sezaru

8 years ago

Hello, can you run in the terminal this:
$ sensors
and paste here the output?
Thanks

Report

itsjustarumour2

8 years ago

Hi,

OK, here goes :-)

[ian@COOLERMASTER ~]$ sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.05 V (min = +0.85 V, max = +1.60 V)
+3.3 Voltage: +3.30 V (min = +2.97 V, max = +3.63 V)
+5 Voltage: +5.02 V (min = +4.50 V, max = +5.50 V)
+12 Voltage: +11.93 V (min = +10.20 V, max = +13.80 V)
CPU FAN Speed: 888 RPM (min = 600 RPM)
CHASSIS1 FAN Speed:1278 RPM (min = 600 RPM)
CHASSIS2 FAN Speed:1231 RPM (min = 600 RPM)
CHASSIS3 FAN Speed:1205 RPM (min = 800 RPM)
CPU Temperature: +28.0°C (high = +60.0°C, crit = +95.0°C)
MB Temperature: +23.0°C (high = +45.0°C, crit = +95.0°C)

[ian@COOLERMASTER ~]$

Report

C

sezaru

8 years ago

Hello itsjustarumour2,

I have just updated the plasmoid, can you test it and reply if it works or not?

Thanks!

Report

itsjustarumour2

8 years ago

Hi Sezaru,

Yes, new version 0.2 is working perfectly! Thanks for all your hard work.

Best,

itsjustarumour2

Report

12345678910
13
product-maker lionhater Oct 05 2012 9 excellent
product-maker Artcor Oct 07 2011 9 excellent
product-maker Dratek Oct 03 2011 9 excellent
product-maker pano Jul 13 2011 9 excellent
product-maker gamdoodyandgam Jun 03 2011 9 excellent
product-maker nick1701 Apr 11 2011 9 excellent
product-maker shatle Jan 28 2011 9 excellent
product-maker kem Dec 26 2010 9 excellent
product-maker J0nas Dec 09 2010 9 excellent
product-maker pavelgejdos Nov 07 2010 9 excellent
product-maker icewind1991 Nov 06 2010 9 excellent
product-maker itsjustarumour2 Oct 23 2010 9 excellent
product-maker janet Oct 22 2010 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) MD5SUM Version Description Downloads Date Filesize DL OCS-Install
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.2
updated Oct 26 2010
added Oct 22 2010
downloads 24h
0
page views 24h 3