Ink Level Monitor
Karamba
Description:

It's an ink level monitor for Cynapses theme ( http://www.kde-look.org/content/show.php?content=11405)
This is my first karamba theme and this is my first python script too....

13/03/2005: Added an ink level idea for Liquid theme provided by Alessandro Sturniolo.

Requirements:
- libinklevel library from: http://libinklevel.sourceforge.net/
(please download 0.6.4 stable version)

- ink command line tool from:
http://ink.sourceforge.net/

Supported Printers:

EPSON:
# Epson Stylus C42
# Epson Stylus C60
# Epson Stylus C62
# Epson Stylus C64
# Epson Stylus C70
# Epson Stylus C82
# Epson Stylus C84
# Epson Stylus C86
# Epson Stylus CX5400
# Epson Stylus Color 600
# Epson Stylus Color 640
# Epson Stylus Color 670
# Epson Stylus Color 740
# Epson Stylus Color 850
# Epson Stylus Photo 780
# Epson Stylus Photo 790
# Epson Stylus Photo 810
# Epson Stylus Photo 820
# Epson Stylus Photo 830
# Epson Stylus Photo 890
# Epson Stylus Photo 915
# Epson Stylus Photo 2100
# Epson Stylus Photo R300

HP:
# HP Business InkJet 1100
# HP DeskJet 920C
# HP DeskJet 930C
# HP DeskJet 940C
# HP DeskJet 950C
# HP DeskJet 960C
# HP DeskJet 970C
# HP DeskJet 980C
# HP DeskJet 990C
# HP DeskJet 3320
# HP DeskJet 3325
# HP DeskJet 3550
# HP DeskJet 3650
# HP DeskJet 3820
# HP DeskJet 5150
# HP DeskJet 5550
# HP DeskJet 5650
# HP DeskJet 5652
# HP DeskJet 5740
# HP DeskJet 6122
# HP DeskJet 6520
# HP DeskJet 9300
# HP DeskJet 9600
# HP OfficeJet 4100 Series
# HP OfficeJet 5100 Series
# HP OfficeJet G Series
# HP OfficeJet K Series
# HP OfficeJet V Series
# HP PhotoSmart 1000
# HP PhotoSmart 1100
# HP PhotoSmart 1115
# HP PhotoSmart 1218
# HP PhotoSmart 1315
# HP PhotoSmart 7150
# HP PhotoSmart 7260
# HP PhotoSmart 7345
# HP PhotoSmart 7350
# HP PhotoSmart 7760
# HP PSC 700 Series
# HP PSC 900 Series
# HP PSC 1100 Series
# HP PSC 1200 Series
# HP PSC 1315 Series
# HP PSC 2110 Series
# HP PSC 2150 Series
# HP PSC 2175 Series
# HP PSC 2200 Series
# HP PSC 6100 Series


Sorry for my bad and poor english

Changelog:

12 years ago

version 0.7 (14-02-2005)

- Added "low level" messages and arrow images when pass mouse over cartridges

---------------------------


version 0.6 (10-02-2005):

- rewritten python source code
- All printers in http://libinklevel.sourceforge.net/index.html#supported
are supported.

----------------------------
version 0.1 (09-02-2005):

- first version.
- It's for 4-cartridge printers only for now.

Firari

11 years ago

You can use the libinklevel python binding which can be found in http://www.python.org/pypi?:action=display&name=pyinklevel
so you wil not need ink command line utility.

Report

adalbertus

12 years ago

Hi!
I have HP 920c on usb#0. When i type "ink -p usb" nothings happends :( It's no community with my printer and I can't read my ink level. I installed all tools which are needed to this thames.
PS. Sorry for my english, but i didn't used this language very long.

Report

Praxxus

12 years ago

This beats the hell out of the crappy old ink monitor theme I kludged together for Karamba 0.17, back in the day! I just went digging for it in the archives and it's still there, but I released it before there was even a "Karamba" section on kde-look. It sucked. *heh*

Yours is much, much better. I think I'll get it set up when I get home, and keep tabs on the ol' C62.

Great job!

Report

jimbox

12 years ago

i love you. no really, i love you. monitoring my ink levels has been one thing i really missed since completely abandoning M$... but not anymore! i couldnt be more happy.

