Go to file
2024-10-31 21:03:43 +01:00
.gitea/workflows fix tar file name mistake 2024-10-01 13:43:11 +02:00
web new code yay :3 2024-10-31 20:44:19 +01:00
.gitignore Fix .gitignore 2024-09-29 19:33:21 +02:00
eprintcloned new code yay :3 2024-10-31 20:44:19 +01:00
go.mod init 2024-09-29 19:15:37 +02:00
go.sum init 2024-09-29 19:15:37 +02:00
LICENSE add license 2024-10-08 14:08:25 +02:00
main.go add files yay :3 2024-10-31 21:03:43 +01:00
README.md add files yay :3 2024-10-31 21:03:43 +01:00

HP ePrint like service clone (web edition)

This is a HP ePrint clone that has similar functions to normal HP ePrint but its on the web and it is not HP printer specific

Prerequisites

  • Go (1.23.1 or later)

Installation

  1. Clone the repository:

    git clone https://git.fluffy.pw/matu6968/web-hp-eprint-clone
    
  2. Go to the project directory:

    cd web-hp-eprint-clone
    
  3. Build the binary:

    go build -o web-hp-eprint
    

Configuration

In the .env file this is the only thing you can set

PORT=8080
LOG=log # enables file logging (aka copies file to user home directory under the folder imagelog so make a folder first in the home root if you wish to enable it), to disable it replace it with nolog

For this to even work

Setup a printer on your host by connecting it over USB or WiFi and then adding the printer in your OS

and put the eprintcloned script (ePrint clone daemon aka it handles the printing) in the "/usr/bin" folder !IMPORTANT! you need to modify the script to include your printer name (it is at the top and is called printer and not the one used in the included configuration in the repository

for example change it from

#!/bin/bash

printer=examplename # replace this with your actual printer name before putting it into /usr/bin

to

#!/bin/bash

printer=Deskjet-2600 # replace this with your actual printer name before putting it into /usr/bin