|
|
@ -46,7 +46,7 @@ def insert_linebreaks(string, linelength): |
|
|
|
|
|
|
|
def printNow(query, results, results_count): |
|
|
|
if connected == True: |
|
|
|
printerpath = '/dev/usb/lp1' |
|
|
|
printerpath = '/dev/usb/lp0' |
|
|
|
stdout = open(printerpath, 'w') |
|
|
|
#print('printingNow') |
|
|
|
print(escpos['reset'], file=stdout, flush=True) |
|
|
@ -130,4 +130,4 @@ def printNow(query, results, results_count): |
|
|
|
# query = 'noise' |
|
|
|
# results, _, _ = readings.request_results(query) |
|
|
|
# pprint(results) |
|
|
|
# printNow(query, results, 0) |
|
|
|
# printNow(query, results, 0) |