Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket printing #10

Open
akx opened this issue Jun 11, 2018 · 0 comments
Open

Ticket printing #10

akx opened this issue Jun 11, 2018 · 0 comments

Comments

@akx
Copy link
Member

akx commented Jun 11, 2018

Here are some random thoughts about physical ticket printing:

  • Tickets reserved via Paikkala could be physically printed, e.g. with a thermal printer.
  • This happens in exchange for the ticket's code, so the flow is
    • the reserver reserves an e-ticket
    • the reserver ambulates up to a ticket printing terminal
    • the reserver types in the code
    • the terminal prints the ticket and marks the ticket printed
  • Printed tickets can not be used as e-tickets (so a status field is required).

Thoughts on the thermal printing bit:

  • Thermal printers are relatively easy to control over USB/RS232 using the ESC/POS protocol, see e.g. https://mitxela.com/projects/thermal_paper_polaroid and https://gist.github.com/scruss/36c31a9b653779b2b7d1 and so on
  • However, hooking this up to the Paikkala web UI needs a local server on the ticket printing terminal. I'm thinking something like a simple Node.js thingamajig with CORS turned all the way permissive, so the web UI will just do something like POST http://localhost:28784/print (28784 being the decimal representation of pp, for paikkala print 😄) with a JSON payload, and the Node widget would then reformat and pipe that out over USB for hardcore printing action.
@akx akx mentioned this issue Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant