Giter Site home page Giter Site logo

Comments (6)

am0s avatar am0s commented on July 16, 2024

Hi,

I just got myself two audio devices so I will have a look and see what needs to be done to support multiroom.
As for seeing the device twice is half-way correct, the group should appear together with the individual devices, just like it does in Apps that supports them.
But there is some missing code in terms of getting the correct name and connecting to the group device.
The group device seems to use a different port than the normal ones so we need add support for that.

I think I should have something working soon.

from pychromecast.

am0s avatar am0s commented on July 16, 2024

Multi room support is now completed, check out release v0.7.
https://github.com/balloob/pychromecast/releases/tag/v0.7

from pychromecast.

michaelwingender avatar michaelwingender commented on July 16, 2024

Works like a charm with python2.7. Thanks a lot!!!

There seems only to be an issue with python3. Is it related to the multiroom feature or is it another issue?

mickey@egginerjoch ~/pychromecast-master $ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.

from future import print_function
import time
import sys
import logging
import pychromecast
pychromecast.get_chromecasts_as_dict().keys()
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.4/dist-packages/zeroconf.py", line 1063, in run
handler(self.zc)
File "/usr/local/lib/python3.4/dist-packages/zeroconf.py", line 1014, in
state_change=state_change,
File "/usr/local/lib/python3.4/dist-packages/zeroconf.py", line 931, in fire
h(*_kwargs)
File "/usr/local/lib/python3.4/dist-packages/zeroconf.py", line 989, in on_change
listener.add_service(_args)
File "/home/mickey/pychromecast-master/pychromecast/discovery.py", line 49, in add_service
model_name = model_name.decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'decode'

dict_keys([])

from pychromecast.

am0s avatar am0s commented on July 16, 2024

There's a fix in the master branch, seems to be doing the trick.
Could you try it out?

If there are no more problems I'll make a 0.7.1 release.

from pychromecast.

michaelwingender avatar michaelwingender commented on July 16, 2024

It is working fine. Thanks again. :-)

from pychromecast.

balloob avatar balloob commented on July 16, 2024

I did a quick pass through the code, it looks all good now.

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.