also- if you'd like to add it to your list- i got this working with my Epson CX3200 (which i understand has the same print engine as a C60 or maybe it's C62 ??)

BUT... i had to edit my command line in the script to read:

command="ink -p usb | tail -8"

i installed ink-0.3/libink-0.6.4rc2 which were the most current at my install time (2005-03-18)- so i dont know how if that changed dependencies of your script.

when i run ink- it spews considerable info (lots of numbers) before getting to the ink levels which are the last dozen lines or so. i just fiddled until i got those last few lines to match up with what your script expects... and Wa-La.

thanks!

Report

Taita

12 years ago

Thanks for the useful Karamba:) My printer is an Epson Stylus Color 680 and it works fine with it. Note that in the US the same model is called an Epson Stylus Color 777 so that should work OK too.

Report

cjcox

12 years ago

Found a solution. I changed the line in creaBarra to:

bar[i] = karamba.createBar(widget, x, 70, 9, 40, "img/cartuccia.png") #gli ultimi tre valori:70, 9, 40 non variano

Basically adds an extra parameter containing the string path to the image.

Report

pakistano

12 years ago

many thanks.

Report

cjcox

12 years ago

I get a SEGV. ink -p usb works and gives:
$ ink -p usb
ink v0.3 (c) 2003 Markus Heinz

EPSON Stylus C84

Black: 49%
Cyan: 80%
Magenta: 38%
Yellow: 69%

But when I use SuperKaramba .35, I get a SEGV... the KDE traceback says it is dying in py_createBar.

Full stacktrace:
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1095473568 (LWP 9122)]
[KCrash handler]
#7 0x080a6627 in py_createBar ()
#8 0x08142893 in PyCFunction_Call ()
#9 0x08101122 in Py_MakePendingCalls ()
#10 0x08102300 in Py_MakePendingCalls ()
#11 0x0810299e in PyEval_EvalCodeEx ()
#12 0x0814192a in _PyFrame_Init ()
#13 0x080b8fb7 in PyObject_Call ()
#14 0x080fca88 in PyEval_CallObjectWithKeywords ()
#15 0x080b9b4a in PyObject_CallObject ()
#16 0x080b1057 in KarambaPython::callObject ()
#17 0x080b1671 in KarambaPython::initWidget ()
#18 0x08079f4a in karamba::step ()
#19 0x08081edd in karamba::qt_invoke ()
#20 0x40bc70ee in QObject::activate_signal ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40f171e2 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40be4623 in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40bebf03 in QSingleShotTimer::event ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40b6485f in QApplication::internalNotify ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40b66423 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x407faa91 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#27 0x40b5900c in QEventLoop::activateTimers ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40b11f56 in QEventLoop::processEvents ()
from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40b7c7b1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40b7c5f6 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40b662ef in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x080782ff in main ()

Report

krionius

12 years ago

great stuff... ill try it home. :)

Report

dalore

12 years ago

How can you get the Ink level from Epson C64? I've the same printer and when i type "ink -p usb" i only get "Could not parse response from printer".

Report

inthehills

12 years ago

It would be awesome if you could do the same for a 6 cartridge printer such as the Epson R200.

Report

pakistano

12 years ago

I working for all printers supported by libinklevel library and ink command tool...
check for your printer in
http://libinklevel.sourceforge.net/index.html#supported

Report

Halcyon-X

12 years ago

This is a great app, Linux needs more helpful end-user applications such as this. Good job :)

A KDE or Gnome applet of the same concept would be very useful too.

Report

theobroma

12 years ago

I agree. Please make this an applet for the kicker!

Report

PLowran

12 years ago

Do you have to have the ink level monitor on there?? I just want the system monitor, also yould it notice both processors?

Report

Hintzy

12 years ago

If I'm not mistaken, that system monitor is the Cynapses theme: http://www.kde-look.org/content/show.php?content=11405

The ink level monitor theme is simply positioned at the bottom of the system monitor theme.

Report

Supporters

Recent Donations

Be the first to donate
Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 63%
63.00 Likes
37 Dislikes

0 Supporters for Ink Level Monitor:

Recent Donations:

Be the first to donate
show all
Details
version
0.7
updated Mar 18 2005
added Feb 09 2005
downloads
page views 560
support pakistano
For The Product
Ink Level Monitor
5 - 10 - 25 - 50 - 100 - 200 - 500