tepracli is not uploaded to PyPI. Please clone this repository and install it with pip install .
It's recommended to enable editable mode -e
; pull this repository from remote and tepracli gets updated automatically.
$ cd tepra-lite-esp32/client
$ pip install -e .
Subcommands:
- print: print strings and QR code
- battery: get remaining battery
Usage: python -m tepracli print [OPTIONS]
Options:
-a, --address TEXT The IP address or the URL of TEPRA Lite LR30. (default = tepra.local)
--preview Generate preview.png without printing.
-f, --font TEXT Path or name of font. (default = bundled Adobe
Source Sans)
-S, --fontsize INTEGER RANGE Font size. [px] (default = 30) [x>=0]
-d, --depth INTEGER RANGE Depth of color. (default = 0) [-3<=x<=3]
-m, --message TEXT Print a text.
-s, --space TEXT Leave space between parts. [px]
-q, --qr TEXT Draw a QR code.
--help Show this message and exit.
Options | Output |
---|---|
-m Hello |
|
-S 15 -m Hello |
|
-S 50 -m Hello |
|
-m Hello -m World |
|
-m Hello -s 10 -m World |
|
-q "http://example.com" -s 20 -m "http://example.com" |
It's not really useful: LR30 replies 99% as the percentage of remaining battery every time.
Usage: python -m tepracli battery [OPTIONS]
Options:
-a, --address TEXT The IP address or the URL of TEPRA Lite LR30. (default = tepra.local)
--help Show this message and exit.
$ python -m tepracli battery -a ${TEPRA_ADDRESS}
99%