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
8.2
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

C

finkandreas

9 years ago

Hm, I forgot to set an expand tabs flag in the source code. It should work now with 0.9a...
But the next time you could be more precise with "it does not work".

Report

t3ddy

9 years ago

another thing, now if I don't set an icon for a key, it displays in this way: http://img10.imageshack.us/i/yasp.jpg/
that icon is absolutely not eye candy :P

Report

C

finkandreas

9 years ago

And thx for the report. I'm wondering why you're the only one who complained about that ;)

Report

C

finkandreas

9 years ago

okay, fixed in 0.9b...
Hopefully I did not introduce new bugs ;)

Report

t3ddy

9 years ago

I've tried that line after you told me how to use it.
Before I've had only tried to put \n and \t into the script and it wasn't working, so I thought I was mistaking.
Then after your explaination I've tried that line and it wasn't working too, so I told you :)

Report

cialdo99

9 years ago

Hi, in my script I use
sensor name="Core1Temp" type="program" cmd=%sensors | grep temp1 | xargs | sed -e "s/temp1: \(+[0-9]*\)../\1/"%
to show my Cpu Temp, but the result is
http://img183.imageshack.us/img183/2064/question2.png

How can I show only the value

Report

C

finkandreas

9 years ago

sensor name="Core1Temp" type="program" cmd=%sensors | grep temp1 | xargs | sed -e "s/temp1: \(+[0-9]*\).*/\1/"%

does this work??

Report

cialdo99

9 years ago

Thanks very a lot for the reply

Report

ronanjardim

9 years ago

This idea was just amazing!

I love this plasmoid, very configurable and you can do many interesting things.

I just recommend to have a better syntax README :) I mean, a PDF of HTML in order to make the development of the script easier.

I also want to ask for two features:

1) Add the possibility to increase the icon size.
2) Permit to change the background color of the plotter. Because if you use transparent background for the plasmoid, sometimes the plotter becomes difficult to see.

Is it possible to do that?

Thanks,
Ronan.

Report

C

finkandreas

9 years ago

The syntax readme is in fact not very nice, but I do not see how HTML or PDF would help (at least not with a lot of effort in formatting and such stuff).
I think the best would be to do it in LaTex but that takes some time and I'm not sure if I really will do it (probably no).
If you or someone else wants to start something like this, I would love to see a nicer readme.

To your 2 requests:
1) Just the icon size should be no problem. A problem would be if you want to have one icon over 2 columns, since this would not be possible

2) Yes I can implement that (not a big thing), but there are so many other things you could set, like grid color, vertical grid line count, horizontal grid line cound, a grid at all. Implementing them all is of course no big deal, but I thought that this would be too much of customization ;)

So I'll implement a background color and icon size the next few days (probably that weekend)

Report

ronanjardim

9 years ago

Hum, this thing to have two or more lines in front of a single icon would be good too :D

Is it difficult to implement printf tags like \n, \t, etc. on these labels? That should solve this.

Thanks,
Ronan.

Report

C

finkandreas

9 years ago

Ok the new version is hopefully having everything you need to customize it even more. I hope that it works, because I cannot test it correctly since I'm using now openbox and can only check for compilation and basic usage...

Report

ronanjardim

9 years ago

Very good!
These new features makes it much much more configurable! Congratulations!

I just notice two things:

1) In the past version (0.8) I can use strings like icon=":/All/icons/ram.png" to set up icons like in yasp. In this version, it shows a blank icons.

2) If you write iconsize=10 instead iconsize="10" all plasma get stuck :D

Thanks very much for this new version,
Ronan.

Report

C

finkandreas

9 years ago

icon=":/All/icons/ram.png" is definetly not correct, since it means: Search in the compiled in icons in the hierarchy /All/icons/ram.png. But since there are not compiled in icons this is just wrong. Maybe KDE still searched for it on the harddisk and found it somehow. I just changed the Iconloader routine, which seems to not support this bad style. Just use the full path, or give only the icon name, i.e. icon="/usr/share/icons/kde4/All/icons/ram.png" or icon="ram" then KDE probably will find it too.

