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

scan devices #445

Open
idonotknowwhatimdoing opened this issue May 9, 2024 · 7 comments
Open

scan devices #445

idonotknowwhatimdoing opened this issue May 9, 2024 · 7 comments

Comments

@idonotknowwhatimdoing
Copy link

image

Hi, all!
If I use "--json-output" with "scan", I receive only one dev info, but "scan" return two or more.

@skorokithakis
Copy link
Owner

Hmm, that's odd. Can you try again and paste the output here?

@idonotknowwhatimdoing
Copy link
Author

PS C:\Users\cattvm> catt scan
Scanning Chromecasts...
192.168.10.40 - MiTV-MSSP1 - Xiaomi MiTV-MSSP1
192.168.10.59 - MiTV-MSSP1 - Xiaomi MiTV-MSSP1
PS C:\Users\cattvm> catt scan --json-output
{
    "MiTV-MSSP1": {
        "services": "{ServiceInfo(type='mdns', data='MiTV-MSSP1-c20c57ec53bd6d67916b246e3ceddbc4._googlecast._tcp.local.')}",
        "uuid": "c20c57ec-53bd-6d67-916b-246e3ceddbc4",
        "model_name": "MiTV-MSSP1",
        "friendly_name": "MiTV-MSSP1",
        "host": "192.168.10.59",
        "port": 8009,
        "cast_type": "cast",
        "manufacturer": "Xiaomi"
    }
}
PS C:\Users\cattvm>

I have a theory. This may be due to non-unique device names. There will be an opportunity to check later

@idonotknowwhatimdoing
Copy link
Author

PS C:\Users\theds> catt scan
Scanning Chromecasts...
10.10.100.20 - Android TV - Xiaomi MiTV-MSSP1
10.10.100.13 - Главная спальня - Google Inc. Chromecast
PS C:\Users\theds> catt scan --json-output
{
    "Android TV": {
        "services": "{ServiceInfo(type='mdns', data='MiTV-MSSP1-0fb4e8df2847080c958cda51e4f1544a._googlecast._tcp.local.')}",
        "uuid": "0fb4e8df-2847-080c-958c-da51e4f1544a",
        "model_name": "MiTV-MSSP1",
        "friendly_name": "Android TV",
        "host": "10.10.100.20",
        "port": 8009,
        "cast_type": "cast",
        "manufacturer": "Xiaomi"
    },
    "\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u043f\u0430\u043b\u044c\u043d\u044f": {
        "services": "{ServiceInfo(type='mdns', data='Chromecast-02cbbbbb3be56653f903518b09d91c8b._googlecast._tcp.local.')}",
        "uuid": "02cbbbbb-3be5-6653-f903-518b09d91c8b",
        "model_name": "Chromecast",
        "friendly_name": "\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u043f\u0430\u043b\u044c\u043d\u044f",
        "host": "10.10.100.13",
        "port": 8009,
        "cast_type": "cast",
        "manufacturer": "Google Inc."
    }
}
PS C:\Users\theds>

Work fine on another location with unique devices names.

@skorokithakis
Copy link
Owner

Ah, yep! That would do it. This will be tricky to fix without breaking the API...

@idonotknowwhatimdoing
Copy link
Author

Ah, yep! That would do it. This will be tricky to fix without breaking the API...

If I rename the devices using the TV interface, will that solve my problem?

@skorokithakis
Copy link
Owner

It should, yes.

@idonotknowwhatimdoing
Copy link
Author

Thx! I'll be able to check it out next week. After that, I will add the result here.

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

No branches or pull requests

2 participants