Yasp-Scripted (Systemmonitor) v1.0.8a

Plasma 4 Widgets

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

24
7.6
Description:

Yes, Yet another systemmonitor plasmoid.
But still different from the others.
The only useful plasmoid systemmonitor i have found was Yasp. The problem with it was that it was not configurable enough.
So I came up with the idea, that everyone has its own imaginations of what belongs into a systemmonitor and what not. The birth of Yasp-scripted.
The name is similar to Yasp, because I use some modified code from that project.
The biggest advantage is that you can add things to the monitor or remove some, by just changing the script file and reparse it again...) No recompilation or something like that needed...
The scriptfile which comes with this applet is a scriptfile which fits exactly my system. You probably need to change it to fit your system (e.g. if you do not have a wireless lan card, you need to remove the wlan stuff from the script file).

You can send me your script, such that I can upload a whole bunch of scripts, the user could choose of later (maybe with a screenshot to see directly what the script does)

The scripts can be found in the directory yasp_scripts.
The 1st screenshot is systemmonitor_by_mtr.script, the 2nd screenshot is systemmonitor_by_patkoscsaba.script
and the 3rd screenshot is the script collection by duncan
(thx for the scripts).

If you want to align things, you should either use a monospace font, or use a t in the value.

If you are familiar with svg you maybe will create your own svg's for the bar-meter. Send them please to me to have a wider range of look and feel for the system monitor ;)
Last changelog:

8 years ago

1.0.8a - wrong folder prefix ;)

1.0.8 - bug fixed when reparsing (the kde-plasma-handle was deleted, but we should not delete it)

1.0.7 - bug fixed if engine-sensors contains a colon
- Added script by joseph (thx for the script)
- New script by aldo (thx for the script)

1.0.6 - stack keyword added to plotter (thx Chris99 for the patch)
- Script by mtr added (thx for the script)

1.0.5 - fix crash on reparsing in kde-4.5.2 (with 4.5.2 reparsing works again, but 4.5.1 and 4.5.0 have a bug)

1.0.4
- Label preferredSize setting correctly + sizePolicy changed

1.0.3
- meter sizePolicy changed (works now better in KDE-4.5)
- bugfix for KDE-4.5 such that it does not crash on removal

1.0.2
- workaround for problems with KDE-4.5 and meters (min_height parameter added)
- added script by aldo to the package (italian labels)
(- known issue: yasp-scripted crashes on reparsing in kde-4.5. This will be fixed in a later release)

1.0.1 - bug fixed if yasp is closed while parsing the script

1.0: - Reparsing should be more stable

phiga2

8 years ago

HI,
How to resize it? it's too wide and no way to shrink it!

Report

DuncanKDE

8 years ago

To resize it, you must resize the longest element (usually a text element) inside. It will only shrink down until that element is displayed at its natural size.

That is in fact how I control the sizes on all of mine. I use monospace fonts, and strictly control the number of chars on each line. (I hadn't fully gotten the hang of it when I posted the sample scripts that now appear in the duncan subdir. I've refined my technique a bit since then.)

Hint: If you're using value lines with both key and (possibly formatted) use values, the longest key value will apply to all of them, as will the longest (formatted) use value, assuming the same font for all of them, anyway. So to calculate the length required for the value lines, add the longest key length to the longest use length.

Basically, what that means is that you need to trim/abbreviate more. If you have text results that are too long, feed them to grep or cut to trim them some. For integer results, divide by factors of 10 to reduce the number of digits. For floats, use format to control the number of decimal places. And of course abbreviate your keys/labels if necessary.

Or use narrower/smaller fonts...

Note that I don't use meter/bar graphs here, preferring plotters as I like to see the trends that bars hide. Thus, I don't have much experience with or advice on them, but the same idea would apply. If commenting everything but the sensor and meter lines results in the same minimum width, they're forcing the width, so you gotta figure out how to make them narrower.

Report

phiga2

8 years ago

Thanks,
I understand the principle but out of my reach!

Report

C

finkandreas

