New binary, changed name

This commit is contained in:
Ignacio Rivero 2025-06-22 16:52:37 -03:00
parent c3269bcbf2
commit f464edb1da
2 changed files with 3 additions and 3 deletions

6
app.py
View File

@ -516,17 +516,17 @@ def index():
buf.seek(0)
import base64
img_data = base64.b64encode(buf.getvalue()).decode()
# If print button pressed, send to catprinter-ble
# If print button pressed, send to driver
if "print" in request.form:
try:
with tempfile.NamedTemporaryFile(suffix=".png", delete=True) as tmpfile:
image.save(tmpfile, format="PNG")
tmpfile.flush()
# Run the catprinter-ble command
# Run the bleh command
# You can set dither method here if desired
result = subprocess.run([
"sudo",
"./catprinter-ble",
"./bleh",
"-mode", "1bpp",
"-intensity", "100",
tmpfile.name

Binary file not shown.