Drop-Team / InnoPrintBot

Telegram bot for printing and scanning with printer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InnoPrintBot

Bot for printing and scanning on the public printer of Innopolis University on the 5th floor.

Table of Contents

About

Bot which allows to print and scan with different parameters using the Telegram messenger.

It has ready-to-use components, so it's easy to add functionality.

Screenshot 1 Screenshot 2 Screenshot 3

Used

  • AIOGram as framework for Telegram Bot API
  • FastAPI as Web framework and uvicorn for running it
  • LibreOffice:
    • unoserver for converting documents to PDF using LibreOffice
  • PyPDF4 for reading PDF files
  • Apple CUPS (for printing):
  • eSCL protocol for scanning

Deploy

Environment

  1. Rename .env-example to .env.
  2. Edit it

Printer driver

It is used by CUPS

Edit Printer.ppd if necessary
Now it contains drivers for "Kyocera ECOSYS M3645dn"

Docker

To run use Docker:

docker-compose build
docker-compose -d up  # -d to run in background 
docker-compose ps

About

Telegram bot for printing and scanning with printer

License:GNU General Public License v3.0


Languages

Language:Python 83.6%Language:JavaScript 7.0%Language:HTML 4.9%Language:CSS 3.8%Language:Dockerfile 0.6%Language:Shell 0.1%