From 41ac1cdee1357ec074c2f04c9c44544930149553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Wed, 20 Feb 2013 15:50:16 +0100 Subject: [PATCH] replaced false gps coords for one stream and more red --- app.js | 2 +- public/stylesheets/style.css | 2 ++ views/index.jade | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index d447f83..0513af3 100644 --- a/app.js +++ b/app.js @@ -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); diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 0c334cd..a13a6b2 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -92,4 +92,6 @@ tr.value { td.value { text-align:left; border-left:1px solid white; + font-size:18px; + color: red; } diff --git a/views/index.jade b/views/index.jade index d4fc317..806bc8b 100644 --- a/views/index.jade +++ b/views/index.jade @@ -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); - 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) {