
CPU Temperature gDesklet
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
Desklet for gDesklets which displays current CPU and hard disk temperature, and plots over time. Everything's pretty customizable.
Requires the following commands to produce appropriate output:
for CPU temperature:
"cat /proc/acpi/thermal_zone/THRM/temperature", (output similar to: "temperature: 66 C");
for HDD temperature:
"netcat localhost 7634" (output similar to: "|/dev/sda|FUJITSU MHV2080AH ?|48|C|").
13 years ago
0.2 - Added hard disk temperature monitor. Removed dependency on ICPUTemp control, in favour of built-in IExec control.
0.1 - First release
13 years ago
0.2 - Added hard disk temperature monitor. Removed dependency on ICPUTemp control, in favour of built-in IExec control.
0.1 - First release
Gangster
13 years ago
invalid literal for int() with base 10: '/proc/acpi/thermal_zone/THRM/temperature:'
/home/gangster/.gdesklets/Displays/CPUTemp/cputemp.display
78
79
80
81 def cpu_update(current_temp):
82 Dsp.cpu_label.value = cpu_label + current_temp + " °C"
> 83 Dsp.cpu_plotter.value = int(current_temp)
84
85 #ctrl.bind("cputemp", update)
86
87 Dsp.cnv.graphics = bg_svg
88
89 def timed_update():
and it don`t work....
Report
Iconoclast
12 years ago
cat /proc/acpi/thermal_zone/*/temperature
Of course the desklet only displays the temp of one core, so if it will require some script tampering to fix I imagine.
Report
arcovoltaico77
13 years ago
"No Control could be found for interface ICPUTemp:drt4oy2sbq3w0yqyhp4n9qbdc-2
/home/dav/.gdesklets/Displays/CPUTemp/cputemp.display"
the suggested "cat" command works, and from the shell I'm able to read cpu temp.
Report
cumpstey
13 years ago
In version 0.2 I've taken away dependency on the specific ICPUTemp control, in favour of the built-in generic IExec control. Hopefully you should have no problems with this.
Report
arcovoltaico77
13 years ago
Report