Add Pablo: the friendly label printer helper #5
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue