Browse Source

Removing some debugging stuff

master
Fabian Stamm 4 years ago
parent
commit
e17121bc11
  1. 8
      lib/index.js
  2. 2
      lib/index.js.map
  3. 8
      src/index.ts

8
lib/index.js

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

2
lib/index.js.map
File diff suppressed because it is too large
View File

8
src/index.ts

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

Loading…
Cancel
Save