Answer the question
In order to leave comments, you need to log in
How to print on a thermal printer (for receipts) from the server automatically?
There is a task: Service (let there be a website) where applications come. After the application is approved by the operator, it is necessary to print the records on a thermal printer (for checks).
The service is located somewhere on the network
The printer is somewhere on a closed network (say in an office) that is connected (perhaps) to a server-local.
The connection between them is considered in the form of a VPN, but at this stage it is not important.
How can this scheme be implemented?
what is known:
- that thermal printers work well on windows
- tools: php, go, bash
Answer the question
In order to leave comments, you need to log in
Like a completely simple bike - just drop checks in files through any convenient way to a folder (Google drive, mail with automatic file extraction, intermediate ftp / ssh server), and on the server within the same subnet with the printer, organize file checks using cron or another convenient daemon in this folder and print receipts from it.
What is a thermal diffuser? Zebra and Intermek, for example, have a very developed language, it is not at all difficult to create a task in the built-in language with a script, and then simply spit it out into the port. without any drivers and other tinsel.
on interaction - I implemented something similar a couple of years ago, where the server with the application created a task for itself, put it in the database (the record had the sign "processed / not processed"), the print server pulled the table with some periodicity if it found an unprocessed entry - printed it and updated the entry. It turned out to be a PULL-mechanism, a print server from a secure network could access a database server in an unsecured one, the reverse was not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question