Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 16 Apr 2014, 17:50
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
InkGUI v0.1 - A little program to check printer ink level.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
JB4x4

Joined: 30 Jul 2006
Posts: 256

PostPosted: Sat 16 Feb 2008, 15:01    Post subject:  InkGUI v0.1 - A little program to check printer ink level.  

Here is a GUI to check the ink level of your printer. By default it looks for a printer plugged into the usb port, but this can be easily changed (see below)

This is based on two programs (included):

Ink - http://ink.sourceforge.net/
Libinklevel - http://libinklevel.sourceforge.net/ (supported/unsupported printers listed here)

To have the script look at the parallel port open /usr/bin/inkgui in a text editor and change "usb" to "parport"

Code:
#!/bin/sh
# Program to display inklevel
ink -p usb > /tmp/inklevel
gxmessage -file /tmp/inklevel -title "Ink Level"
rm /tmp/inklevel


More options can be found by running the command "ink" from the command line.

There is a menu entry under "System" called "InkGUI"

JB

P.S. There are probably better ways to do this so input is welcome. Smile
inkgui.png
 Description   
 Filesize   23.3 KB
 Viewed   1528 Time(s)

inkgui.png

inkgui-0.1.pet
Description 
pet

 Download 
Filename  inkgui-0.1.pet 
Filesize  45.72 KB 
Downloaded  1023 Time(s) 
Back to top
View user's profile Send private message Yahoo Messenger 
Dingo


Joined: 11 Dec 2007
Posts: 1411
Location: somewhere at the end of rainbow...

PostPosted: Sat 16 Feb 2008, 15:45    Post subject:  

Good for all non epson printers users (they have already a utility escpgui, other now also have, thanks to you) mirrored on dokupuppy:

[url]dokupuppylinux.info/programs:printers_utilities[/url]

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

Last edited by Dingo on Fri 14 Mar 2014, 11:21; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
koolie

Joined: 12 Mar 2007
Posts: 556

PostPosted: Tue 14 Oct 2008, 21:44    Post subject:  

Lovely!

Works fine on 2.17.1 with HP AllInOne.

Should be included in Puppy distro.
Back to top
View user's profile Send private message 
canin

Joined: 08 Apr 2012
Posts: 13

PostPosted: Sun 08 Apr 2012, 09:38    Post subject: perfect  

was looking for an easy way to install or compile hp-levels puppylinux saluki, but i failed miserably: found this...
Smile
inkgui works out of the box and flawlessly on a 5 colourcartridge photosmart printer
thx for this 2012!
Very Happy
hp-photosmart_d6160.png
 Description   screenshot of the inkgui
 Filesize   12.36 KB
 Viewed   1411 Time(s)

hp-photosmart_d6160.png

Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8547
Location: Stratford, Ontario

PostPosted: Thu 10 May 2012, 09:56    Post subject:  

I have updated InkGUI to the most recent (2010) version. Look for its menu entry under System Status and Config.

It will now check for multiple USB printers and parallel printers.

In my tests, it works well with HP, Canon and older Epson printers. New Epson printers report ink levels of 105%. It doesn't work with Brother printers.

For another Epson maintenance tool, read here.
inkgui-0.2.pet
Description  Updated 2012-05-11
Better display of multiple printers
pet

 Download 
Filename  inkgui-0.2.pet 
Filesize  27.33 KB 
Downloaded  831 Time(s) 
Back to top
View user's profile Send private message 
fixit


Joined: 16 Mar 2013
Posts: 398

PostPosted: Fri 31 Jan 2014, 16:09    Post subject: Feedback for Canon MG 2220  

Just some feedback

It does not work for my MG 2220.

I shows 0 % when the cartridge is full.

Andy
Back to top
View user's profile Send private message 
OverDrive

Joined: 02 Jan 2006
Posts: 151
Location: Cleveland, OHIO,USA

PostPosted: Fri 14 Mar 2014, 09:30    Post subject: Sharing a little tweak  

Hi rcrsn51,

Thank you for this handy utility.

I was noticing on my Epson that it would take some time to respond back to the script so the script would just pop up a "no printers found" message instead.

I would have to click the inkgui a few interations before It would give a message with the ink levels. After adding a "sleep 3" delay, It started to work more reliably.

To make sure the user knows to wait a few seconds I also popped up a initial "Checking Ink Levels" message first.

Here is the tweaked script for your reference. I added comments where I made the tweaks.

Code:

#!/bin/sh
# Program to display printer ink levels
# v01 by JB4x4 2008-02-16
# v02 by rcrsn51 2012-05-10

#--- message displayed while script runs---
gxmessage -center $noborder -buttons "" -bg lightblue "  Checking Ink Levels" &
pid=$!

rm -f /tmp/inklevel.txt

for P in `ls /dev/usb/lp*`; do
  ink -d $P > /tmp/inktemp.txt
  if [ $? -eq 0 ]; then
    cat /tmp/inktemp.txt >> /tmp/inklevel.txt
    echo >> /tmp/inklevel.txt
  fi
done

ink -p parport > /tmp/inktemp.txt
if [ $? -eq 0 ]; then
  cat /tmp/inktemp.txt >> /tmp/inklevel.txt
fi

# wait for response from printer before displaying
sleep 3

# delete the first message
kill $pid

[ -f /tmp/inklevel.txt ] || echo "No printers found" >  /tmp/inklevel.txt

# Center message
gxmessage -center -file /tmp/inklevel.txt -title "InkGUI"



All the Best

OverDrive

_________________
Instant Puppy Fan!!!
Back to top
View user's profile Send private message 
OverDrive

Joined: 02 Jan 2006
Posts: 151
Location: Cleveland, OHIO,USA

PostPosted: Fri 14 Mar 2014, 09:35    Post subject:  

BTW, For anyone else looking at this tweak. This is for the inkgui script located in /usr/local/bin/

OverDrive

_________________
Instant Puppy Fan!!!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0587s ][ Queries: 13 (0.0073s) ][ GZIP on ]