chromecast-audio-stream icon indicating copy to clipboard operation
chromecast-audio-stream copied to clipboard

Use assigned names of chromecast devices?

Open gtoal opened this issue 7 years ago • 5 comments

I have 8 chromecast devices (1 TV, 2 home minis, and 5 audios) and they all show up as long alphanumeric strings in the menu. However they have been assigned mnemonic names in the phone app (eg 'kitchen') - is it possible for the app to divine these names, or if not could we manually assign then in a config somewhere?

gtoal avatar Jan 10 '18 04:01 gtoal

Wow, I don't have that many Chromecast devices, but I'd like to see this too. 👍

cullenjohnson avatar Feb 09 '18 03:02 cullenjohnson

menu The program in it's current iteration does not check the devices to get their names, however you can easily set them.

The program caches the device data in the %appdata% folder.

Example File Location: C:\Users\USERNAME\AppData\Roaming\audio-cast\device-cache.json

That is a standard formatted JSON file: {"192.168.0.101":"Google-Home-447d8f09448177bcb0a1f762b532b816","192.168.0.102":"Google-Home-1a9aeb0d777b46bbd734e42c215594cf","192.168.0.103":"Google-Home-6a247bd6bb3c0ad6da1a52503e9bdf3a","192.168.0.104":"Google-Home-8f7c231e5c5a6a1ec3cba2fab38fbee4","192.168.0.105":"Google-Home-6a247bd6bb3c0ad6da0a1f762b532b816"}

You can replace the string name with your desired display name, then relaunch the program to see the updated names such as: {"192.168.0.101":"Living Room","192.168.0.102":"Kitchen","192.168.0.103":"Dining Room","192.168.0.104":"Master Bedroom","192.168.0.105":"Guest Bedroom"}

jmdl1983 avatar Feb 24 '18 18:02 jmdl1983

Appreciated, thanks! Applying it now.

On Sat, Feb 24, 2018 at 12:58 PM, jmdl1983 [email protected] wrote:

The program in it's current iteration does not check the devices to get their names, however you can easily set them.

The program caches the device data in the %appdata% folder.

Example File Location: C:\Users\USERNAME\AppData\Roaming\audio-cast\device-cache.json

That is a standard formatted JSON file: {"192.168.0.101":"Google-Home-447d8f09448177bcb0a1f762b532b8 16","192.168.0.102":"Google-Home-1a9aeb0d777b46bbd734e42c215594 cf","192.168.0.103":"Google-Home-6a247bd6bb3c0ad6da1a52503e9bdf 3a","192.168.0.104":"Google-Home-8f7c231e5c5a6a1ec3cba2fab38fbe e4","192.168.0.105":"Google-Home-6a247bd6bb3c0ad6da0a1f762b532b816"}

You can replace the string name with your desired display name, then relaunch the program to see the updated names such as: {"192.168.0.101":"Living Room","192.168.0.102":"Kitchen","192.168.0.103":"Dining Room","192.168.0.104":"Master Bedroom","192.168.0.105":"Guest Bedroom"}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/acidhax/chromecast-audio-stream/issues/106#issuecomment-368251048, or mute the thread https://github.com/notifications/unsubscribe-auth/AIfK9np8QI_8VOoqPmuqRyz36ckE9wd_ks5tYFvegaJpZM4RYyGo .

gtoal avatar Feb 24 '18 22:02 gtoal

It doesn't appear to consistently use the information in this cache. I keep restarting it and about half of my devices get their name from the cache, and the others use whatever your default name is. The set the shows properly changes each time.

jerblack avatar Apr 15 '18 05:04 jerblack

It doesn't appear to consistently use the information in this cache. I keep restarting it and about half of my devices get their name from the cache, and the others use whatever your default name is. The set the shows properly changes each time.

Had the same thing, proliferation of multiple instances of same device. I've just figured out, from looking at the json, this is due to new IP address being allocated to the chromecast device. Have assigned a static IP in the router, and am hopeful this will solve.

davidpierson avatar Jul 17 '22 00:07 davidpierson