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();