Skip to content

Add support for managing multiple TVs#86

Merged
Tenzer merged 3 commits intomainfrom
support-multiple-tvs
Dec 10, 2024
Merged

Add support for managing multiple TVs#86
Tenzer merged 3 commits intomainfrom
support-multiple-tvs

Conversation

@Tenzer
Copy link
Copy Markdown
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
@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