Skip to content
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

Can't get it to work ;( #7

Open
Uatschitchun opened this issue Jan 29, 2020 · 6 comments
Open

Can't get it to work ;( #7

Uatschitchun opened this issue Jan 29, 2020 · 6 comments

Comments

@Uatschitchun
Copy link

Installed wbsockify with
sudo apt-get install websockify
run
websockify 2027 :1705

set this in interfaces.html:
var connection = new WebSocket('ws:/localhost:2027', 'binary');

and opened the html in my local firefox, but getting only a grey screen ;(

This is snapserver's log:

snapserver[13988]: ControlServer::NewConnection: 127.0.0.1
snapserver[13988]: 2020-01-29 12-03-25 [Notice] (handleAccept) ControlServer::NewConnection: 127.0.0.1
snapserver[13988]: 2020-01-29 12-04-06 [Error] (operator()) Error while reading from control socket: End of file
snapserver[13988]: ControlServer::NewConnection: 127.0.0.1
snapserver[13988]: 2020-01-29 12-04-22 [Notice] (handleAccept) ControlServer::NewConnection: 127.0.0.1
snapserver[13988]: 2020-01-29 12-04-22 [Error] (cleanup) Removing 1 inactive session(s), active sessions: 2
snapserver[13988]: Removing 1 inactive session(s), active sessions: 2

Any idea on this?

@derglaus
Copy link
Owner

Which snapcast version do you use?

Badaix committed a change some while ago to make it compatible to the newer snapcast versions (and included WebSocket in snapcast)

I did not update my snapcast yet, but if you use the newest version you might try the interface and Webserver included in the package...

@Uatschitchun
Copy link
Author

18.0

you might try the interface and Webserver included in the package...
can't find any documentation on it!?

@derglaus
Copy link
Owner

I just read this:
badaix/snapcast#481

The other thing what I read is
#6

Sorry that I currently have no up-to-date instance of snapcast. Then I could help you better :(

@Uatschitchun
Copy link
Author

Thank you very much!
The interfaces.html isn't packaged within the deb and so I haven't seen it.
But copying it, setting doc_root to the appropriate location and open the URL (127.1:1780/interfaces.html) make it work! Nice :-)

Would be cool if there were the same options available as with the snapdroid app (setting latency for instance).

@derglaus
Copy link
Owner

Good to know that it works :)

You can set the latency in the same location like the name of the client (behind the clients name there is a button.) First it asks for the name, second for the latency. I think the only thing I didn't implement back then was the option to delete a client.

Grouping, edit name & latency, changing source, mute (client & group) should work.
The volume can be controlled by the sliders or by clicking on the + and -. The further you click from 0 the bigger the steps are.

@Uatschitchun
Copy link
Author

Thx for the head up :-)

Will test!

I somehow had the impression of the webui being stuck after some time. Will keep an eye on it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants