add webui

This commit is contained in:
Lukas Cremer
2026-02-03 22:41:29 +01:00
parent b421b199ca
commit cd846577a4
13 changed files with 1180 additions and 3 deletions

22
config.example.ini Normal file
View File

@@ -0,0 +1,22 @@
# HPGL Plotter example config
# Copy to config.ini and adjust. config.ini is gitignored.
[plotter]
# Serial port (e.g. /dev/ttyUSB0 on Linux, COM3 on Windows)
port = /dev/ttyUSB0
# Baud rate (often 9600 for HPGL plotters)
baudrate = 9600
# Timeout in seconds when reading from plotter
timeout = 15
# Center program at origin before sending (True) or align to bottom-left (False)
center_at_origin = false
[webui]
# Host to bind (0.0.0.0 = all interfaces, for access from other devices)
host = 0.0.0.0
# Port for the web UI
port = 5000
# Max upload size in bytes (default 16 MB)
max_upload_mb = 16
# Secret key for Flask sessions; set a random string in production
secret_key = change-me-in-production