Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alga-1.2.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

alga-1.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file alga-1.2.0.tar.gz.

File metadata

  • Download URL: alga-1.2.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for alga-1.2.0.tar.gz
Algorithm Hash digest
SHA256 f48e0a7504ae9daceb4c4e6c15153ee1a950c76e8ec4436f76d40010250d0301
MD5 6faf43188045b9714b95778c28de398e
BLAKE2b-256 534de839e64e51426769e90cc723ad54669a904cbff9ccf62ed0742a37043ad2

See more details on using hashes here.

File details

Details for the file alga-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: alga-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for alga-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4612a519cce5eed965d36df7a02ff0d23dac3db1bb03b7e65d2e806f0d7b962a
MD5 f692cd1900ec06b1dc5273f786d35cce
BLAKE2b-256 80b1e53555f5016e9286f09068eede4b52d7397dda4bba93f1a7a85e71368a25

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page