-
Notifications
You must be signed in to change notification settings - Fork 11
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
Set --hostID to stap spamming of client names #19
Comments
Hi there, thanks! Have you tried setting the names from within Snap.Net? (it's kind of hidden away, you need to click on the client name to get that dialog) That ends up calling Let me know please if that doesn't work! |
This seems to work, thanks! |
I would like to reopen this issue, because even though setting the name is useful, it does not achieve one of the goals I want it to achieve. Home Assistant obtains snapcast clients and names them by their id I would like to be able to set the id (or have it be the same as the name), thus replacing the mac address by which it is currently set. If it enforces a unique name with a trailing number that is fine, then at least the client is recognizable by its id. (Same is true for groups, in which the id is also non-human readable format) |
That makes sense, I didn't realize there were tools using these id's as names :) I'll add a field in the player settings for overriding the host ID. The mac address + instance ID are automatically filled in by snapclient by the way (see https://github.com/badaix/snapcast/blob/master/common/message/hello.hpp#L98), unless an id is explicitly specified via --hostID, as you pointed out before. |
Thanks for the update, I just tested it and setting the ID works! Thanks for your time 👍 I'm not sure if I want to make an issue of this, but I do have a small one. Currently a trailing number is added to the id, even though the id is unique. In my case a trailing I would think this trailing number is unnecessary if one chooses a unique ID. |
Thanks for the update! I had a quick look, the issue you're seeing is caused by the |
First, thanks for your awesome work! You make Snapcast more accessible to all of us. (Congratulations on the app store release btw!)
It would be nice if we could be able to set the client name of Snap.Net just like I do on dedicated clients:
SNAPCLIENT_OPTS="-h $IP --hostID woonkamer"
I would like to do this to stop the generation of tons of unused snapclient ids as: Desktop-Name # 1, ..., # 15. I get these when I stop and open Snap.Net after restarting the snapserver during troubleshooting.
The text was updated successfully, but these errors were encountered: