LinuxQuestions.org
Visit Jeremy's Blog.
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 07-18-2004, 04:27 AM   #1
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
cynapses karamba


i am using the cynapses theme for superkaramba, but can't figure out how to set up the email script, and get the temp/fan sensors to work.

you can find the theme here: http://kde-look.org/content/show.php?content=11405

Sensor script:

################################################################################
# Sensors
################################################################################
<group> x=10 y=515
image x=160 y=0 path="img/icons/fans_temps.png"
text x=15 y=10 value="Fans/Temp" color=255,255,255 fontsize=16 font="neuropol"

################################################################################
# Sensor CPU-Temperature
# "type" depends on your mainboard
# range is up to 70 degrees celsius. change 'max' value if needed.

text x=10 y=30 value="CPU" color=255,255,255 align=left fontsize=10 font="nimbus sans l"
bar x=50 y=30 w=100 h=5 vertical=false path="img/bar.png" sensor=sensor type="temp2" max=70
text x=170 y=30 sensor=sensor type="temp2" format="%v C" align=right color=255,255,255 fontsize=10 font="nimbus sans l"

################################################################################
# Sensor Fan (CPU)
# "type" depends on your mainboard
# range is up to 5000 rpm. change 'max' value if needed.

text x=10 y=45 value="Fan" color=255,255,255 align=left fontsize=10 font="nimbus sans l"
bar x=50 y=45 w=100 h=5 vertical=false path="img/bar.png" sensor=sensor type="fan1" max=5000
text x=170 y=45 sensor=sensor type="fan1" format="%v" align=right color=255,255,255 fontsize=10 font="nimbus sans l"


################################################################################
# Sensor Chassis-Temperature
# "type" depends on your mainboard
# range is up to 70 degrees celsius. change 'max' value if needed.

text x=10 y=70 value="Chassis" color=255,255,255 align=left fontsize=10 font="nimbus sans l"
bar x=50 y=70 w=100 h=5 vertical=false path="img/bar.png" sensor=sensor type="temp1" max=70
text x=170 y=70 sensor=sensor type="temp1" format="%v C" align=right color=255,255,255 fontsize=10 font="nimbus sans l"


################################################################################
# Sensor Fan (Chassis)
# "type" depends on your mainboard
# range is up to 5000 rpm. change 'max' value if needed.

text x=10 y=85 value="Fan" color=255,255,255 align=left fontsize=10 font="nimbus sans l"
bar x=50 y=85 w=100 h=5 vertical=false path="img/bar.png" sensor=sensor type="fan2" max=5000
text x=170 y=85 sensor=sensor type="fan2" format="%v" align=right color=255,255,255 fontsize=10 font="nimbus sans l"
</group>


E-mail script:

#!/usr/bin/perl
use Net::POP3;

my $ServerName = $ARGV[0];

# If your username contains a @ character you
# must replace it with \@
my $UserName = $ARGV[1];
my $Password = $ARGV[2];
my $pop3 = Net::POP3->new($ServerName);

if (!$pop3) {
print "server unreachable";
}

my $Num_Messages = $pop3->login($UserName, $Password) + 0;

if ( $Num_Messages == 1 ){
print $Num_Messages ." new\n";
}
elsif ( $Num_Messages > 1 ){
print $Num_Messages ." new\n";
}
else{
print "0 new\n";
}

$pop3->quit();
 
Old 12-04-2004, 06:58 AM   #2
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
I need some help too!
 
Old 12-04-2004, 10:53 AM   #3
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
i never got the sensors working, but email are ok now
 
Old 12-06-2004, 05:22 AM   #4
Braveheart1980
Member
 
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
I've solved it thanks to this

http://kde-look.org/content/show.php...orumexplevel=0

Hope it helps!
 
  


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
karamba *not super karamba* whishkah Linux - Software 1 09-28-2004 09:59 AM
Please help...karamba.... Veteq Linux - Newbie 3 04-01-2004 09:56 PM
****Karamba**** iLLuSionZ Linux - General 3 11-22-2003 11:03 AM
karamba iLLuSionZ Linux - Newbie 4 11-20-2003 10:36 PM
Karamba Help Evohack Linux - Software 2 08-07-2003 10:19 PM

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

All times are GMT -5. The time now is 06:40 PM.

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