bobboau / bragi-mpd Goto Github PK
View Code? Open in Web Editor NEWFull featured, mobile friendly MPD web client, based on MPD.js
License: GNU General Public License v2.0
Full featured, mobile friendly MPD web client, based on MPD.js
License: GNU General Public License v2.0
Hi - apologies for the dumb question but if I have multiple instances of MPD running on multiple servers, do I need a separate instance of websockify for each MPD instance to be able to point it at the right host:port? Thanks.
Hello,
I have an issue using websockify v0.9.0-2 on the branch mentioned in this PR. I got the following error :
└─> websockify --web . 8800 localhost:6600
/usr/lib/python3.9/site-packages/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :8800
- Web server. Web root: /tmp/Bragi-MPD
- No SSL/TLS support (no cert file)
- proxying from :8800 to localhost:6600
127.0.0.1 - - [19/Jan/2021 17:17:02] code 404, message File not found
127.0.0.1 - - [19/Jan/2021 17:17:07] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [19/Jan/2021 17:17:07] connecting to: localhost:6600
handler exception: 'array.array' object has no attribute 'fromstring'
Hi
Can you please add a concise install steps for those of us who are not developers.
I git clone the repo. I install websockify and the python libs via Debian repo. I enter Bragi-MPD folder
./run 8800 localhost:6600
zsh: no such file or directory: ./run
then I try
python -m SimpleHTTPServer ⏎
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/SimpleHTTPServer.py", line 235, in <module>
test()
File "/usr/lib/python2.7/SimpleHTTPServer.py", line 231, in test
BaseHTTPServer.test(HandlerClass, ServerClass)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 606, in test
httpd = ServerClass(server_address, HandlerClass)
File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
self.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
I get this output from websockify:
$ websockify 8800 localhost:6600
WebSocket server settings:
- Listen on :8800
- No SSL/TLS support (no cert file)
- proxying from :8800 to localhost:6600
127.0.0.1 - - [22/Sep/2020 18:13:55] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:13:55] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:13:58] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:13:58] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:01] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:01] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:04] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:04] connecting to: localhost:6600
127.0.0.1 - - [22/Sep/2020 18:14:07] 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
127.0.0.1 - - [22/Sep/2020 18:14:07] connecting to: localhost:6600
The mdp log shows this:
Sep 22 18:13 : client: [348] opened from 127.0.0.1:41806
Sep 22 18:13 : client: [348] closed
Sep 22 18:13 : client: [349] opened from 127.0.0.1:41828
Sep 22 18:13 : client: [349] closed
Sep 22 18:13 : client: [350] opened from 127.0.0.1:41832
Sep 22 18:13 : client: [350] closed
Sep 22 18:14 : client: [351] opened from 127.0.0.1:41836
Sep 22 18:14 : client: [351] closed
Sep 22 18:14 : client: [352] opened from 127.0.0.1:41838
Sep 22 18:14 : client: [352] closed
Sep 22 18:14 : client: [353] opened from 127.0.0.1:41844
Sep 22 18:14 : client: [353] closed
Sep 22 18:14 : client: [354] opened from 127.0.0.1:41848
Sep 22 18:14 : client: [354] closed
Sep 22 18:14 : client: [355] opened from 127.0.0.1:41850
Sep 22 18:14 : client: [355] closed
Sep 22 18:14 : client: [356] opened from 127.0.0.1:41854
Is this some sort of incompatibility with the current version of mpd? I have mpd 0.21.22-1+b3 and websockify 0.9.0+dfsg1-2. I'm on Debian 10 and I'm using nginx to serve Bragi.
Is server password something that is implemented in this? Just curious.
Hello dear developper of Bragi-MPD...
I wonder why it is necessary to use the websockify instead of using directly the mpd socket?
Thanks for your enlightment
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.