oesmith / simple_printer

A stupid print server for thermal receipt printers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple printer

This is a really, really simple print server designed for use with arduinos hooked up to thermal receipt printers.

It's a basic sinatra+redis app that queues print jobs. Print devices poll an endpoint associated with their unique ID. Jobs can be queued by POSTing to the same endpoint.

Hint: check the debug output of the device or the sinatra logs to discover the IDs/URLs.

Example

To push a simple text job:

curl -D - -X POST --data-binary 'Hello, World!' http://localhost:4567/printer/{PRINTER ID HERE}

Further reading

Thanks

  • lazyatom (James Adam) for his work, from which this is massively derivative.
  • the awesome engineering team at Wildfire Interactive in London.

About

A stupid print server for thermal receipt printers


Languages

Language:Ruby 100.0%