Giter Site home page Giter Site logo

Comments (6)

balloob avatar balloob commented on July 16, 2024

I have just pushed d32ec08 which tries to resolve this issue. Can you test if this resolves your problem @DanOBrien ?

from pychromecast.

CWempe avatar CWempe commented on July 16, 2024

Just my 2 cents:
I think "Living room.local." cannot be a valid hostname/FQDN, because there is a blank space.
Maybe the hostname is different from chromecast-name.

Remember my chromecast is labled "Wohnzimmer".
But my dns server (home router "fritz.box") has another hostname for it. "chromecast.fritz.box."

root@htpc:/tmp/pychromecast-master# nslookup chromecast
Server: 192.168.1.1
Address: 192.168.1.1#53

Name: chromecast.fritz.box
Address: 192.168.1.13

root@htpc:/tmp/pychromecast-master# nslookup 192.168.1.13
Server: 192.168.1.1
Address: 192.168.1.1#53

13.1.168.192.in-addr.arpa name = Chromecast.fritz.box.

root@htpc:/tmp/pychromecast-master# nslookup wohnzimmer.local.
Server: 192.168.1.1
Address: 192.168.1.1#53

** server can't find wohnzimmer.local.: NXDOMAIN

However, it seems to work for me and I don't know if this is any help to you. :)

from pychromecast.

balloob avatar balloob commented on July 16, 2024

I know a space seems weird but it works on my Mac, but then again, that gives no guarantee that it is part of a standard ;-)

$  ping "Living Room.local."
PING living\032room.local (192.168.1.9): 56 data bytes
64 bytes from 192.168.1.9: icmp_seq=0 ttl=64 time=10.862 ms
64 bytes from 192.168.1.9: icmp_seq=1 ttl=64 time=11.671 ms
64 bytes from 192.168.1.9: icmp_seq=2 ttl=64 time=4.614 ms
64 bytes from 192.168.1.9: icmp_seq=3 ttl=64 time=2.139 ms
64 bytes from 192.168.1.9: icmp_seq=4 ttl=64 time=4.675 ms
64 bytes from 192.168.1.9: icmp_seq=5 ttl=64 time=8.026 ms
^C
--- living\032room.local ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 2.139/6.998/11.671/3.476 ms

from pychromecast.

CWempe avatar CWempe commented on July 16, 2024

According to wikipedia (https://en.wikipedia.org/wiki/Hostname) "No [..] or white space are permitted.".

There should be a way to determine the correct hostename of the chromecast rather than the chromecastname. I guess...

from pychromecast.

DanOBrien avatar DanOBrien commented on July 16, 2024

My Verizon FiOS "ActionTec" router shows the device listed as "Chromecast" in the DHCP connection list/DNS server. When setting up my Chromecast, I picked the name "Living Room", as it's "Friendly name" so I'm sure the space comes from the device upon discovery.

from pychromecast.

DanOBrien avatar DanOBrien commented on July 16, 2024

Someone turned the TV on at home so now I can finally test. The latest update appears to be working.

~/pychromecast-master$ python example.py
10.10.1.51

DeviceStatus(friendly_name='Living room', model_name='Eureka Dongle', manufacturer='Google Inc.', api_version=(1, 0))

etc.....
etc.....

I'll see what happens on screen when I get home, so far it looks good.

from pychromecast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.