Removing some debugging stuff

This commit is contained in:
Fabian Stamm 2017-06-22 17:15:34 +02:00
parent 2611743592
commit e17121bc11
3 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ if (process.env.vlchost) {
} }
var ioClient = require("socket.io-client")("http://" + vlchost + ":5000", { reconnect: true }); var ioClient = require("socket.io-client")("http://" + vlchost + ":5000", { reconnect: true });
ioClient.on("connect", () => { ioClient.on("connect", () => {
console.log("connected"); console.log("connected to vlc");
}); });
var ios = io(http); var ios = io(http);
const artnetp = require("artnet"); const artnetp = require("artnet");
@ -108,7 +108,7 @@ class Timecode {
var d = vlc.time; var d = vlc.time;
this.toTrigger.forEach(e => { this.toTrigger.forEach(e => {
if (e.time.milliseconds <= d) { if (e.time.milliseconds <= d) {
console.log("v", e); //console.log("v",e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(e.art.universe, Number(e.art.subnet), Number(e.art.value)); artnet.set(e.art.universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
@ -126,7 +126,7 @@ class Timecode {
update() { update() {
this.toTrigger.forEach(e => { this.toTrigger.forEach(e => {
if (e.time.milliseconds <= d) { if (e.time.milliseconds <= d) {
console.log("u", e); //console.console.log("u", e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(Number(e.art.universe), Number(e.art.subnet), Number(e.art.value)); artnet.set(Number(e.art.universe), Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
@ -294,7 +294,7 @@ ios.on("connection", socket => {
artnet.set(Number(data.universe), Number(data.subnet), Number(data.value)); artnet.set(Number(data.universe), Number(data.subnet), Number(data.value));
}); });
socket.on("load_event", (data) => { socket.on("load_event", (data) => {
console.log(data); //console.log(data);
db.get(data.id).assign({ db.get(data.id).assign({
load: data.art load: data.art
}).write(); }).write();

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ if(process.env.vlchost){
} }
var ioClient = require("socket.io-client")("http://" + vlchost + ":5000", {reconnect:true}); var ioClient = require("socket.io-client")("http://" + vlchost + ":5000", {reconnect:true});
ioClient.on("connect", ()=>{ ioClient.on("connect", ()=>{
console.log("connected"); console.log("connected to vlc");
}); });
var ios = io(http); var ios = io(http);
const artnetp = require("artnet"); const artnetp = require("artnet");
@ -127,7 +127,7 @@ class Timecode {
var d = vlc.time; var d = vlc.time;
this.toTrigger.forEach(e=>{ this.toTrigger.forEach(e=>{
if(e.time.milliseconds <= d) { if(e.time.milliseconds <= d) {
console.log("v",e); //console.log("v",e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(e.art.universe, Number(e.art.subnet), Number(e.art.value)); artnet.set(e.art.universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
@ -146,7 +146,7 @@ class Timecode {
update() { update() {
this.toTrigger.forEach(e=>{ this.toTrigger.forEach(e=>{
if(e.time.milliseconds <= d) { if(e.time.milliseconds <= d) {
console.log("u", e); //console.console.log("u", e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(Number(e.art.universe), Number(e.art.subnet), Number(e.art.value)); artnet.set(Number(e.art.universe), Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
@ -345,7 +345,7 @@ ios.on("connection", socket=>{
}); });
socket.on("load_event", (data)=>{ socket.on("load_event", (data)=>{
console.log(data); //console.log(data);
db.get(data.id).assign({ db.get(data.id).assign({
load:data.art load:data.art
}).write(); }).write();