Add more printer description in readme
Some checks failed
MegaLinter / MegaLinter (pull_request) Has been cancelled
Update website / update (pull_request) Has been cancelled

This commit is contained in:
marsien marsien 2026-04-16 13:53:01 +00:00
parent cebafd3cec
commit 1ea09e0408

View file

@ -2,13 +2,22 @@
Skrypt, który generuje podsumowanie [Bazy Wiedzy zasobów Hackerspace Trójmiasto](https://kb.hs3.pl/docs) w formie statycznej strony internetowej.
## Uruchomienie
## Uruchomienie połączenia z drukarką etykiet
Potrzebne, by działał przycisk w kolumnie `print`. Po kliknięciu, nastąpi próba połączenia się z drukarką Brother PT-E550W, pod adresem IP zdefiniowanym w `PRINTER_IT`, w celu wydruku naklejki z kodem QR.
```bash
uv venv --python 3.11
source .venv.bin/activate
uv sync
fastapi dev --port 31337 labeler/adapter/fastapi_srv.py
export PRINTER_IT=192.168.0.147
```
W razie problemów, spróbuj alternatywnych komend:
```bash
source .venv/Scripts/activate
uv run -- fastapi dev --port 31337 labeler/adapter/fastapi_srv.py
```
## Sposób działania
@ -52,3 +61,4 @@ ID, nazwa, miejsce, ilość, opiekunowie, tagi
## Dokumentacja
- [Discourse REST API](https://docs.discourse.org/)
- [hbrylkowski/labeling_bot](https://github.com/hbrylkowski/labeling_bot)