iconsize=10 is wrong. Excerpt from README.syntax:
# A key-value pair has the syntax: key="value"
# See below which keys are accepted for each keyword section.
# The value itself must be enclosed in some tags, whereas the tag itself can be chosen freely,
# i.e. this examples result in the same key-value pair: abc="xyz", abc=%xyz%, abc=NxyzN

You see, iconsize=10 is not and will not be supported

Report

ronanjardim

9 years ago

Ok!
I have found the icon and everything is ok!
Congratulations for the plasmoid, it is very good. The idea of the script was amazing.

Thanks,
Ronan.

Report

SeaJey

9 years ago

Unfortunately does work for me
Compiled and installed Release-version according to manual.

When adding to desktop I'm seeing this:
http://pic.ipicture.ru/uploads/090904/876/sEUj4TWhU3.png

~$ ls ~/.yasp.script
systemmonitor.script

Report

C

finkandreas

9 years ago

Hmm, maybe you got it wrong, but .yasp.script has to be a file, not a directory ;)
So copy the file systemmonitor.script to the file .yasp.script or change in the preferences dialog the path to /path/to/systemmonitor.script (and by path, I mean the path inclusively the filename...)

Report

SeaJey

9 years ago

Damn, I really thought .yasp.script is a hidden config directory and you have to put .script-files into it ^_^

It should be cleared in the FAQ/readme :)

Report

C

finkandreas

9 years ago

Yeah the word path, is maybe a bit misleading. I should clarify that this should be the directory+filename (I'm just used to call a directory+filename the path of a file, because it's called this way in Qt)

Report

SeaJey

9 years ago

Forget to add:
kubuntu 9.04 amd64
kde 4.3.1
Qt 4.5.2

Report

t3ddy

9 years ago

I've customized .yasp.script and it looks like this: http://img513.imageshack.us/i/yasp.jpg/
Now I'm asking you if it's possible to have (like in upload and download) two value, but aligned, on the same line.
I know they seems aligned in the pic, but they are not, I've just put some blank space between the two values.
Thanks :)

Report

C

finkandreas

9 years ago

Unfortunately this is not possible, and actually I do not plan to integrate it in the near future, since it means a lot of code rewrite...
Maybe you can align with the tabulator, but I'm not sure if this really works, just something which could work...

Report

t3ddy

9 years ago

It doesn't work with the tabulator, anyway it's not a problem, I were just curious to know if it was possible to do such thing, but I think that lot of code rewriting doesn't worth the candle (as we say in italy).
Thanks! :)

Report

Montblanc

9 years ago

I noticed that the ° symbol doesn't seem to be displayed properly as you can see in this snapshot:

http://img60.imageshack.us/img60/448/yaspscriptedencodingissi.jpg

P.S.: I found the "text" keyword very useful! :)

Report

C

finkandreas

9 years ago

Hopefully the new version works for you...
At least it works for me (I'm using utf-8, as my system encoding)

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 9 excellent
product-maker LeifErikson May 29 2013 9 excellent
product-maker XenoPL Nov 01 2012 9 excellent
product-maker Sweyn78 Aug 27 2012 9 excellent
product-maker matafleur Mar 05 2012 9 excellent
product-maker gerstavros Jan 15 2012 9 excellent
product-maker Heart Nov 14 2011 9 excellent
product-maker momonster Jul 02 2011 9 excellent
product-maker superpepo Jun 18 2011 9 excellent
product-maker yield65 May 29 2011 9 excellent
product-maker marcotangaro Mar 24 2011 9 excellent
product-maker theZest Feb 28 2011 9 excellent
product-maker bugmenot1234 Feb 27 2011 9 excellent
product-maker rangerGR Feb 25 2011 9 excellent
product-maker schleby Feb 14 2011 9 excellent
product-maker phiga2 Feb 11 2011 3 bad
product-maker srog Feb 01 2011 9 excellent
product-maker opera1818 Dec 17 2010 9 excellent
product-maker cialdo99 Nov 18 2010 9 excellent
product-maker deabru Nov 07 2010 9 excellent
product-maker schnelle Nov 05 2010 9 excellent
product-maker Vzlom Oct 27 2010 9 excellent
product-maker vatsok Oct 21 2010 9 excellent
product-maker SeaJey Oct 07 2010 9 excellent
product-maker Count: 4 Rating: 5.0

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 16