replaced false gps coords for one stream and more red

This commit is contained in:
Stefan Kögl 2013-02-20 15:50:16 +01:00
parent 77858bc9ad
commit 41ac1cdee1
3 changed files with 9 additions and 3 deletions

2
app.js
View File

@ -13,7 +13,7 @@ var cosmFeeds = {53146 : ["GearboxRPM", "Windspeed", "Pitch"],
43573 : ["Humidity1", "Air pressure2", "Thermo3"]};
var cosmClient = new cosm(cosmStreams, 'orKBBdLAKuKJU-RxqmZpZB6q0baSAKxBTVhKdjhUNkdyVT0g');
var oscClient = new osc('localhost', 7110);
var oscClient = new osc('chaosc', 7110);
function logErrors(err, req, res, next) {
console.error(err.stack);

View File

@ -92,4 +92,6 @@ tr.value {
td.value {
text-align:left;
border-left:1px solid white;
font-size:18px;
color: red;
}

View File

@ -64,7 +64,7 @@ block content
});
var socket = io.connect('http://localhost');
var socket = io.connect(window.location.hostname);
socket.on('gotstream', function(data) {
console.log("gotstream " + data.id);
@ -74,7 +74,11 @@ block content
$("div#stream-" + data.id + " td.longitude").text(data.lon);
var now = new Date();
$("div#stream-" + data.id + " td.update").text(now);
if (data.id != 43573) {
loadMap($('div#map-' + data.id)[0], data.lat, data.lon);
} else {
loadMap($('div#map-' + data.id)[0], 34.737596,135.341564);
}
});
function add_data(data) {