Commit a2653796 authored by D1plo1d's avatar D1plo1d

Getting websockets working on ubuntu and updating README

parent 0871caf2
......@@ -28,7 +28,7 @@ A precompiled version is available at http://koti.kapsi.fi/~kliment/printrun/
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
1. `sudo apt-get install python-serial python-wxgtk2.8 python-pyglet python-tornado python-setuptools python-libxml2 python-gobject`
2. `sudo apt-get install avahi-daemon python-avahi`
2. `sudo apt-get install avahi-daemon python-avahi tornado`
3. `sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
### Fedora 15 and newer (untested)
......@@ -36,7 +36,7 @@ You can run Printrun directly from source, as there are no packages available ye
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
1. `sudo yum install pyserial wxpython pyglet python-tornado`
2. `sudo easy_install libxml2`
2. `sudo apt-get install avahi-daemon python-avahi tornado`
2. `sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
### Archlinux
......
......@@ -20,7 +20,7 @@ Vagrant.configure("2") do |config|
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network :private_network, ip: "192.168.33.10"
config.vm.network :private_network, ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
......
......@@ -19,7 +19,8 @@
var connect = function() {
// Let us open a web socket
var url = "ws://localhost:8888/socket?user=admin&password=admin";
var hostname = window.location.hostname;
var url = "ws://"+hostname+":8888/socket?user=admin&password=admin";
console.log(url);
var ws = new WebSocket(url, "construct.text.0.0.1");
$(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment