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

changing server via the API #1250

Closed
fcorthay opened this issue Jun 19, 2024 · 1 comment
Closed

changing server via the API #1250

fcorthay opened this issue Jun 19, 2024 · 1 comment

Comments

@fcorthay
Copy link

fcorthay commented Jun 19, 2024

I would like to have a snapclient change snapserver via the JSON API. This would e.g. allow to programmatically select either the central home music or a local room's one. The two (or more) servers are running on different machines.

For the moment, the API allows to get a client's status and change its config parameters such as the volume. With a request such as Client.SetConnected, one could disconnect a client from a given server and connect it to another one.

For the time being, I can modifiy /etc/default/snapclient and restart the snapclient service. Yet this implies to give a user sudo privilieges such as the ability to restart the service.

@badaix
Copy link
Owner

badaix commented Jun 19, 2024

Duplicate of #758

@badaix badaix marked this as a duplicate of #758 Jun 19, 2024
@badaix badaix closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants