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

Help Installing on Rpi #2

Open
fallenicarus opened this issue Sep 16, 2018 · 1 comment
Open

Help Installing on Rpi #2

fallenicarus opened this issue Sep 16, 2018 · 1 comment

Comments

@fallenicarus
Copy link

fallenicarus commented Sep 16, 2018

Can you please elaborate how to integrate the interface.html file using websockify - especially if I have the html file installed and saved locally. I have websockify installed, the interface.html is also installed and updated. I am not sure how to get the processes integrated?

Here is what I see:
$ websockify -v 2027 :1705
WebSocket server settings:

  • Listen on :2027
  • No SSL/TLS support (no cert file)
  • proxying from :2027 to :1705
    192.168.1.136: new handler Process
    MBP.lan - - [16/Sep/2018 00:30:20] code 405, message Method Not Allowed
    MBP.lan - - [16/Sep/2018 00:30:20] "GET / HTTP/1.1" 405 -
    Ignoring interrupted syscall
    192.168.1.136: new handler Process
    MBP.lan - - [16/Sep/2018 00:30:20] code 405, message Method Not Allowed
    MBP.lan - - [16/Sep/2018 00:30:20] "GET /favicon.ico HTTP/1.1" 405 -
@derglaus
Copy link
Owner

Hi fallenicarus,

I'm currently on holiday so I cannot check my websockify messages...

Usually you don't have to to integrate anything: first you need snapcast up and running on your rpi (you can test it for example by the android app)
Then you start websockify on the rpi.

If you want to have the interface.HTML locally:
Download it to the computer or mobile phone from where you want to access the interface (usually not the rpi). You can save it for example on the desktop. edit the file and uncomment the first line in the <script section, and comment the second. Edit the address in the first line: roomberryblue.fritz.box should be the name or ip-address of your snapcast server. (in my house it's roomberryblue.fritz.box)

If you want to store the file on your rpi you don't need to change anything on the file, but install a Webserver like Apache on the rpi which delivers the interface.html to the computer where you want to access the interface. Installing the Webserver is a bit more work, so in case of doubt try it first with the first option.

What websockify does is not delivering the interface, but translate the snapcast control protocol so that Javascript can access it...

I hope that helped a bit...
Cheers!

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