hs3-baza-zasobow-dashboard/readme.md

36 lines
845 B
Markdown
Raw Permalink Normal View History

2023-07-09 16:00:49 +02:00
## labeling telegram bot
This application is build to render and print labels sent to it via telegram, as well
as provide info about printer status and other useful information.
2023-07-09 16:02:14 +02:00
## Supported commands
- `/media_info` - show info about currently installed media
2023-07-09 20:07:30 +02:00
![img.png](img.png)
- `/simple_label` - print a simple label
2023-07-09 20:07:30 +02:00
![img_1.png](img_1.png)
2023-07-09 16:02:14 +02:00
2023-07-09 20:07:30 +02:00
### Usage example
You need three things:
2023-07-09 16:00:49 +02:00
1. A telegram bot token, you can write to [@BotFather](https://t.me/BotFather) to get one
2. A compatible printer
3. docker installed on your system
```yaml
version: "3.8"
services:
bot:
build:
context: .
dockerfile: Dockerfile
environment:
- PRINTER_IP=<printer_ip>
- TELEGRAM_TOKEN=<telegram_bot_token>
command:
- python
- labeler/adapter/telegram_bot.py
```
### Supported printers
- Brother PT-E550W