tkurki / navgauge

Navigation gauges & display in your browser
MIT License
36 stars 6 forks source link

Better instructions for getting Navgauge up and running #6

Open tkurki opened 10 years ago

tkurki commented 10 years ago

@patuty : you mentioned that you would like to get Navgauge up and running with your instruments. Could you describe what you have so far working:

CasparvdBroek commented 9 years ago

Could the setup instructions include setting up ngrok to tunnel navgauge off boat. Have managed to tunnel the graphics but failed to receive the boat data via the Primus websocket.

tkurki commented 9 years ago

@CasparvdBroek ngrok works for me like this:

export PORT=8999
bin/cassiopeia
ngrok 8999

How did your websocket connection fail? Is there information in the ngrok console?

CasparvdBroek commented 9 years ago

Thank you for replying Teppo,

Started ngrok with:

export PORT=8080 ./ngrok http 8080

On ngrok console HTTP Requests

GET /primus/ GET /primus/ GET /primus/ GET /favicon.ico 404 Not Found GET /d3.v3/d3.v3.js 200 Ok GET the rest all 200 Ok

When looked in chrome developers console

Websocket connection to 'ws://a2235e7f.ngrok.io/primus/?gaugedata=true' failed : Websocket is closed before the connection is established.

Navgauge works great locally off the wifi hotspot, problem only occurs when accessing via 3G.

Using ngrok version 2.0.17

Caspar On 12/05/2015 8:58 PM, "Teppo Kurki" notifications@github.com wrote:

@CasparvdBroek https://github.com/CasparvdBroek ngrok works for me like this:

export PORT=8999 bin/cassiopeia

ngrok 8999

— Reply to this email directly or view it on GitHub https://github.com/tkurki/navgauge/issues/6#issuecomment-101200688.

tkurki commented 9 years ago

Try without the http parameter. Maybe it excludes ws.

CasparvdBroek commented 9 years ago

Problem solved - changed mobile provider. Vodafone seems to be interfering with websocket.

Thankyou - Caspar On 14/05/2015 9:42 PM, "Teppo Kurki" notifications@github.com wrote:

Try without the http parameter. Maybe it excludes ws.

— Reply to this email directly or view it on GitHub https://github.com/tkurki/navgauge/issues/6#issuecomment-101986769.