Make max text length configurable

This commit is contained in:
n07070
2026-11-13 19:46:16 +01:00
parent 836d6b0be9
commit 086a7ae640
5 changed files with 11 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
[defaults] [defaults]
signature = "" signature = ""
# Printer settings # Printer settings
[printer] [printer]
upload_folder = "src/static/uploads" upload_folder = "src/static/uploads"
@@ -14,11 +15,14 @@ waiting_time = 5
profile = "TM-T20III" profile = "TM-T20III"
label_type = 80 # 80 or 58 ( label width in mm ) label_type = 80 # 80 or 58 ( label width in mm )
align_text = "center" align_text = "center"
text_max_length = 4096
signature_max_length = 256
[printer.brother] [printer.brother]
# Configurations for Brother printers # Configurations for Brother printers
label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types
text_max_length = 4096
signature_max_length = 256
# Raspberry Pi Configuration # Raspberry Pi Configuration
[rpi] [rpi]

View File

@@ -16,10 +16,14 @@ waiting_time = 5
profile = "TM-T20III" profile = "TM-T20III"
label_type = 80 # 80 or 58 ( label width in mm ) label_type = 80 # 80 or 58 ( label width in mm )
align_text = "center" align_text = "center"
text_max_length = 4096
signature_max_length = 256
[printer.brother] [printer.brother]
# Configurations for Brother printers # Configurations for Brother printers
label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types
text_max_length = 4096
signature_max_length = 256
# Raspberry Pi Configuration # Raspberry Pi Configuration
[rpi] [rpi]

View File

@@ -5,6 +5,6 @@
<title>LittlePrynter API</title> <title>LittlePrynter API</title>
</head> </head>
<body> <body>
"Welcome to the printing software's API. Please see the index page to get started. Welcome to the printing software's API. Please see the index page to get started.
</body> </body>
</html> </html>

View File

@@ -53,7 +53,7 @@
<hr> <hr>
<footer class="row"> <footer class="row">
<p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p> <p class=" text-center">Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="/api">API interface</a> | <a href="https://git.n07070.xyz/n07070/littleprynter">Source code - AGPLv3</a></p>
</footer> </footer>
</body> </body>
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script> <script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>

View File

@@ -1,5 +0,0 @@
<hr>
<footer>Little Prynter is built by <a href="https://n07070.xyz/about-me/">n07070</a> because it's fun :) | <a href="https://git.n07070.xyz/n07070/littleprynter/src/branch/epson-tm-t20iii">Source code - AGPLv3</a></footer>
</div>
</body>
</html>