Add Pablo: the friendly label printer helper #5

Merged
marsien merged 15 commits from add-pablo into master 2026-04-16 14:02:48 +00:00
Owner

Closes #1

Closes #1
doomhammer self-assigned this 2026-04-16 12:08:38 +00:00
doomhammer added 13 commits 2026-04-16 12:08:39 +00:00
requested review from marsien 2026-04-16 12:08:44 +00:00
doomhammer force-pushed add-pablo from 85ebe548a2 to a5ec38f3a3 2026-04-16 12:22:54 +00:00 Compare
doomhammer force-pushed add-pablo from a5ec38f3a3 to 170d38ea08 2026-04-16 12:28:26 +00:00 Compare
doomhammer force-pushed add-pablo from 170d38ea08 to 1e5ecf5fb6 2026-04-16 12:32:05 +00:00 Compare
doomhammer force-pushed add-pablo from 1e5ecf5fb6 to cebafd3cec 2026-04-16 12:59:11 +00:00 Compare
Owner
      INFO   Application startup complete.
Installed medium: width=Dimension(mm=18.0) length=Dimension(mm=inf) minimal_margin_vertical=Dimension(mm=1.097777777777778) minimal_margin_horizontal=Dimension(mm=1.0) minimum_length=Dimension(mm=5.0) dpi=360 description='Laminated tape - 18mm, Black on White background'
224 325
224 325
Need to resize the image...
      INFO   127.0.0.1:54214 - "GET /print/20 HTTP/1.1" 302
      INFO   127.0.0.1:54214 - "GET / HTTP/1.1" 500
     ERROR   Exception in ASGI application
Traceback (most recent call last):
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 416, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    raise exc
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\labeler\adapter\fastapi_srv.py", line 77, in root
    index = f.read()
            ^^^^^^^^
  File "C:\Users\ASUS\AppData\Roaming\uv\python\cpython-3.11-windows-x86_64-none\Lib\encodings\cp1250.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 173438: character maps to <undefined>
``` INFO Application startup complete. Installed medium: width=Dimension(mm=18.0) length=Dimension(mm=inf) minimal_margin_vertical=Dimension(mm=1.097777777777778) minimal_margin_horizontal=Dimension(mm=1.0) minimum_length=Dimension(mm=5.0) dpi=360 description='Laminated tape - 18mm, Black on White background' 224 325 224 325 Need to resize the image... INFO 127.0.0.1:54214 - "GET /print/20 HTTP/1.1" 302 INFO 127.0.0.1:54214 - "GET / HTTP/1.1" 500 ERROR Exception in ASGI application Traceback (most recent call last): File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 416, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\applications.py", line 1054, in __call__ await super().__call__(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ raise exc File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ await self.app(scope, receive, _send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 714, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 734, in app await route.handle(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app raise exc File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\.venv\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ASUS\Documents\GitHub\HACKERSPACE\hs3-baza-zasobow-dashboard\labeler\adapter\fastapi_srv.py", line 77, in root index = f.read() ^^^^^^^^ File "C:\Users\ASUS\AppData\Roaming\uv\python\cpython-3.11-windows-x86_64-none\Lib\encodings\cp1250.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 173438: character maps to <undefined> ```
marsien added 1 commit 2026-04-16 13:53:05 +00:00
Add more printer description in readme
Some checks failed
MegaLinter / MegaLinter (pull_request) Has been cancelled
Update website / update (pull_request) Has been cancelled
1ea09e0408
marsien added 1 commit 2026-04-16 13:58:58 +00:00
Open fegen/docs/index.html as "rb"
Some checks failed
MegaLinter / MegaLinter (pull_request) Has been cancelled
Update website / update (pull_request) Has been cancelled
84963b42e2
marsien merged commit e9f2dec500 into master 2026-04-16 14:02:48 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: marsien/hs3-baza-zasobow-dashboard#5
No description provided.