-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery is timing out #62
Comments
Same there... is still alive this gem? |
FWIW, through some "aggressive" monkey patching, I was able to work around the discovery issues and query my speaker for details speaker = Sonos::Device::Speaker.new('192.168.100.99')
def speaker.group_master
OpenStruct.new(ip: '192.168.100.99')
end
speaker.now_playing |
Oh, that's great! have you planned to share your patch? |
This patch is extremely hacky and just a workaround (as I am monkey patching my I think a better long term solution is to make some modifications to the code and allow for initializing a speaker using a static IP address. This way, we can avoid the need to auto discovery altogether. I can look more into the code and see what would be needed to achieve this. |
Does this gem work with modern versions of Ruby? I am unable to install it on Ruby 2.0.
On Ruby 2.2, 2.3, and 2.4 it is timing out on Discovery:
Any suggestions?
The text was updated successfully, but these errors were encountered: