Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 628 Bytes

README.md

File metadata and controls

30 lines (16 loc) · 628 Bytes

elgransuspiro_pos_printer

Printer client for Point Of Sale

  • Install dependencies:

sudo apt-get install build-essential libssl-dev ruby ruby-dev

  • Create a permanent cookie on the browser of the branch to listen those messages:

https://pos.elgransuspiro.com/sucursales?nombre=BRANCH_NAME

  • Run client:

ruby printer.rb

Ticket printed

  • Move service to

/lib/systemd/system/pos_printer.service

  • Start/Check/Restart the service

sudo systemctl start pos_printer

Accept also: status/restart/stop

  • Enable the service at boot

sudo systemctl enable pos_printer