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

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

C

finkandreas

10 years ago

Hopefully fixed in 0.5...

Report

NForce

10 years ago

Just found out that it is unneccessary to comment out those lines. Plasma started - plasmoid shows me error on kernel line. I hit "reparse" - plasmoid shows me error on some wlan line. I hit reparse - it works!
P.S. When i hit reparse for first time - plasma crashed

Report

C

finkandreas

10 years ago

I will have a look on that problem next week...

Report

darthanubis

10 years ago

You can't get to a previous page without "resend"? Who's idea was that? I was just refreshing the page to see if I missed any new comments.

Report

C

finkandreas

10 years ago

Happend also the first time to me, and I think it is quite stupid, that you neither can edit nor delete your own comments...

Report

darthanubis

10 years ago

Ok your two line script works, but instead of leaving just the PATH for the script in the plasmoids setting, you have to actually insert the FULL file name with PATH. eg./home/anubis/.yasp.script/test.script.

Doing this with the actual systemmonitor.script gives me an error:

"You have a broken dependency in the line:
plotter use="Eth0Down" use="Eth0Up"......etc. the rest is for the wlan and then plots and color settings.

Report

C

finkandreas

10 years ago

Probably you do not have a wireless lan card, or the name of the wireless card is not wlan0 but something else?
You have to adapt the script to your system, since the available script is just fitting to my system and may be not what you want to monitor (for example the whole 'portage' section will be uninteresting for you, cause this is just Gentoo specific stuff)

So just adapt the script to what you want to monitor, and replace wlan0 and eth0 with your networkcards.

Report

darthanubis

10 years ago

Ok your two line script works, but instead of leaving just the PATH for the script in the plasmoids setting, you have to actually insert the FULL file name with PATH. eg./home/anubis/.yasp.script/test.script.

Doing this with the actual systemmonitor.script gives me an error:

"You have a broken dependency in the line:
plotter use="Eth0Down" use="Eth0Up"......etc. the rest is for the wlan and then plots and color settings.

Report

darthanubis

10 years ago

Ok your two line script works, but instead of leaving just the PATH for the script in the plasmoids setting, you have to actually insert the FULL file name with PATH. eg./home/anubis/.yasp.script/test.script.

Doing this with the actual systemmonitor.script gives me an error:

"You have a broken dependency in the line:
plotter use="Eth0Down" use="Eth0Up"......etc. the rest is for the wlan and then plots and color settings.

Report

darthanubis

10 years ago

Well I did need the kdelibs which allowed me to compile the widget, but nothing happens with it even though I followed the directions that state :
Copy the file systemmonitor.script to $HOME/.yasp.script (if not available yet)
Otherwise, nothing will happen with this applet...

Nothing is happening and there are no errors that I can tell

Report

C

finkandreas

10 years ago

Hm, strange...
Could you check, what your script path is: Right click on the applet -> "Yasp Scripted Settings" -> "Script Path".
Make sure that it really points to an existing file...

Report

darthanubis

10 years ago

Totally where it should be. I checked before I posted as to not waste your time.

Report

C

finkandreas

10 years ago

Could you try it with this small scriptfile:

sensor name="test" type="program" cmd="echo 123"
value key="abc" use="test"

Just save these two lines in a file, and set this file as your script. This should print you 'abc' and '123' in one line.

Report

darthanubis

10 years ago

dup delete please

Report

C

finkandreas

10 years ago

I can't delete the comments (or I am too stupid to find it).
However to solve your problem:
You're missing the package kdelibs5-dev.
Check this site if you have even more compilation problems: http://ubuntuforums.org/showthread.php?t=718183

Report

darthanubis

10 years ago

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/anubis/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Report

darthanubis

10 years ago

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/anubis/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Report

gab1to

11 years ago

Application: Plasma Widget Viewer (plasmoidviewer), signal: Segmentation fault
[KCrash Handler]
#6 0xb76d00cb in QVariant::toString () from /usr/lib/libQtCore.so.4
#7 0xa8457991 in Sysmon::TimeoutUpdateLabel () from /usr/lib/kde4/yasp_scripted.so
#8 0xa8458667 in Sysmon::AddValue () from /usr/lib/kde4/yasp_scripted.so
#9 0xa845aa4c in Sysmon::ParseConfig () from /usr/lib/kde4/yasp_scripted.so
#10 0xa845aed0 in Sysmon::init () from /usr/lib/kde4/yasp_scripted.so
#11 0xb7ad3a57 in Plasma::Containment::addApplet () from /usr/lib/libplasma.so.3
#12 0xb7ad3c9b in Plasma::ContainmentPrivate::addApplet () from /usr/lib/libplasma.so.3
#13 0xb7ad3ef9 in Plasma::Containment::addApplet () from /usr/lib/libplasma.so.3
#14 0x0804d16f in _start ()

Report

C

finkandreas

10 years ago

fixed since version 0.4

Report

gab1to

11 years ago

OK.
I commented the Partitions section in the yasp script and it works.

Report

zx6r

11 years ago

Partitions section was causing crash ony my system, too.

Report

C

finkandreas

11 years ago

Do you also use Kde 4.3?
I'm going to install the next days kde 4.3 and can debug what really happens there.
In the meantime everyone with kde4.3 should disable the partition section.

Report

gab1to

11 years ago

It's just what I want but it crashes Plasma in KDE4.3 RC3

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 16