SignalK / sailgauge

Sailgauge html page to show sailing-related data on one screen
MIT License
6 stars 2 forks source link

Doesnt send subscription on opening #6

Open rob42 opened 9 years ago

rob42 commented 9 years ago

The java server needs a subscription request before data is sent. Line 115 of index.html

connection = new WebSocket(theUrl); connection.onopen = function (msg) { // console.log("open:" + msg); //send sub var sub = {"context":"vessels.motu","subscribe":[{"path":"navigation"},{"path":"environment.wind"},{"path":"environment.depth"}]} connection.send(sub); };

tkurki commented 9 years ago

The subscription should be 'vessels.self'.

tkurki commented 9 years ago

My plan is to convert Sailgauge to a widget in SignalK/instrumentpanel so this may get very little attention.

tkurki commented 8 years ago

Updated to use signalk-js-client, which now needs method to send subscriptions.