Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for managing multiple TVs #86

Merged
merged 3 commits into from
Dec 10, 2024
Merged

Add support for managing multiple TVs #86

merged 3 commits into from
Dec 10, 2024

Conversation

Tenzer
Copy link
Owner

@Tenzer Tenzer commented Dec 10, 2024

This adds the following commands for managing the TVs in the configuration:

  • alga tv add (replacing alga setup)
  • alga tv list
  • alga tv remove
  • alga tv rename
  • alga tv set-default

A new global option has also been added, which allows specifying which TV to send commands to on a command-by-command basis. It has to be used like alga --tv <identifer> ....

The WebSocket client code has been refactored as part of this, to make it easier to split up the use cases of adding a new TV (where a handshake shouldn't be performed) and sending regular commands to manage a TV. Tests has also been added for this part of the code.

A new version of the configuration file format has been added and Alga will automatically migrate to it if an old configuration file format is detected. When this is done, the existing TV in the configuration will be assigned an identifier for "default".

Fixes #83.

This adds the following commands for managing the TVs in the configuration:

* `alga tv add` (replacing `alga setup`)
* `alga tv list`
* `alga tv remove`
* `alga tv rename`
* `alga tv set-default`

A new global option has also been added, which allows specifying which TV to
send commands to on a command-by-command basis. It has to be used like `alga
--tv <identifer> ...`.

The WebSocket client code has been refactored as part of this, to make it
easier to split up the use cases of adding a new TV (where a handshake
shouldn't be performed) and sending regular commands to manage a TV. Tests has
also been added for this part of the code.

A new version of the configuration file format has been added and Alga will
automatically migrate to it if an old configuration file format is detected.
When this is done, the existing TV in the configuration will be assigned an
identifier for "default".
@Tenzer Tenzer merged commit 4d1f560 into main Dec 10, 2024
10 checks passed
@Tenzer Tenzer deleted the support-multiple-tvs branch December 10, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Control multiple devices with alga
1 participant