InkGUI v0.1 - A little program to check printer ink level.

Problems and successes with specific brands/models of printers
Message
Author
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

InkGUI v0.1 - A little program to check printer ink level.

#1 Post by JB4x4 »

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: Select all

#!/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. :)
Attachments
inkgui.png
(23.3 KiB) Downloaded 4131 times
inkgui-0.1.pet
(45.72 KiB) Downloaded 2305 times

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#2 Post by Dingo »

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

dokupuppylinux.info/programs:printers_utilities
Last edited by Dingo on Fri 14 Mar 2014, 15:21, edited 2 times in total.
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

koolie
Posts: 518
Joined: Mon 12 Mar 2007, 06:38

#3 Post by koolie »

Lovely!

Works fine on 2.17.1 with HP AllInOne.

Should be included in Puppy distro.

canin
Posts: 22
Joined: Sun 08 Apr 2012, 13:31

perfect

#4 Post by canin »

was looking for an easy way to install or compile hp-levels puppylinux saluki, but i failed miserably: found this...
:-)
inkgui works out of the box and flawlessly on a 5 colourcartridge photosmart printer
thx for this 2012!
:D
Attachments
hp-photosmart_d6160.png
screenshot of the inkgui
(12.36 KiB) Downloaded 4213 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post by rcrsn51 »

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.
Attachments
inkgui-0.3.pet
Updated 2017-02-16
(24.62 KiB) Downloaded 765 times
inkgui-0.2.pet
Updated 2012-05-11
Better display of multiple printers
(27.33 KiB) Downloaded 2218 times
Last edited by rcrsn51 on Thu 16 Feb 2017, 13:42, edited 2 times in total.

fixit

Feedback for Canon MG 2220

#6 Post by fixit »

Just some feedback

It does not work for my MG 2220.

I shows 0 % when the cartridge is full.

Andy

OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

Sharing a little tweak

#7 Post by OverDrive »

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: Select all

#!/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!!!

OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

#8 Post by OverDrive »

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

OverDrive
Instant Puppy Fan!!!

Antipodal
Posts: 253
Joined: Thu 26 Mar 2009, 16:52
Location: The other side of the world

I will need your help

#9 Post by Antipodal »

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!! :)

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! :!:
I have been searching but couldn't find them
Posting from a P4 3Ghz_ASUS P5G41T-M LX3_2G RAM_DVD Write desktop with no internal HDD
Saving my stuff on flash sticks and in external USB HDD

Antipodal
Posts: 253
Joined: Thu 26 Mar 2009, 16:52
Location: The other side of the world

InkGUI v0.1 - A little program to check printer ink level.

#10 Post by Antipodal »

Wow!! :o
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. :D

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#11 Post by PaulR »

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: Select all

EPSON Stylus SX200

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

Paul

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#12 Post by rcrsn51 »

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?

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#13 Post by PaulR »

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

Paul.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

I ran "escputil -M" in Slacko 56 and it claims to support your Stylus SX200.

Illutorium
Posts: 170
Joined: Wed 06 Aug 2014, 07:12

InkGUI v0.31

#15 Post by Illutorium »

Version: v0.3.1 (OverDrive's Tweak with Newest Library)
Type of OS: Trusty Tahr|PAE Build
Attachments
inkgui-v0.3.1-i686.pet
(25.12 KiB) Downloaded 715 times
Last edited by Illutorium on Tue 27 Sep 2016, 22:25, edited 1 time in total.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

Yeah, but is the old version still accurate?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Illutorium
Posts: 170
Joined: Wed 06 Aug 2014, 07:12

#17 Post by Illutorium »

Semme wrote:Yeah, but is the old version still accurate?
Of course,because I had a problem with Tweaked GUI from OverDrive... (Not detected at GUI,but in Library can be detects fine.)
When can be replace if be at oldest version (GUI) doesn't be had problems anyway...

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#18 Post by Semme »

Your lingo's tough to decipher. Your native tongue?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Network printer version?

#19 Post by davids45 »

G'day,

Is there an inkgui or similar useful application that will report the ink level in an inkjet printer that is on a home network?

I can get the ink levels for my networked Epson multifunction printer if also I plug it into a USB cable but it's 'Printer not found' when unplugged.

I've just replaced my (broken :( ) cheap XP-200 with an even cheaper WF-2510 ($29! Who said there's no Santa Claus! :D ) and both were/are fine with the usb-connected inkgui program, but not if just WiFi-ed as network printers.

I don't know if the IP address would be important. My new Epson has been set-up on my network with the same static IP address that the broken printer had been happy with, so the software changeover is being fairly simple, if tedious, across my too-many Pups.

Thanks for any advice.

David S.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

WF-2510
This printer has an LCD control panel, does it not?

Does it not show the ink levels?

Post Reply