Main index > About existing desklets > acpumon

By ZeroDivide (Desklet Author), on Tue Mar 15 14:03:37 2005: acpumon.

This is the place to post about the acpumon desklet.

By syfou (Core Developer & Desklet Author), on Tue Mar 15 15:36:10 2005.

I noticed I often get this kind of error trace when dynamically resizing the boders using any item of your Configure>BorderToggle context submenu:

Code:


 File "acpumon.py", line 381, in menu_fire
    self.reload_border()
  File "acpumon.py", line 328, in reload_border
    adesklets.window_set_background_image(self.background)
  File "/usr/lib/python2.4/commands.py", line 1487, in window_set_background_image
    
  File "usr/lib/python2.4/site-packages/adesklets/commands_handler.py", line 103, in out
adesklets.error_handler.ADESKLETSError: adesklets command error - incorrect dimensions image



Do you experience similar problems?

By ZeroDivide (Desklet Author), on Tue Mar 15 16:08:57 2005.

I have seen this error in the past when I set the background to an image of the wrong size. I fixed that ( at least I thought I did ) and haven't seen it since. This was all done before the 0.1.0 release.

I'm a little confused by this error, and can't seem to reproduce it.
The background image and window size are set using the same variables.

Code:

        # Set the window property
   adesklets.window_resize(self.w,self.h)
        
        # create alternate background
        self.background=adesklets.create_image(self.w,self.h)
        adesklets.window_set_background_image(self.background)



The only thing I can think of is that maybe self.w and self.h are somehow set as floating point, but I just checked and that didn't pan out.

Could you send me a copy of your config so I can try to reproduce the error?

Thanks

By syfou (Core Developer & Desklet Author), on Tue Mar 15 16:17:43 2005.

I am affraid it will not be enough. It happens systematically on both python 2.3.4 (final) and python 2.4.0 on a fresh install of acpumon when I select the Configure>BorderToggle>Left twice (default configuration).

Since I am on holiday this week, I can set up something more usefull for you: i'lll contact you by email soon. Regards,

By CitizenX (Themer / Graphic Artist), on Tue Mar 15 20:00:58 2005: Graphics.

Referenced from "Graphics Anyone?"


I'd be happy to work on new images...I've already got a new cpu icon:

Golden CPU: (modelled after my Athlon chip in need of a new mobo :( )

http://home.comcast.net/~iibagod/cpushiny.png


I haven't gotten acpumon working on my system yet (some python module or some other weird thing you've coded in :wink: ) so I can't see how all the images work together. Once I get it up, I'll be able to see everything as a whole and come up with an overall concept. Thats the hardest part. I'll keep you updated.

As always, if there are any ideas from anyone, pass em along...

By ZeroDivide (Desklet Author), on Tue Mar 15 20:55:03 2005.

that looks very slick :D

If you want an example of how the theme works, I can email you a gimp file with a few comments in it. Its not really complicated but could save you some time.

CitizenX wrote:

I haven't gotten acpumon working on my system yet (some python module or some other weird thing you've coded in :wink: )

acpumon requires libstatgrab and pystatgrab, they are both very small, and ill be using them for some other desklets I plan to make.
you can grab the packages here: http://www.i-scream.org/

By CitizenX (Themer / Graphic Artist), on Tue Mar 15 21:21:18 2005.

just emerged it....got it up and working. Now I'll have to take a look around and see what comes to mind. I'll let ya know when I have something.

By jeepston (Desklet Author), on Tue Mar 15 21:54:33 2005.

Code:

$ ./acpumon.py 
Traceback (most recent call last):
  File "./acpumon.py", line 39, in ?
    import statgrab
ImportError: No module named statgrab


Where I can get that module? Didn't find it in the rpm repositories for FC3 (using Synaptic)

By ZeroDivide (Desklet Author), on Tue Mar 15 22:17:38 2005.

jeepston,

acpumon requires libstatgrab and pystatgrab to run.
I don't use fc3 and a quick look for an rpm didn't turn up anything, but you can grab the source here: http://www.i-scream.org/

By CitizenX (Themer / Graphic Artist), on Tue Mar 15 23:11:31 2005.

that's why you need Gentoo ;)

By CitizenX (Themer / Graphic Artist), on Wed Mar 16 22:36:26 2005.

Got some artwork for ya...

Since each aspect of the desklet is configurable there isnt a skinning process per se...but I've got a few themes with my new artwork.


Gallium:
http://home.comcast.net/~iibagod/Gallium.png

I noticed that my first theme is almost always gold.....what's up with that?

AuralBlue
http://home.comcast.net/~iibagod/AuralBlue.png

Using the transparency and tint along with blue icon and new gauge. This looks good over a dark desktop as well.

ElectricGreen
http://home.comcast.net/~iibagod/ElectricGreen.png

With a slight modification I could make this HeartMonitorGreen...;)

It would be a nice modification if we could specify theme files in the config file...then we could come up with some really nice themes and share them.

This looks like a good start on a suite of system monitors....are there any on the way? I'd like to see about getting a process monitor (similar to top or ps) up there...thats another torsmo I could get rid of.

These are just my first few attempts, made so I could have something to work off of...I think they're functional at the least so I have no problem sharing. Constructive criticism is very much welcomed. And as always, if anyone has some ideas....let me know.

By ZeroDivide (Desklet Author), on Thu Mar 17 00:59:23 2005.

Looks good so far CitizenX. I like the way you made the gauge for the ElectricGreen theme. Did you take a look at how the borders are setup yet? You can do some cool things by changing the border like sinking the desklet into the desktop instead of having it pop out.

Quote:

It would be a nice modification if we could specify theme files in the config file...then we could come up with some really nice themes and share them.

Thats a good idea. I think something like this might be in the works already, so im going to wait a bit and see what happens. Either way, I would like to swap out the default theme for one of your originals.

Quote:

This looks like a good start on a suite of system monitors....are there any on the way?

Yes.. I plan on making a few more monitors ( network, ram, disk ) but I want to clean up the code im using now first. I haven't thought about a process monitor yet but it should be doable.

Quote:

Constructive criticism is very much welcomed. And as always, if anyone has some ideas....let me know.

The only thing would suggest is to play around with the border a bit.

I really like the look of your cpu icon, other than maybe some tinting ( like you've already done) to match the theme, its perfect.
Keep up the good work, and if you want help with the border let me know and i'll email you an example.

By Karol (User), on Wed Apr 19 09:11:09 2006.

Code:

bash-3.00$ ./acpumon.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'.
============================================================
ERROR: **** You are missing the pystatgrab module
       **** Read the README file for dependency information
Zakończony
bash-3.00$ cd /usr/local/src/pystatgrab-0.4
bash-3.00$ ./setup.py 
Error, libstatgrab is not installed (according to pkg-config).
bash-3.00$ ls /var/log/packages/ |grep statgrab
libstatgrab-0.13-i386-1
Statgrab-0.5.0


any ideas?

By ZeroDivide (Desklet Author), on Wed Apr 19 12:02:53 2006.

It sounds like libstatgrab wasn't installed properly.

I'm using libstatgrab-0.12 and pystatgrab-0.4, ill try upgrading to libstatgrab-0.13 to see what happens.

By Karol (User), on Wed Apr 19 14:39:46 2006.

I have it :) EOT


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.