LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2004, 09:42 AM   #1
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,512

Rep: Reputation: 46
Superkaramba display cpu temp?


I'm having a hard time trying to make some themes display my cpu temp. Can you superkaramba guys explain to me how does it work, which themes are you using, or yet better, post here the specific lines that do the trick?

I'm trying to edit the theme, so as to include the name of the temp monitor that appears under the sensors command. Is that right?

Thanks!
 
Old 09-17-2004, 10:23 AM   #2
pavgust
Member
 
Registered: May 2003
Distribution: Debian
Posts: 40

Rep: Reputation: 15
Here's the relevant line from my config:

bar x=54 y=144 w=110 h=20 vertical=false path="image/bar_7c.png" sensor=program program="cat /proc/acpi/thermal_zone/THM/temperature | awk '{print $2}'" max=70 interval=10000

(this is all one line)

So you define a sensor=program and extract the temperature from the /proc interface. The `awk '{print $2}'` just prints a number, which is used by superkaramba to decide how much of the image to display. You can also do everything else that you want with that number, like display it or use it for other scripts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the cpu temp? jon_k Linux - Software 1 10-26-2004 01:13 AM
cpu temp arturnoole163 Fedora 1 03-30-2004 12:36 PM
Cpu Temp. DavidTempler Linux - Software 3 10-16-2003 10:49 AM
cpu temp zaman Linux - Hardware 21 07-17-2003 10:21 AM
CPU Temp. moger Linux - Hardware 5 12-22-2002 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration