
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
the new smoothy 2 is total rewritten. it's now "module based" and you can add/remove the modules you want.
parts of the system.pl script is from yasis (http://soul.f2o.org/irc/).
you need to change the path for the "programs" directory in "modules/smoothy_system.theme", "modules/smoothy_net.theme", "modules/smoothy_net_io.theme" and "modules/smoothy_pop3.theme"
17 years ago
2003-06-03
--
¤ just fixed the bug in "modules/smoothy_time.theme", thanks dmx9595.
2003-06-02
--
¤ rewritten, module based:
- system module
- cpu module
- memory module
- harddrive module
- network module
- network in/out module
- mail pop3 module (script/mails_pop3.pl)
- noatun module
- xmms module
- uptime module
- time/date module
2003-05-29
--
¤ ontop is no longer default.
¤ changed mails.pl to use args instead, because i got more then one mail account that i wanna check mail on, usage: mails.pl server username password
¤ if the mail server is unreacheable you'll now get the text "server unreachable" instead of nothing.
¤ added a CLICKAREA to the mail icon which opens kmail.
17 years ago
2003-06-03
--
¤ just fixed the bug in "modules/smoothy_time.theme", thanks dmx9595.
2003-06-02
--
¤ rewritten, module based:
- system module
- cpu module
- memory module
- harddrive module
- network module
- network in/out module
- mail pop3 module (script/mails_pop3.pl)
- noatun module
- xmms module
- uptime module
- time/date module
2003-05-29
--
¤ ontop is no longer default.
¤ changed mails.pl to use args instead, because i got more then one mail account that i wanna check mail on, usage: mails.pl server username password
¤ if the mail server is unreacheable you'll now get the text "server unreachable" instead of nothing.
¤ added a CLICKAREA to the mail icon which opens kmail.
tgzuke
16 years ago
Report
Chaaun
16 years ago
Chaaun
Report
Chaaun
16 years ago
Report
jrust
16 years ago
#!/usr/bin/php
<?php
$serverName = $_SERVER['argv'][1];
$userName = $_SERVER['argv'][2];
$password = $_SERVER['argv'][3];
$connect = "\{$serverName:143/imap/notls}";
$flags = OP_READONLY;
// Uncomment these three lines if you are using a pop3 box
//$flags = null;
//$connect = str_replace('/imap', '/pop3', $connect);
//$connect = str_replace(':143', ':110', $connect);
$mb = @imap_open($connect, $userName, $password, $flags);
if (!$mb) {
die("server unreachable: " . imap_last_error() . "\n");
}
$status = imap_status($mb, "{$connect}INBOX", SA_MESSAGES | SA_UNSEEN);
$numNew = $status->unseen;
// Uncomment this if you want the total number of messages
//$numNew = $status->messages;
if ($numNew > 0) {
echo $numNew . ' new mail' . ($numNew == 1 ? '' : 's') . "\n";
}
else {
print "no new mail\n";
}
imap_close($mb);
?>
Report
zx86
17 years ago
The more effective way shld be parse only what u need, i have think of 2 ways
1) Use seperate files
2) Use a if statment to run the command needed
e.g
system.pl 1
which will run the first section of the .pl and so on.
Hope you can do this in the next release.
Report
zx86
17 years ago
http://www.nchost.net/zx/system.pl.txt
Report
zx86
17 years ago
instead of
program="/path/to/system.pl" line=1
Report
zx86
17 years ago
/*
Add this to the end of system.pl
*/
$apm = `apm`;
@charge = split/,/,$apm;
@batt = split/:/,$charge[1];
print $charge[0];
print $batt[1];
print ":";
print $batt[2];
@percent = split/%/,$batt[1];
@percent = split/ /,$percent[0];
print "$percent[1]";
/*
For me i replace smoothy_system.theme to the following:
*/
karamba x=0 y=0 w=125 h=60 interval=2000 locked=true
image x=0 y=0 path="../pics/faded.png"
<group> x=2 y=5
image x=2 y=4 path="../pics/system.png"
text x=24 y=5 sensor=program program="echo Zx Laptop" color=255,255,255 fontsize=7 font="Arial"
text x=24 y=20 sensor=program program="/home/zx/smoothy_2/programs/system.pl" line=5 color=255,255,255 fontsize=7 font="Arial" interval=10
image x=24 y=34 path="../pics/barback.png"
bar x=25 y=34 sensor=program program="/home/zx/smoothy_2/programs/system.pl" line=6 path="../pics/barmeter.png" w=83 max=100 h=6
</group>
/*
If you like, you can make another module for this :-) smoothy rules!
This is my second day with karamba and done perl for the first time,so pls tell me if i have done anything wrong :-)
*/
Report
zx86
17 years ago
http://www.kde-look.org/content/show.php?content=6278&xexpand=37523#c37523
Report
zx86
17 years ago
If u put 10, the load to the machine will be quite high.
i currently use 30000 as the interval instead of 10
interval is in millisec(i think)
so 30000 = 30000/1000 = 30(sec)
:-)
Report
darkmorph
17 years ago
text x=55 y=5 sensor=program program="/home/morph/Documents/smoothy_2/programs/system.pl" line=3 color=255,255,255 fontsize=7 font="Arial" [interval=1000]!!This interval is missing in your version!!
text x=24 y=20 value="out: " color=80,189,55 fontsize=7 font="Arial"
text x=55 y=20 sensor=program program="/home/morph/Documents/smoothy_2/programs/system.pl" line=4 color=255,255,255 fontsize=7 font="Arial" [interval=1000]!! This interval is missing in your version!!
and cause of that, its updating only all 3600000ms as far as i know, and maybe its only my taste but i prefer a more acurate measuring :)
mfg morph :)
Report
darkmorph
17 years ago
Report
Cloud_double
17 years ago
I replaced faded.png with this:
http://www.eecs.umich.edu/~sccheung/tmp/faded.png
Then I get this:
http://www.eecs.umich.edu/~sccheung/tmp/snapshot.png
BTW, I really like the idea of modules. :-)
Report
GimpY
17 years ago
Report
atac
17 years ago
"mail.pl mail.server.tld username password"
Report
p0z3r
17 years ago
-p0z3r
Report
atac
17 years ago
Report
p0z3r
17 years ago
Where do you hang out? (irc, or other chat place)
-p0z3r
Report
atac
17 years ago
Report
Cheerios
17 years ago
btw, i love it :)
Report
atac
17 years ago
Report
dmx9595
17 years ago
text x=24 y=35 sensor=time format="ddd, MMMM d/m" color=255,255,255 fontsize=7 font="Arial"
should be
text x=24 y=35 sensor=time format="ddd, MMMM d/M" color=255,255,255 fontsize=7 font="Arial"
( should be d/M not d/m )
Report
atac
17 years ago
thanks!
Report
dmx9595
17 years ago
Report
Exdaix
17 years ago
Report