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.
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:
elif task == 'cashbox':
if timestamp >= time.time() - 12:
elif task == 'printstatus':
elif task == 'status':
error = False
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/24/15, 3:22 AM|
|Seen: 595 times|
|Last updated: 7/14/15, 4:01 AM|