An example of tepra-lite-esp32 client / CLI
Project description
tepracli - reference impl. of tepra-lite-esp32 client
Install with pip
$ pip install tepracli
$ tepracli
Install with uvx
$ uvx tepracli
Install from source
It's recommended to enable editable mode -e; pull this repository from remote and tepracli will be updated automatically.
$ cd tepra-lite-esp32/client
$ pip install -e .
$ python -m tepracli
Usage
Subcommands:
- print: print strings and QR code
- battery: get remaining battery
Usage: 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.
Print examples
| 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" |
Get Remaining Battery
It's not really useful: LR30 replies 99% as the percentage of remaining battery every time.
Usage: 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.
$ tepracli battery -a ${TEPRA_ADDRESS}
99%
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tepracli-1.1.1.tar.gz
(165.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tepracli-1.1.1-py3-none-any.whl
(163.1 kB
view details)
File details
Details for the file tepracli-1.1.1.tar.gz.
File metadata
- Download URL: tepracli-1.1.1.tar.gz
- Upload date:
- Size: 165.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fc9e4e75e455a14638ffab4991a733a93a0bc1a17928fdb8ceb2e3540eb4f12
|
|
| MD5 |
f89dd71b9e445cfe5cd436018b5f49be
|
|
| BLAKE2b-256 |
0c09f7b1813fcb0ce3bc838acff701ebd41eb9a7b185f0417f50c44792b04e8a
|
File details
Details for the file tepracli-1.1.1-py3-none-any.whl.
File metadata
- Download URL: tepracli-1.1.1-py3-none-any.whl
- Upload date:
- Size: 163.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78faea264c92830d196b4d5eb39848e3141af7a253f43a1b26472899b95f51c3
|
|
| MD5 |
34a7f59e07fec7446cd5a98319d805bf
|
|
| BLAKE2b-256 |
f0c134fcd5f76024ed402a12ce571145dc4651df58efc7fff00adfc542f3b99e
|