replaced false gps coords for one stream and more red
This commit is contained in:
parent
77858bc9ad
commit
41ac1cdee1
2
app.js
2
app.js
|
@ -13,7 +13,7 @@ var cosmFeeds = {53146 : ["GearboxRPM", "Windspeed", "Pitch"],
|
||||||
43573 : ["Humidity1", "Air pressure2", "Thermo3"]};
|
43573 : ["Humidity1", "Air pressure2", "Thermo3"]};
|
||||||
|
|
||||||
var cosmClient = new cosm(cosmStreams, 'orKBBdLAKuKJU-RxqmZpZB6q0baSAKxBTVhKdjhUNkdyVT0g');
|
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) {
|
function logErrors(err, req, res, next) {
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
|
|
|
@ -92,4 +92,6 @@ tr.value {
|
||||||
td.value {
|
td.value {
|
||||||
text-align:left;
|
text-align:left;
|
||||||
border-left:1px solid white;
|
border-left:1px solid white;
|
||||||
|
font-size:18px;
|
||||||
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ block content
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var socket = io.connect('http://localhost');
|
var socket = io.connect(window.location.hostname);
|
||||||
|
|
||||||
socket.on('gotstream', function(data) {
|
socket.on('gotstream', function(data) {
|
||||||
console.log("gotstream " + data.id);
|
console.log("gotstream " + data.id);
|
||||||
|
@ -74,7 +74,11 @@ block content
|
||||||
$("div#stream-" + data.id + " td.longitude").text(data.lon);
|
$("div#stream-" + data.id + " td.longitude").text(data.lon);
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
$("div#stream-" + data.id + " td.update").text(now);
|
$("div#stream-" + data.id + " td.update").text(now);
|
||||||
loadMap($('div#map-' + data.id)[0], data.lat, data.lon);
|
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) {
|
function add_data(data) {
|
||||||
|
|
Loading…
Reference in New Issue