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 Mon 24 Nov 2014, 05:42
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 [14 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   2403 Time(s)

inkgui.png

inkgui-0.1.pet
Description 
pet

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


Joined: 11 Dec 2007
Posts: 1423
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: 23

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   2494 Time(s)

hp-photosmart_d6160.png

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


Joined: 05 Sep 2006
Posts: 9259
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  1015 Time(s) 
Back to top
View user's profile Send private message 
fixit

Joined: 16 Mar 2013
Posts: 930
Location: El Lago, Texas

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: 165
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: 165
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 
Antipodal

Joined: 26 Mar 2009
Posts: 142
Location: The other side of the world

PostPosted: Tue 19 Aug 2014, 17:30    Post subject: I will need your help
Subject description: Just discovered this thread.
 

About an hour ago I posted a message at http://www.murga-linux.com/puppy/viewtopic.php?t=95347 that is related with this subject

Sorry. for not having discovered this thread before.
I will try to study it but because I have no knowledge about scripting I will be surely asking for your help soon.

Thank you for having created this thread!! Smile

P.S:
JB4x4 wrote:
Here is a GUI to check the ink level of your printer.
If text-based/command line resources are available and are easier to carry out please let me know! Exclamation
I have been searching but couldn't find them

_________________
Slacko 533 Live CD_P4 3Ghz_ASUS P5G41T-M LX3_2G RAM_DVD Write
No internal HDD
Never save files related to Puppy's configuration
Sometimes save personal stuff on small vfat flash sticks or access via USB data on old big internal NTFS formated SATA HDD
Back to top
View user's profile Send private message 
Antipodal

Joined: 26 Mar 2009
Posts: 142
Location: The other side of the world

PostPosted: Wed 20 Aug 2014, 00:33    Post subject:  InkGUI v0.1 - A little program to check printer ink level.
Subject description: Very easy to put into action. It seems to work perfectly
 

Wow!! Surprised
My problem was solved in a simpler way than the one I had imagined!!
After reading JB4x4's first post and visiting some of the links he posted, I thought that because my knowledge about scripting was practically nil, I would never make it without asking a lot of questions and begging for help.
So I decided to browse through the rest of the messages to get an idea of the number of questions I would have to make and the number of times I would have to call for help.
In doing so I came upon rcrsn51's message and attachment.
I curiously clicked on the attachment and 5 minutes later I had inkGUI working perfectly.
Thank you rcrsn51!!. My problem is solved. Very Happy
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 248
Location: UK

PostPosted: Wed 05 Nov 2014, 13:05    Post subject:  

A rather large bump, but does anyone have an idea why libinklevel always reports over 100% for my Epson sx205?

It needs one or more cartridges replacing at present (so I can't print) but the output is:

Code:

EPSON Stylus SX200

Cyan:                         105%
Magenta:                      105%
Yellow:                       119%
Photoblack:                   105%


Thanks,

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


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

PostPosted: Thu 06 Nov 2014, 09:13    Post subject:  

PaulR wrote:
A rather large bump, but does anyone have an idea why libinklevel always reports over 100% for my Epson sx205?

I made the same observation about Epson printers here.

Have you tried the other Epson maintenance tool - escputil?
Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 248
Location: UK

PostPosted: Fri 07 Nov 2014, 16:19    Post subject:  

Thanks for the reply. I've tried escputil in the past with no success but I'll give it another whirl.

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


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

PostPosted: Fri 07 Nov 2014, 16:53    Post subject:  

I ran "escputil -M" in Slacko 56 and it claims to support your Stylus SX200.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 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.0890s ][ Queries: 13 (0.0102s) ][ GZIP on ]