Comments (4)
More tests and results...
I eventually figured out how to use 'pychromecast' myself to cast an audio file to a Chromecast speaker 'by name', just like 'catt' can, even working in a ChromeOS Crostini environment using the simple 'http-server' webserver, and it works fine:
dmenns@penguin:~$ /home/dmenns/castaudio.py "Downstairs Speaker" http://192.168.5.45:8080/test.mp3
argument list ['/home/dmenns/castaudio.py', 'Downstairs Speaker', 'http://192.168.5.45:8080/test.mp3']
Downstairs Speaker
When I try the same thing with 'catt' using similar instructions, it hangs and eventually fails:
dmenns@penguin:~$ catt -d "Downstairs Speaker" cast http://192.168.5.45:8080/test.mp3
ERROR: [generic] Unable to download webpage: (<urllib3.connection.HTTPConnection object at 0x7d3289e91e10>, 'Connection to 192.168.5.45 timed out. (connect timeout=20.0)') (caused by TransportError("(<urllib3.connection.HTTPConnection object at 0x7d3289e91e10>, 'Connection to 192.168.5.45 timed out. (connect timeout=20.0)')"))
Error: Remote resource not found.
Even though I have found this workaround, I would still like to be able to use 'catt' as my sole utility in this environment, since it appears to work well for casting 'web pages' which I also want/need to do.
from catt.
Hmm, is Catt maybe detecting and sending the wrong IP for its host?
from catt.
Another successful test of an alternate app 'chromecast-cli' (https://github.com/erkstruwe/chromecast-cli):
dmenns@penguin:~$ chromecast --host 192.168.4.35 play http://192.168.5.45:8080/test.mp3
Playing http://192.168.5.45:8080/test.mp3
Status IDLE
This works OK, but I prefer the ability of Catt to target the host on its name rather than its (possibly changing over time) IP address.
Is there something I can do to help diagnose what might be going off-track with Catt in this case?
from catt.
Hm, you'd need to find which host CATT has detected for itself and is sending to the Chromecast, but I'm afraid I don't remember the code enough to remember where that variable is set... I think the problem is that it's detecting the wrong host, though.
from catt.
Related Issues (20)
- CATT stopped working(generated code out of date) post home assistant update with not resolution on rollback
- catt is not compatible with the latest release of Home Assistant (2023.5.0) HOT 3
- New pip package for latest changes HOT 7
- share an entire monitor?
- Casting to Google TV HOT 1
- Cant cast local files HOT 2
- Using `cast_site` to cast a HA dashboard to a Nest Hub. Command to change the view on the hub?
- Not able to cast local video file
- not working with Google Nest Audio Stereo Set
- Command "catt save" throws "KeyError: volume_level"
- Update catt package (0.12.11) on PyPI to match newest commit on Github HOT 1
- catt info not working, 'CastStatus' object has no attribute '_asdict' HOT 3
- Update pychromecast to >14. HOT 2
- scan devices HOT 7
- cookies-from-browser option not working as expected HOT 3
- Chromecast from Firefox? HOT 2
- catt cast always fails with the same error HOT 1
- API example dont run
- Upadate API
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 catt.