Skip to main content

Communication package for Epson Workforce printer

Project description

epsonprinter-api

This package can be used to scrape the ink levels from your Epson Workforce printer.

Usage:

Connection

Create the API object with the IP address of the printer, on connect the values are fetched from the printer. The protocol can be http or https. The default is http. We can verify (or not) the ssl certificate chain if the protocol is not http if we define the verify_ssl paramter.

api = EpsonPrinterAPI(<IP>, [[protocol={"http"|"https"}, [verify_ssl={False|True}]])

Fetches the latest values from the printer

Update values

api.update()

Get actual values

#regular colours
photoblack = api.getSensorValue("photoblack")
black = api.getSensorValue("black")
magenta = api.getSensorValue("magenta")
cyan = api.getSensorValue("cyan")
yellow = api.getSensorValue("yellow")

# Cleaning cardridge
clean = api.getSensorValue("clean")

Acknowledgments

Below are a list of resources that I used to assist with this project.

  • This api wouldn't exist without the original author ThaStealth

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epsonprinter-api-1.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epsonprinter_api-1.0.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file epsonprinter-api-1.0.1.tar.gz.

File metadata

  • Download URL: epsonprinter-api-1.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for epsonprinter-api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 69eabe95a7a86f9dfccab06063b56c2daaae9c999108e17fc865407f1d09d00f
MD5 4b83a258aecc8d3a5fcf95e37fc01720
BLAKE2b-256 e28fae639fc354bee06323e60a37c82a514f05f1fdb21657d3373cece4697f7f

See more details on using hashes here.

File details

Details for the file epsonprinter_api-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for epsonprinter_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c80f1393f623d540b1b31351aa2df1fa7e1d3e7e06119005ae883a95dd2d66f
MD5 6053b37822fd12339b5ec2715d42428d
BLAKE2b-256 a58d6048959197646bd6f9894d021c2839072aefde978a8e03e0277e71266d70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page