-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (23 loc) · 1.13 KB
/
Copy path.env.example
File metadata and controls
31 lines (23 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Telegram bot token from @BotFather
BOT_TOKEN=
# Printer USB ids in hex — find them with `lsusb` (e.g. ID 0483:5743)
PRINTER_USB_VID=0x0483
PRINTER_USB_PID=0x5743
# Printable width in dots. Default 576 (80 mm); the layout is tuned for this.
# 58 mm tape is 384, but you'll need to shrink the FONT_* sizes in render.py.
PAPER_WIDTH_PX=576
# Optional: path to a monospaced TTF (defaults to DejaVu Sans Mono)
# FONT_PATH=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
# Optional: receipt header logo (defaults to media/logo.png)
# LOGO_PATH=media/logo.png
# Optional: restrict the bot to these Telegram user ids (comma-separated).
# Leave unset/empty to allow everyone. Get your id from @userinfobot.
# ALLOWED_USER_IDS=123456789,987654321
# Optional: timezone for quiet hours (IANA name). Defaults to UTC.
# TZ=Europe/Moscow
# Optional: quiet hours — the bot won't print in this window (it replies to say
# so; nothing is queued). Unset = always on. May wrap midnight (e.g. 23:00-07:00).
# QUIET_HOURS=01:00-09:00
# Optional: ignore messages older than N seconds (e.g. stale after downtime).
# Unset/0 = print everything.
# MAX_MESSAGE_AGE=60