./SystemMonitor.py
jas@linux:~/downloads/adesklets/SystemMonitor-0.1.2> ./SystemMonitor.py
Traceback (most recent call last):
File "./SystemMonitor.py", line 986, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 853, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "./SystemMonitor.py", line 898, in ready
self.run_display()
File "./SystemMonitor.py", line 962, in run_display
meter.display()
File "./SystemMonitor.py", line 521, in display
self.update()
File "./SystemMonitor.py", line 547, in update
__krell_value, __text_value = self.getMeterValues()
File "./SystemMonitor.py", line 826, in getMeterValues
krell_value.append(float(partition_stats["used"])/partition_stats["size"])
ZeroDivisionError: float division
id1 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8}),
('MemoryMeter',
{'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8}),
('SwapMeter',
{'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8}),
('NetworkMeter',
{'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskSpaceMeter',
{'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
File "./SystemMonitor.py", line 826, in getMeterValues
krell_value.append(float(partition_stats["used"])/partition_stats["size"])
ZeroDivisionError: float division
Traceback (most recent call last):
File "./SystemMonitor.py", line 986, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 853, in __init__
adesklets.Events_handler.__init__(self)
File "localstore/theorie/arrizaba/lib/python2.3/site-packages/adesklets/events_handler.py", line 157, in __init__ File "./SystemMonitor.py", line 883, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "./SystemMonitor.py", line 585, in create
AbstractMeter.create(self, location, basedir, config_dictionary)
File "./SystemMonitor.py", line 439, in create
self._create_fonts(config_dictionary)
File "./SystemMonitor.py", line 288, in _create_fonts
self._meter_font = adesklets.load_font(self._meter_font_name + "/" + \
File "/localstore/theorie/arrizaba/lib/python2.3/commands.py", line 706, in load_font
File "localstore/theorie/arrizaba/lib/python2.3/site-packages/adesklets/commands_handler.py", line 103, in out
adesklets.error_handler.ADESKLETSError: adesklets command error - font 'VeraBd/8' could not be loaded
Traceback (most recent call last):
File "SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "SystemMonitor.py", line 1004, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "SystemMonitor.py", line 918, in create
info = self.parseFile(self.info_file)
File "SystemMonitor.py", line 899, in parseFile
acpi_file = open(file, "r")
IOError: [Errno 2] No such file or directory: '/proc/acpi/battery/BAT0/info'
id0 = {
'background colour': (210, 210, 210, 130),
'background images': [
'images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'
],
'meters': [
('CPUMeter', {
'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8
}),
('MemoryMeter', {
'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8
}),
('SwapMeter', {
'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8
}),
('NetworkMeter', {
'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4
}),
('DiskIOMeter', {
'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4
}),
('DiskSpaceMeter', {
'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2
})]}
id1 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8}),
('MemoryMeter',
{'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8}),
('SwapMeter',
{'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8}),
('NetworkMeter',
{'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskSpaceMeter',
{'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2}),
],
'text colour': (0, 0, 0, 200),
'update speed': 1}
id20 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 8,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 8}),
('MemoryMeter',
{'horizontal padding': 8,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 8}),
('SwapMeter',
{'horizontal padding': 8,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 8}),
('NetworkMeter',
{'horizontal padding': 8,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 8,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 10240,
'max write speed': 10240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 4})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
id21 = {'background colour': (210, 210, 210, 130),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('DiskSpaceMeter',
{'horizontal padding': 8,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 6,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 2}),
],
'text colour': (0, 0, 0, 200),
'update speed': 1}
cfg_default = {
jon@jon_gentoo ~ $ sensors
def getMeterValues(self):
text_value = '%.1f' % float(file(self.file).read().strip())*1000
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
jon@jon_gentoo ~ $ cat /sys/devices/platform/i2c-0/0-0290/temp3_input
def getMeterValues(self):
read_value = file(self.file).read().strip()
text_value = '%.1f' % float(read_value)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
divide_no = float(1000)
text_value = '%.1f' % (read_value/divide_no)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
def getMeterValues(self):
text_value = '%.1f' % \
(float(file(self.file).read().strip()) / 1000)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
text_value = '%.1f' % (read_value/1000)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
return ['%.1f' % (read_value/1000)], [read_value/self.max_temp]
suffix = chr(176) + "C" print (suffix)
... krell_value = krell_value_before_divide/self.max_temp suffix = chr(176) + "C" text_value = str(text_value_number) + suffix return [krell_value,], [text_value,]
# -*- coding: ISO-8859-1 -*-
...
File "./SystemMonitor.py", line 945, in create
info = self.parseFile(self.info_file)
File "./SystemMonitor.py", line 905, in parseFile
[key, value] = split(":\s+", line)
ValueError: unpack list of wrong size
... battery type: LION OEM info:
#memstat
#return dictionary containing:
#Total, Free, (in) Cache, Buffered
def get():
stats = parse()
stats = int_conv(stats)
stats = mb_conv(stats)
return stats
def int_conv(stats):
for x, y in stats.iteritems():
stats[x] = int(y)
return stats
def mb_conv(stats):
for x, y in stats.iteritems():
stats[x] = y / 1024
return stats
def parse():
raw_stats, stats = dict(), dict()
for x in open('/proc/meminfo').readlines():
if 'MemTotal:' in x:
raw_stats['total'] = x
elif 'MemFree:' in x:
raw_stats['free'] = x
elif 'Cached:' in x and 'Swap' not in x:
raw_stats['cache'] = x
elif 'Buffers:' in x:
raw_stats['buffers'] = x
for index, value in raw_stats.iteritems():
chars, val = list(value), str()
for x in value:
if not x.isdigit():
chars.remove(x)
for x in chars:
val += x
stats[index] = val
return stats
--- SystemMonitor.py.old 2005-10-02 22:28:25.000000000 -0500
+++ SystemMonitor.py 2005-10-01 11:32:14.000000000 -0500
@@ -40,7 +40,7 @@
"""
import adesklets
-import statgrab
+import statgrab, memstat
from os import getenv, system
from os.path import join, dirname
@@ -655,11 +655,15 @@
def getMeterValues(self):
- mem_stats = statgrab.sg_get_mem_stats()
- krell_value = float(mem_stats["total"] - mem_stats["free"] -
- mem_stats["cache"])/float(mem_stats["total"])
- text_value = str(int((mem_stats["free"] + mem_stats["cache"])/(1024.0**2))) + "M Free"
-
+ #mem_stats = statgrab.sg_get_mem_stats()
+ #krell_value = float(mem_stats["total"] - mem_stats["free"] -
+ # mem_stats["cache"])/float(mem_stats["total"])
+ #text_value = str(int((mem_stats["free"] + mem_stats["cache"])/(1024.0**2))) + "M Free"
+ mem_stats = memstat.get()
+ total, free = mem_stats['total'], mem_stats['free']
+ cache, buffers = mem_stats['cache'], mem_stats['buffers']
+ krell_value = float(total - free - cache - buffers) / float(total)
+ text_value = str(int(free + cache + buffers)) + 'M Free'
# assert type(krell_value) is float and \
# krell_value >= 0 and krell_value <= 1
# assert len(text_value) > 1 and len(text_value) <= 12
stijn[SystemMonitor-0.1.3]$ ./SystemMonitor.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'.
============================================================
Traceback (most recent call last):
File "./SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "./SystemMonitor.py", line 1004, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "./SystemMonitor.py", line 918, in create
info = self.parseFile(self.info_file)
File "./SystemMonitor.py", line 899, in parseFile
acpi_file = open(file, "r")
IOError: [Errno 2] No such file or directory: '/proc/acpi/battery/BAT0/info'
stijn[SystemMonitor-0.1.3]$ ./SystemMonitor.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'.
============================================================
Traceback (most recent call last):
File "./SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "./SystemMonitor.py", line 989, in ready
join(self.basedir,'config.txt'))
File "./SystemMonitor.py", line 265, in __init__
adesklets.ConfigFile.__init__(self, identifier, filename)
File "/usr/lib/python2.4/site-packages/adesklets/configfile.py", line 162, in __init__
self._load_and_save()
File "/usr/lib/python2.4/site-packages/adesklets/configfile.py", line 205, in _load_and_save
all= ConfigImport.load(buf[:])
File "/usr/lib/python2.4/site-packages/adesklets/configfile.py", line 41, in __call__
return dict(self._group(
File "/usr/lib/python2.4/compiler/transformer.py", line 52, in parse
return Transformer().parsesuite(buf)
File "/usr/lib/python2.4/compiler/transformer.py", line 129, in parsesuite
return self.transform(parser.suite(text))
File "<string>", line 182
'text colour': (0, 0, 0, 200),
^
SyntaxError: invalid syntax
...
File "./SystemMonitor.py", line 945, in create
info = self.parseFile(self.info_file)
File "./SystemMonitor.py", line 905, in parseFile
[key, value] = split(":\s+", line)
ValueError: unpack list of wrong size
# files in /proc/acpi - provide parsing facilities.
class ACPIMeter (AbstractMeter):
"""Abstract ACPI meter for all ACPI related monitoring"""
def create(self, location, basedir, config_dictionary):
self.file = config_dictionary["file"]
AbstractMeter.create(self, location, basedir, config_dictionary)
def parseFile(self, file):
acpi_data = {}
acpi_file = open(file, "r")
acpi_lines = acpi_file.readlines()
acpi_file.close()
acpi_lines = map(strip, acpi_lines)
for line in acpi_lines:
try:
[key, value] = split(":\s+", line)
acpi_data[key] = value
except ValueError:
acpi_data[key] = 0;
return acpi_data
bash-3.00$ ./SystemMonitor.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'.
============================================================
Traceback (most recent call last):
File "./SystemMonitor.py", line 43, in ?
import statgrab
ImportError: No module named statgrab
bash-3.00$ ls /var/log/packages/ |grep statgrab
libstatgrab-0.13-i386-1
Statgrab-0.5.0
cat config.txt | python
cat config.txt | python
strace -e trace=open sensors
open("/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input", O_RDONLY) = 3
ls -lh /path/to/temp2_input cat /path/to/temp2_input
sensors | sed -n '/Temp/{s/\(.*\)Temp:[[:space:]]*.\([0-9.]*\).*/\1\2/;p}'
ls -lh /path/to/temp2_input cat /path/to/temp2_input
fhier@Orion:~$ ls -lh /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input -r--r--r-- 1 root root 4,0K 2006-07-15 00:04 /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input fhier@Orion:~$ cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/temp2_input 45000 fhier@Orion:~$
('TemperatureMeter',
{'file': '/sys/devices/platform/i2c-9191/9191-0290/temp2_input',
'horizontal padding': 8,
'icon': 'images/icons/temperature.png',
'krell': 'images/shared/krell_red.png',
'max_temp': 100.0,
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update_speed': 30,
'vertical padding': 8})
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
text_value = '%.1f' % (read_value/1000)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
('TemperatureMeter',
{'file': '/sys/devices/platform/i2c-9191/9191-0290/temp2_input',
'horizontal padding': 8,
'icon': 'images/icons/temperature.png',
'krell': 'images/shared/krell_red.png',
'max_temp': 100.0,
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update_speed': 30,
'vertical padding': 8})
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
text_value = '%.1f' % (read_value/1000)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
timor@timor ~ $ ./.desklets/SystemMonitor-0.1.3/SystemMonitor.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'. ============================================================ unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence unpack non-sequence .... many many times...
37000 ....................................................................
cat /sys/devices/platform/i2c-2/2-0290/temp2_input
{'file': '/sys/devices/platform/i2c-2/2-0290/temp2_input',
# get CPU temperature information and display in a meter
class TemperatureMeter (ACPIMeter):
def create(self, location, basedir, config_dictionary):
config_dictionary["base text"] = ("Temperature",)
config_dictionary["value text length"] = (6,)
self.max_temp = config_dictionary["max_temp"]
ACPIMeter.create(self, location, basedir, config_dictionary)
def getMeterValues(self):
read_value = float(file(self.file).read().strip())
divide_no = float(1000)
text_value = '%.1f' % (read_value/divide_no)
krell_value = float(text_value)/self.max_temp
return [krell_value,], [text_value,]
config_dictionary["value text length"] = (6,)
Error. could not find pkg-config
Traceback (most recent call last):
File "./SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "./SystemMonitor.py", line 1004, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "./SystemMonitor.py", line 918, in create
info = self.parseFile(self.info_file)
File "./SystemMonitor.py", line 905, in parseFile
[key, value] = split(":\s+", line)
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "./SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
File "./SystemMonitor.py", line 1004, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "./SystemMonitor.py", line 631, in create
AbstractMeter.create(self, location, basedir, config_dictionary)
File "./SystemMonitor.py", line 480, in create
self._create_fonts(config_dictionary)
File "./SystemMonitor.py", line 329, in _create_fonts
self._meter_font = adesklets.load_font(self._meter_font_name + "/" + \
File "/usr/lib/python2.4/commands.py", line 706, in load_font
File "usr/lib/python2.4/site-packages/adesklets/commands_handler.py", line 103, in out
adesklets.error_handler.ADESKLETSError: adesklets command error - font 'VeraBd/8' could not be loaded
[b]statgrab | grep disk[/b] disk.hda.disk_name = hda disk.hda.read_bytes = 27950580224 disk.hda.systime = 1161161414 disk.hda.write_bytes = 7907446784 disk.hdb.disk_name = hdb disk.hdb.read_bytes = 145823744 disk.hdb.systime = 1161161414 disk.hdb.write_bytes = 8192 disk.hdc.disk_name = hdc disk.hdc.read_bytes = 6483968 disk.hdc.systime = 1161161414 disk.hdc.write_bytes = 0 disk.hdd.disk_name = hdd disk.hdd.read_bytes = 159527936 disk.hdd.systime = 1161161414 disk.hdd.write_bytes = 0
id0 = {'background colour': (220, 220, 220, 80),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('CPUMeter',
{'horizontal padding': 12,
'icon': 'images/icons/cpu.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'vertical padding': 1}),
('MemoryMeter',
{'horizontal padding': 12,
'icon': 'images/icons/memory.png',
'krell': 'images/shared/krell.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 10,
'vertical padding': 2}),
('SwapMeter',
{'horizontal padding': 12,
'icon': 'images/icons/swap.png',
'krell': 'images/shared/krell_blue.png',
'meter font name': 'VeraBd',
'meter font size': 8,
'trough': 'images/shared/trough.png',
'update speed': 30,
'vertical padding': 2}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 12,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 35240,
'max write speed': 35240,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 2}),
('DiskIOMeter',
{'disk name': 'hda',
'horizontal padding': 12,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 3524,
'max write speed': 3524,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 2}),
('DiskIOMeter',
{'disk name': 'hdd',
'horizontal padding': 12,
'icon': 'images/icons/disk.png',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max read speed': 3524,
'max write speed': 3524,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 2}),
('DiskSpaceMeter',
{'horizontal padding': 12,
'icon': 'images/icons/diskfree.png',
'krell': 'images/shared/krell_blue_small.png',
'meter font name': 'Vera',
'meter font size': 9,
'trough': 'images/shared/trough_small.png',
'update speed': 60,
'vertical padding': 3})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
id1 = {'background colour': (210, 210, 210, 150),
'background images': ['images/shared/bg_top.png',
'images/shared/bg_middle.png',
'images/shared/bg_bottom.png'],
'meters': [('NetworkMeter',
{'horizontal padding': 10,
'icon': 'images/icons/network.png',
'interface name': 'eth0',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 1}),
('NetworkMeter',
{'horizontal padding': 10,
'icon': 'images/icons/network.png',
'interface name': 'eth1',
'krell': ['images/shared/krell_green_small.png',
'images/shared/krell_red_small.png'],
'max down speed': 400,
'max up speed': 80,
'meter font name': 'Vera',
'meter font size': 7,
'trough': 'images/shared/trough_small.png',
'update speed': 2,
'vertical padding': 1})],
'text colour': (0, 0, 0, 200),
'update speed': 1}
Traceback (most recent call last):
File "./SystemMonitor.py", line 43, in ?
import statgrab
File "/usr/lib/python2.4/site-packages/statgrab.py", line 23, in ?
import _statgrab
ImportError: libstatgrab.so.6: cannot open shared object file: No such file or directory
sam@sam-kubuntu:~/.desklets/SystemMonitor-0.1.3$
sam@sam-kubuntu:~/.desklets/SystemMonitor-0.1.3$ whereis libstatgrab.so.6
libstatgrab.so: /usr/local/lib/libstatgrab.so.6 /usr/local/lib/libstatgrab.so
Traceback (most recent call last):
File "/home/falky/.desklets/SystemMonitor-0.1.3/SystemMonitor.py", line 42, in ?
import adesklets
File "usr/local/lib/python2.3/site-packages/adesklets/__init__.py", line 43, in ?
adesklets.error_handler.ADESKLETSError: adesklets process exited -
Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0xb7ee664c> in <bound method _Communicator.__del__ of <adesklets.communicator._Communicator instance at 0xb7c1132c>> ignored
Traceback (most recent call last):
File "./SystemMonitor.py", line 1107, in ?
EventHandler(dirname(__file__)).pause()
File "./SystemMonitor.py", line 974, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157, in __init__
self.ready()
File "./SystemMonitor.py", line 1004, in ready
self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
File "./SystemMonitor.py", line 918, in create
info = self.parseFile(self.info_file)
File "./SystemMonitor.py", line 899, in parseFile
acpi_file = open(file, "r")
IOError: [Errno 2] No such file or directory: '/proc/acpi/battery/BAT0/info'