Skip to content

Drop-Team/InnoPrintBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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