HTTP printer server in Go for the CR805 Card Printer.
diamondburned adbf5afa34
All checks were successful
Build for Windows/amd64 / build (push) Successful in 3m13s
Add experimental CUPS/IPP support
2025-05-20 03:56:23 -07:00
.forgejo/workflows Remove releasing part 2025-05-17 18:02:53 -07:00
cardprinter Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
frontend Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
internal Rework cardprinter for portability 2025-05-20 01:44:03 -07:00
.editorconfig Add initial frontend draft 2025-05-15 11:31:28 -07:00
.gitignore Add one-off print command 2025-05-15 01:19:15 -07:00
CODEOWNERS Add CODEOWNERS 2025-05-15 21:40:35 -07:00
cups-options.yaml Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
flake.lock Switch flake inputs off github: 2025-05-17 17:55:04 -07:00
flake.nix Switch flake inputs off github: 2025-05-17 17:55:04 -07:00
go.mod Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
go.sum Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
Justfile Experimental printing support 2025-05-16 03:26:42 -07:00
LICENSE.md Add AGPLv3 license 2025-05-15 01:19:57 -07:00
main.go Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
main_unix.go Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
main_windows.go Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
README.md Update README 2025-05-16 23:55:08 -07:00
renovate.json Add renovate.json 2025-05-15 14:32:00 -04:00
routes.go Add experimental CUPS/IPP support 2025-05-20 03:56:23 -07:00
screenshot.png Add README with screenshot 2025-05-16 21:08:27 -07:00

cardprinterd

HTTP printer server in Go for the CR805 Card Printer.

screenshot

Install

To deploy cardprinterd on a Windows machine, NSSM is needed. You also need to run nssm.exe inside an Administrator command prompt to install the service.

First, ensure that you have Go installed or you're in the Nix shell. Then, run the following command to build the binary:

just build

Then, move the file over to the Windows machine. You can use croc or start a file server with caddy for this.

Once it's on the machine, it is recommended to move it into C:\Program Files\cardprinterd along with NSSM:

C:\
    Program Files\
        cardprinterd\
            cardprinterd.exe
            nssm.exe
            stderr.txt

Also make sure you have the LAN IP of the computer. You can obtain this via ipconfig in a Command Prompt.

Then, run the following command to install the service:

.\nssm.exe install cardprinterd

Ensure that the arguments are set like so:

-verbose -host <LAN IP> -port 80

You may optionally include any additional flags here. Check cardprinterd -h for all the possible flags.

Once saved, you can start the service with:

.\nssm.exe start cardprinterd

Updating

When updating, you need to stop the service first:

.\nssm.exe stop cardprinterd

Then, replace the cardprinterd.exe file with the new one. You can do whatever you did when you first installed it. Once it's replaced, you can start the service again:

.\nssm.exe start cardprinterd