Coder Social home page Coder Social logo

Comments (4)

darethehair avatar darethehair commented on August 29, 2024

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.

skorokithakis avatar skorokithakis commented on August 29, 2024

Hmm, is Catt maybe detecting and sending the wrong IP for its host?

from catt.

darethehair avatar darethehair commented on August 29, 2024

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.

skorokithakis avatar skorokithakis commented on August 29, 2024

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)

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.