
LiNsta-XCPUMeter
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
LiNsta-XCPUMeter is an adesklet (http://adesklets.sourceforge.net).
LiNsta-XCPUMeter is a simple analogical system monitor (CPU, MEM and SWAP) for your desktop.
**VERY IMPORTANT** This adesklet depend on pystatgrab module. So, you have to install it via your packages management system to make it work.
See README file (*IMPORTANT*) for all details.
To run LiNsta-XCPUMeter, decompress archive in any dir or subdir in your home, go to LiNsta_XCPUMeter dir, edit the config.txt file to change the skin you want (see README file for more details). Skins available for now : Black, Default, Noir.
To change options, right-click on the desklet.
Never tested on Linux AMD64.
Send me your skins.
If you want other functionalities, then tell me.
It's the second "LiNsta" desklet I publish. Other "LiNsta" desklets soon :-)
Enjoy ;-)
13 years ago
Ver 0.1 : Alpha release, and first public release. No bug (I think), but config file not optimized, not possible to change skin dynalically, and no config file for skins (some parameters are hard-coded).
13 years ago
Ver 0.1 : Alpha release, and first public release. No bug (I think), but config file not optimized, not possible to change skin dynalically, and no config file for skins (some parameters are hard-coded).
LitusMayol
12 years ago
Is the best desklet (it looks so pretty).But I can't run it :S
litus@mayolets-desktop:~$ /home/litus/LiNsta_XCPUMeter/LiNstaXCPUMeter.py
Traceback (most recent call last):
File "/home/litus/LiNsta_XCPUMeter/LiNstaXCPUMeter.py", line 7, in <module>
import adesklets
ImportError: No module named adesklets
litus@mayolets-desktop:~$
Do you know what can it be?
Thansk, and well done: good job!
Report
LitusMayol
12 years ago
Now I've another different problem:
litus@mayolets-desktop:~$ /home/litus/LiNsta_XCPUMeter/LiNstaXCPUMeter.py
Do you want to (r)egister this desklet or to (t)est it? t
Now testing...
============================================================
If you do not see anything (or just an initial flicker
in the top left corner of your screen), try `--help',
and see the FAQ: `info adesklets'.
============================================================
But I've repaired it by "litus@mayolets-desktop:~$ adesklets --nautilus
"
So thanks, for this fantastic desklet!
Report
angin
13 years ago
all of the meters work perfect. also move and toggle values menu work fine.
great job...
Report
LdrJagMan
13 years ago
Report
nadab
13 years ago
Report
sick-boy
13 years ago
Traceback (most recent call last):
File "./LiNstaXCPUMeter.py", line 302, in <module>
Events(dirname(__file__)).pause()
File "./LiNstaXCPUMeter.py", line 75, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.5/site-packages/adesklets/events_handler.py", line 158, in __init__
self._alarm()
File "/usr/lib/python2.5/site-packages/adesklets/events_handler.py", line 296, in _alarm
timeout=self.alarm()
File "./LiNstaXCPUMeter.py", line 124, in alarm
self.refreshData()
File "./LiNstaXCPUMeter.py", line 145, in refreshData
self.get_swap_stats()
File "./LiNstaXCPUMeter.py", line 293, in get_swap_stats
self.swap_krell = int(int((stats["total"] - stats["free"])*100)/float(stats["total"]))
ZeroDivisionError: float division
Any idea to resolv this problem?
Anyway, congratulations for your nice aDesklets theme :)
Report
etiennealaurent
13 years ago
I supposed there was always a swap partition in any linux box. Am I wrong ?
Report
sick-boy
13 years ago
Report
etiennealaurent
13 years ago
Add the next line before the line 293 with the good indentation (1 tab, I think) :
print "Total swap :", stats["total"]
Run LiNstaXCPUMeter.py again in a terminal as a test (in the main dir, run ./LiNstaXCPUMeter.py --nautilus if you are in GNOME).
If the swap is detected, you can see your swap size.
Otherwise, there is someting wrong with pystatgrab module.
Please, tell me.
Thank you.
Report
sick-boy
13 years ago
You're right. I had the swap partition but to upgrade to ubuntu gutsy (development version yet) I don't no why but I didn't have configure the fstab to mount the swap at boot the system. I resolved it.
Very thanks for your help. Nice work with this adesklets theme ;)
Report
kaspiterina
13 years ago
I am waiting other adesklets
thank you
Report
LasseP
13 years ago
LiNsta_XCPUMeter$ ./LiNstaXCPUMeter.py
Traceback (most recent call last):
File "./LiNstaXCPUMeter.py", line 7, in <module>
import adesklets
File "/usr/lib/python2.5/site-packages/adesklets/__init__.py", line 30, in <module>
from adesklets.initializer import _Initializer
File "/usr/lib/python2.5/site-packages/adesklets/initializer.py", line 13, in <module>
from children_handler import _Children_handler
File "/usr/lib/python2.5/site-packages/adesklets/children_handler.py", line 5, in <module>
from signal_handler import Signal_handler
File "/usr/lib/python2.5/site-packages/adesklets/signal_handler.py", line 12, in <module>
class Signal_handler:
File "/usr/lib/python2.5/site-packages/adesklets/signal_handler.py", line 20, in Signal_handler
func = posix_signal.signal
AttributeError: 'module' object has no attribute 'signal'
I'm using Ubuntu Gutsy Gibbon amd64 and screenlets 0.0.10-3
any ideas?
thx
Report
etiennealaurent
13 years ago
If adesklets can be installed on any AMD64 distro, with pystatgrab module, then I think you can use LiNsta-XCPUMeter.
Report