Description: 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|").Last changelog:
0.2 - Added hard disk temperature monitor. Removed dependency on ICPUTemp control, in favour of built-in IExec control.
I had a similar problem, and had to replace the proc temperature command in the cputemp.display with:
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.
it gives me this error :
"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.
gDesklets sometimes does this to me, even if the control is good. I don't know why - it seems a bit buggy sometimes in detecting controls.
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.
Ratings & Comments
5 Comments
I have got this error 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....
I had a similar problem, and had to replace the proc temperature command in the cputemp.display with: 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.
it gives me this error : "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.
gDesklets sometimes does this to me, even if the control is good. I don't know why - it seems a bit buggy sometimes in detecting controls. 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.
Ok, I'll try the new version, thank you