Git Product home page Git Product logo

snapcastr's People

Contributors

axelsimon avatar maweki avatar user65k avatar xkonni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

snapcastr's Issues

Docker image

Is this something you'd be interested in adding to this repository? If so, I have a dockerfile that I'd be happy to put into a PR and keep maintained. You can find it here.

I've created a docker image for anyone looking in the meantime.

Clients hostnames are not resolved, shown as mac

Hi. First of all thx for this control, since it's the only one that is really easy and fast to install without a lot of dependencies.

I run snapcastr on my snapcast server with

snapcastrd --bind=0.0.0.0 --port=5011 --host=127.0.0.1

It's working fine so far, but clients hostnames are not resolved and shown as mac adresses.
The snapcast control apk does this without problems, so I guess it's not a server problem.

Any idea what could be wrong? Thanks

Define base path

Hi!
I want to run this in subdir of server.
e.g.: localhost/snapcastr
Is this supported?

Pass server address via command line parameter

This would be very useful instead of having to change file contents. I do an orchestrated deployment of my snapcast-stuff via ansible and changing file contents is a hassle.

One could use argparser to just parse the server address.

I'll try to create PR in the next few days, if that's okay?!

i got a 500 server error??

[2018-04-19 07:28:40,433] ERROR in app: Exception on /page/base [GET]
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/pi/snapcastr/snapcastr/snapcastr.py", line 64, in basep
loop, snapserver = start_server()
File "/home/pi/snapcastr/snapcastr/snapcastr.py", line 45, in start_server
snapserver = loop.run_until_complete(run_test(loop))
File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/pi/snapcastr/snapcastr/snapcastr.py", line 40, in run_test
return (yield from snapcast.control.create_server(loop, server_addr, reconnect=True))
File "/home/pi/.local/lib/python3.5/site-packages/snapcast/control/init.py", line 11, in create_server
yield from server.start()
File "/home/pi/.local/lib/python3.5/site-packages/snapcast/control/server.py", line 85, in start
yield from self._do_connect()
File "/home/pi/.local/lib/python3.5/site-packages/snapcast/control/server.py", line 95, in _do_connect
lambda: SnapcastProtocol(self._callbacks), self._host, self._port)
File "/usr/lib/python3.5/asyncio/base_events.py", line 731, in create_connection
infos = f1.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.5/socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
192.168.1.3 - - [19/Apr/2018 07:28:40] "GET /page/base HTTP/1.1" 500 -

Where to install?

After failing to get snapcastr to run I am wondering if I misunderstood the readme.md.

Is this supposed to run as a client on my laptop - or does this have to be installed on the server that runs snapserver?

error in running server

hello; any idea on root cause for error below; thks

pi@pi2-snapcaslt-client-01:~/snapcastr $ sudo snapcastrd --host=0.0.0.0 --port=5011 Traceback (most recent call last): File "/usr/local/bin/snapcastrd", line 4, in <module> import snapcastr File "/usr/local/lib/python2.7/dist-packages/snapcastr/__init__.py", line 1, in <module> from .snapcastr import app File "/usr/local/lib/python2.7/dist-packages/snapcastr/snapcastr.py", line 40 return (yield from snapcast.control.create_server(loop, server_addr, reconnect=True)) ^ SyntaxError: invalid syntax pi@pi2-snapcaslt-client-01:~/snapcastr $

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.