Re: [Printing-architecture] PAPPL 1.2rc1 (Supply levels)
Till Kamppeter <[email protected]>
| Newsgroups | dev.linux.lists.printing-architecture |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much, Mike!
It works now!
I have done the same implementation as with hp-printer-app in
pappl-retrofit now and I get supply levels! At least if I use one of
PAPPLs own backends (and not embedded CUPS backends) and network printers.
Later on I will see how to do it with the CUPS backends (they are custom
scheme "cups:", any hints welcome) and also whether one can use
hp-levels of HPLIP in the HPLIP Printer Application so that there one
can also get supply levels of USB printers.
https://github.com/OpenPrinting/pappl-retrofit/commit/f5ba4229ddb
Till
On 16/05/2022 16:35, Michael Sweet wrote:
> Till,
>
> The status callback is called as needed, so you basically need to open the printer device, query, and set the supplies from the response. Look at the "pcl_status" code in my hp-printer-app for a complete example:
>
> https://github.com/michaelrsweet/hp-printer-app
>
> You don't need the "dummy" sample values I include in hp-printer-app (it is still mostly sample code, even if people are apparently using it :) - if you don't get a response, just don't set the supplies.
>