8 years ago

Short answer: You cannot make it smaller than the widest element.
What exactly gives you trouble? Cut the value which is too long with the awesome command "cut".

Report

hamelg

8 years ago

Hello,

I want to use disk metrics from systemmonitor dataengines but none works.
ie :
sensor name="IOsda" type="engine" cmd="systemmonitor:disk/sda_(8:0)/Rate/totalio:value"
yasp-script is stuck on "Waiting for: IOsda" message.
The source:key dataengine is correct : I get values with the Plasma Engine Explorer tool.
Any ideas ?

Report

hamelg

8 years ago

The issue comes from the field separator colon.

cmd="systemmonitor:disk/sda_(8:0)/Rate/totalio:value"
__________________________________^

the parser ignore that because it counts 4 fields, not 3.
So, all dataengine keys which contains a colon can't be used :(
Could you fix that ?

Report

C

finkandreas

8 years ago

fixed in version 1.0.7. Thx for reporting the issue ;)

Report

marcotangaro

8 years ago

the Script by mtr does not work on my archlinux 64, with kde 4.5.3.
it stop to : "Waiting for: DataFree"

Report

cialdo99

8 years ago

doesn't work with any distro if you don't specify the mountpoint of the hardrive you want to monitor.

See the comment:RE:Problem at page 11 to solve.

Report

marcotangaro

8 years ago

I solved thank you
ps. sorry for multiple post... by browser is going crazy

Report

marcotangaro

8 years ago

the Script by mtr does not work on my archlinux 64, with kde 4.5.3.
it stop to : "Waiting for: DataFree"

Report

marcotangaro

8 years ago

the Script by mtr does not work on my archlinux 64, with kde 4.5.3.
it stop to : "Waiting for: DataFree"

Report

marcotangaro

8 years ago

the Script by mtr does not work on my archlinux 64, with kde 4.5.3.
it stop to : "Waiting for: DataFree"

Report

t3ddy

8 years ago

on kde 4.5, the last version keeps too much space between the two (immaginary) columns, so rather than restrict that space, it puts some text "out of the plasmoid", like here: http://img543.imageshack.us/img543/2624/yasp.jpg

Report

C

finkandreas

8 years ago

Thx for report --> fixed in 1.0.4

Report

t3ddy

8 years ago

The problem seems still present here with 1.0.4

Report

C

finkandreas

8 years ago

finally I've managed to upload the right file ;)
Had to rename it to yasp-scripted-1.0.4a.tar.bz2 but it is the real 1.0.4...

Report

t3ddy

8 years ago

Now it works, thanks!

Report

extra

8 years ago

Hello!
I use Debian Testing & KDE 4.4.5
Has installed from repository Yasp-plasmoid, has added him on desktop, has chosen a script systemmonitor_by_patkoscsaba.script (I have downloaded scripts separately), after all it I see an inscription on plasmoid "Waiting For: UptimeSecs", I have replaced a script on systemmonitor_aldo.script, the inscription has changed on "Waiting For: HomeUsed".Option "Reparse script' dont help me.
Help to make so that Yasp worked, please!

Report

cialdo99

8 years ago

You have to edit the script, specifying the mountpoint of the partitions you want to see.

Search for title text="Dischi"
in line:
sensor name="HomeUsed" type="engine" cmd="systemmonitor:partitions/MountPoint/usedspace:value" math="double $0 256 / 1024 /"

you have to raplace MountPoint with the mountpoint of the partition you want

same thing in Home total, Home free, Home fill

Report

scratchman

8 years ago

