Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5041 Tampilan

How to disable the PosBox Status printing everytime the posbox rebooted. It waste a lot of paper if everyday the system is rebooted.

The posbox status I mean the IP address and Homepage infiormation that printed automatically everytime we turn on the posbox.

Avatar
Buang
Jawaban Terbai

Looks like all you have to do is comment it out and put in a pass statement (in bold below):

(excerpt from file on the posbox: /home/pi/odoo/addons/hw_escpos/controllers/main.py -Line 177 has call to comment)

Make sure to indent the pass with 4 spaces to align with old function call position.

elif task == 'xml_receipt':
if timestamp >= time.time() - 1 * 60 * 60:
printer.receipt(data)
elif task == 'cashbox':
if timestamp >= time.time() - 12:
self.open_cashbox(printer)
elif task == 'printstatus':
#self.print_status(printer)
pass

elif task == 'status':
pass
error = False


Avatar
Buang
Penulis

It works.... thank you.

Post Terkait Replies Tampilan Aktivitas
0
Feb 21
3046
3
Okt 17
6039
0
Nov 15
4731
1
Agu 24
7701
1
Des 19
4809