CLI for remote controlling LG webOS TVs
Project description
Alga
A command line utility for controlling a LG webOS TV over the network.
Installing
Alga is available on PyPI. I would recommend installing it via pipx:
$ pipx install alga
Or, via Nix flakes:
nix run github:Tenzer/alga
Setup
The first time you use the utility, you will need to setup a connection to the TV.
With the TV on, run alga setup [hostname/IP]
.
This will bring up a prompt on the TV asking if you want to accept the pairing.
When accepted, Alga will be ready to use.
If no hostname or IP address is provided to alga setup
, it will be default try to connect to "lgwebostv" which should work.
The hostname, a key and MAC address will be written to ~/.config/alga/config.json
for future use.
Note: It's currently only possible to pair Alga with one TV at a time. Let me know if this is a deal breaker for you.
Usage
See usage for a list of available commands.
Development
The code base is fully type annotated and test coverage is being enforced.
Types can be checked via poetry run mypy .
and tests via poetry run pytest
.
Tests are run for each of the supported Python versions in CI.
pre-commit used to run Ruff for linting and formatting.
usage.md
is updated via poetry run ./generate-usage.sh
.
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
Built Distribution
File details
Details for the file alga-1.2.1.tar.gz
.
File metadata
- Download URL: alga-1.2.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395529faf67e11c27f2451fc4cacf0a42573581919e0cac245ea2e6b5a17ac59 |
|
MD5 | 9384865f9c2e580ecf98d9a63c3949b4 |
|
BLAKE2b-256 | a3507b899d496cf4c2d1703bb122143c0cc11d200bbcd61fceb7a176e3b8e0b9 |
File details
Details for the file alga-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: alga-1.2.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6021337b8eef9b2beb0958ed6b23f1dd45567f1ef62c276f17f4840d3ccaa5f2 |
|
MD5 | 0ef81f108365a825f0ad344e7723b290 |
|
BLAKE2b-256 | 77c40e391d9343fbde3aaaca9e76f11e8b3f2b45a9e98fa5764a623ce8adcf60 |