Comments (6)
I have just pushed d32ec08 which tries to resolve this issue. Can you test if this resolves your problem @DanOBrien ?
from pychromecast.
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#53Name: chromecast.fritz.box
Address: 192.168.1.13root@htpc:/tmp/pychromecast-master# nslookup 192.168.1.13
Server: 192.168.1.1
Address: 192.168.1.1#5313.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.
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.
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.
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.
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)
- 1st gen chromecasts not detected on network HOT 3
- GoogleAssistant
- chromecast.wait() never returns HOT 1
- ValueError: too many values to unpack (expected 5)
- Discovery doesn't work in an async context HOT 4
- Data difference when using GoogleTV Youtube vs Casting
- Custom http headers
- Idle chromecast custom screen example
- Command feedback
- Detect tv is on or off
- SiriusXM/Chromecast Casting Issue HOT 8
- Cannot initialize 'Chromecast' class HOT 2
- Not working with updated modules ('str' object has no attribute 'cast_type') HOT 1
- How to know if a specific connected TV is compatible ? HOT 1
- BBC Sounds conroller stopped working HOT 3
- Python 3.10 Depreciation Warning ssl.SSLContext()
- How to work with spotify HOT 5
- BBC iPlayer Live Stream - unable to get working
- Join existing chromecast session without interrupting it?
- pychromecast entering spin loop when a cast device reboots [if browser.stop_discovery() was called] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pychromecast.