Hi,
today I`ve installed KDE-4.5 (rc2) and it seems that something has changed.
The meterbars (like on your screenshots for RAM, SWAP ..) are too small.
Fonts and everything else seems to be O.K..
Any ideas?
Thx for yasp-scripted &
greetings

Report

Droopy159

8 years ago

I've got the same problem with KDE RC2 under Archlinux. I tried uninstall and to re-install once but impossible to compile again

Report

C

finkandreas

8 years ago

I do not install a release candidate, so it's hard to verify right now. But as soon as kde-4.5 is released I'll have a look to the problem (you can also write as a reminder again to this comment, otherwise I'll maybe forget it)

Report

Droopy159

8 years ago

Th latest update 1.0.4 solved all my problems. Thanks so much for your good job

Report

hellblade

8 years ago

I can confirm that this is still the case under KDE 4.5 stable (Kubuntu 10.04).
Resizing the plasmoid (like x10) makes the bars normal again but everything else... of course not:)
I'm not quite sure but I think they didn't use to scale.

Report

8 years ago

1.0.8a - wrong folder prefix ;)

1.0.8 - bug fixed when reparsing (the kde-plasma-handle was deleted, but we should not delete it)

1.0.7 - bug fixed if engine-sensors contains a colon
- Added script by joseph (thx for the script)
- New script by aldo (thx for the script)

1.0.6 - stack keyword added to plotter (thx Chris99 for the patch)
- Script by mtr added (thx for the script)

1.0.5 - fix crash on reparsing in kde-4.5.2 (with 4.5.2 reparsing works again, but 4.5.1 and 4.5.0 have a bug)

1.0.4
- Label preferredSize setting correctly + sizePolicy changed

1.0.3
- meter sizePolicy changed (works now better in KDE-4.5)
- bugfix for KDE-4.5 such that it does not crash on removal

1.0.2
- workaround for problems with KDE-4.5 and meters (min_height parameter added)
- added script by aldo to the package (italian labels)
(- known issue: yasp-scripted crashes on reparsing in kde-4.5. This will be fixed in a later release)

1.0.1 - bug fixed if yasp is closed while parsing the script

1.0: - Reparsing should be more stable

12345678910
123
product-maker domryba Apr 16 2015 8 great
product-maker LeifErikson May 29 2013 8 great
product-maker XenoPL Nov 01 2012 8 great
product-maker Sweyn78 Aug 27 2012 8 great
product-maker matafleur Mar 05 2012 8 great
product-maker gerstavros Jan 15 2012 8 great
product-maker Heart Nov 14 2011 8 great
product-maker momonster Jul 02 2011 8 great
product-maker superpepo Jun 18 2011 8 great
product-maker yield65 May 29 2011 8 great
product-maker marcotangaro Mar 24 2011 8 great
product-maker theZest Feb 28 2011 8 great
product-maker bugmenot1234 Feb 27 2011 8 great
product-maker rangerGR Feb 25 2011 8 great
product-maker schleby Feb 14 2011 8 great
product-maker phiga2 Feb 11 2011 3 bad
product-maker srog Feb 01 2011 8 great
product-maker opera1818 Dec 17 2010 8 great
product-maker cialdo99 Nov 18 2010 8 great
product-maker deabru Nov 07 2010 8 great
product-maker schnelle Nov 05 2010 8 great
product-maker Vzlom Oct 27 2010 8 great
product-maker vatsok Oct 21 2010 8 great
product-maker SeaJey Oct 07 2010 8 great
product-maker Count:67 Rating: 7.46

domryba

Apr 16 2015

xrooters

Jul 13 2013

LeifErikson

May 29 2013

XenoPL

Nov 01 2012

despot77

May 28 2012

Fred6681

Jul 02 2011

yield65

May 29 2011

marcotangaro

Mar 24 2011

extra

Nov 09 2010

Contrast

Aug 21 2010

poelzi

Feb 25 2010

hellblade

Feb 16 2010

Franksuse64

Feb 02 2010

DaiVied

Dec 19 2009

nicollivier

Dec 02 2009

Droopy159

Nov 18 2009

SeaJey

Nov 03 2009

Sibob

Nov 03 2009

DuncanKDE

Oct 22 2009

kanutron

Sep 18 2009

t3ddy

Sep 04 2009

Montblanc

Aug 28 2009

NForce

Aug 10 2009

Havoc65

Jul 31 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.0.8a
updated Feb 25 2011
added Jul 31 2009
downloads today
0
page views today 7