minor changes

This commit is contained in:
Lucas Pleß 2013-01-15 23:14:44 +01:00
parent 02410bc483
commit 850701f7b1
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,5 @@
var readline = require('readline');
var dateFormat = require('dateformat');
var osc = require('node-osc');
var listenPort = 8000;
@ -9,7 +10,8 @@ var oscClient = new osc.Client(hubAddress, hubPort);
var oscServer = new osc.Server(listenPort, '0.0.0.0');
oscServer.on("message", function (msg, rinfo) {
console.log("message: " + msg);
var dateString = dateFormat(new Date(), "HH:MM:ss.L");
console.log(dateString + "\t" + msg);
});
oscClient.send('/subscribe','192.168.23.102', listenPort, "sekret");
@ -42,4 +44,6 @@ function isNumber(value) {
return true;
}
return !isNaN(value - 0);
}
}

View File

@ -1,7 +1,7 @@
var osc = require('node-osc');
var hubAddress = '192.168.23.43';
var hubPort = 7110;
var hubAddress = '192.168.23.31';
var hubPort = 2345;
var oscClient = new osc.Client(hubAddress, hubPort);
@ -15,6 +15,6 @@ function fubs() {
}
setInterval(fubs, 200);
setInterval(fubs, 50);