xkonni / snapcastr Goto Github PK
View Code? Open in Web Editor NEWwebinterface to control a snapserver
License: MIT License
webinterface to control a snapserver
License: MIT License
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.
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?
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 $
[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 -
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
Hi!
I want to run this in subdir of server.
e.g.: localhost/snapcastr
Is this supported?
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?!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.