Yasp-Scripted (Systemmonitor) v1.0.8a

Plasma 4 Extensions

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:

9 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

Montblanc

10 years ago

Simply GREAT! :D
Many thanks!

Report

Montblanc

10 years ago

This one is really useful?
May someone kindly suggest me a *clean* code for top?

Report

C

finkandreas

10 years ago

I've added the new keyword.
A sample implementation can be found in the systemmonitor.script inside the tarball...

Report

Montblanc

10 years ago

Thanks! :)

Report

C

finkandreas

10 years ago

Hm, there is no clean code for this...
There need to be a 'text' section or something like this, which stretches over the whole width (like the bar and the plotter)
maybe I'll implement it the next days, since it does not make that much work ;)

Report

Montblanc

10 years ago

Thanks! That would be great! :D

Report

t3ddy

10 years ago

Let me tell this.
Today I've had the time of setting it up...AMAZING!
I'm absolutely denied with reg exp and things like this, but I managed to get it working.
Thank you!
Really a great job :)

Report

C

finkandreas

10 years ago

Thx a lot...
It's nice to see that people find this plasmoid useful although you need to put some effort to get it working like you want it to work ;)

Report

t3ddy

10 years ago

I know that most people like to have a product ready to use, but in my opinion that kind of products are made for all, they have nothing of special for you, while your plasmoid lets me manipulate itself as I like and now fits perfectly with my needs.
A few work for me, but the perfect product :)

Report

NForce

10 years ago

Version 0.6 works fine for me at last :) Great job!

Report

t3ddy

10 years ago

I was trying to get the dimensions of partition in gb and I have a problem with the division because it displays the full number also without comma (or dot).
It would be nice to have the possibility of choosing how may numbers we want after the comma (or dot) because numbers take a lot of horizontal space and I have to keep the plasmoid quite large.

Report

t3ddy

10 years ago

ops, sorry for the double post, the site was not responding well

Report

C

finkandreas

10 years ago

Yeah I thought about implementing that, but I'm not yet sure about the syntax to choose ;)
Right now, you will get 2 digits after the decimal point. If you want to change this behaviour you actually need to recompile the sources. Here the line you need to change:
yasp-scripted.cpp:308
sAfter = QString("%1").arg(m_Sensors[sSensor].toDouble(), 0, 'f', 2);
to
sAfter = QString("%1").arg(m_Sensors[sSensor].toDouble(), 0, 'f', 1);

for only one significant digit after the decimal point.

Here the four lines for the Home partition:
sensor name="HomeUsed" type="engine" cmd="systemmonitor:partitions/home/usedspace:value" math="double $0 256 / 1024 /"
sensor name="HomeTotal" use="HomeUsed" type="engine" cmd="systemmonitor:partitions/home/freespace:value" math="double $0 256 / 1024 / $1 +"
sensor name="HomeFill" type="engine" cmd="systemmonitor:partitions/home/filllevel:value"
meter use="HomeUsed" use="HomeTotal" use="HomeFill" label:0="home" label:1="$1 Gb / $2 Gb" alignment:1="right" min="0" max="100" value="$3"

Two sideremarks here:
- You need to take double for the calculations (if you want to have higher precision, int would work too, but would give you imprecise results)
- You need the HomeFill sensor, since a meter can only take integer values for the min, max and value thing.
- The precision will be the same for ALL double values. There is (at the moment) no possibility to change it per value

Hopefully this was helpful for you...

Report

t3ddy

10 years ago

thanks :)
with double instead of int it works

Report

t3ddy

10 years ago

I was trying to get the dimensions of partitions in gb and I have a problem with the division because it display the full number, also without comma (or dot).
It would be nice to have the opportunity of setting how many numbers we want after the comma (or dot) because numbers get a lot of horizontal space and I have to keep the plasmoid quite large.
thanks

Report

C

finkandreas

10 years ago

So if the line is commented everything works fine, but as soon as you uncomment it, it fails with broken dependency?
Could you upload your whole script, since not used sensors should be possible (even if it is not very useful to have unused sensors :P)

Report

C

finkandreas

10 years ago

Fixed in 0.6

Report

NForce

10 years ago

Here it is: http://pastebin.com/m68dfb61c
P.S. sorry for the flood before, the site is working awfully

Report

C

finkandreas

10 years ago

Okay found the error in the source code, but need some time to fix it. Maybe tomorrow ;)
However I am wondering why it worked before...

Report

NForce

10 years ago

Don't know, but it worked for sure...I'll test the updated version on monday :) Great plasmoid by the way, I was looking for something like that since kde 4.0 :)

Report

NForce

11 years ago

Hey, i've edited the default script so it fits my needs, but i have the same error every time plasma is started: You have broken dependency in line value key="Kernel" use="KernelVersion". If i comment that line out, and one other line, it starts working, then i can uncomment those commented lines and it just keeps working. But every time plasma is started - the error happens. KDE 4.3, gentoo. I am using this script: http://pastebin.com/m50d51181

P.S. it happens with original script, which is included in the tarball, too

Report

NForce

10 years ago

Feels like it is fixed :) But now there's another problem. If i uncomment this line
sensor name="Core0Unit" type="engine" cmd="systemmonitor:lmsensors/k8temp-pci-00c3/temp2:units"
then it shows me broken dependency error on that line:
value key="Core0 Temp" use="Core0Temp" format="$1C"
P.S. Previously it was
value key="Core0 Temp" use="Core0Temp" use="Core0Unit" format="$1$2" and it worked!

Report

C

finkandreas

10 years ago

Hopefully fixed in 0.5

Report

NForce

10 years ago

Feels like it is fixed :) But now there's another problem. If i uncomment this line
sensor name="Core0Unit" type="engine" cmd="systemmonitor:lmsensors/k8temp-pci-00c3/temp2:units"
then it shows me broken dependency error on that line:
value key="Core0 Temp" use="Core0Temp" format="$1C"
P.S. Previously it was
value key="Core0 Temp" use="Core0Temp" use="Core0Unit" format="$1$2" and it worked!

Report

NForce

10 years ago

Feels like it is fixed :) But now there's another problem. If i uncomment this line
sensor name="Core0Unit" type="engine" cmd="systemmonitor:lmsensors/k8temp-pci-00c3/temp2:units"
then it shows me broken dependency error on that line:
value key="Core0 Temp" use="Core0Temp" format="$1C"
P.S. Previously it was
value key="Core0 Temp" use="Core0Temp" use="Core0Unit" format="$1$2" and it worked!

Report

9 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 Base: 4 x 5.0 Ratings
Be the first to comment
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 MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0.8a
updated Feb 25 2011
added Jul 31 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 15