fixed artnet püaonsf

This commit is contained in:
Fabian Stamm 2017-06-20 14:51:04 +02:00
parent c52a8efdfe
commit f8e0550296
4 changed files with 8 additions and 8 deletions

10
db.json
View File

@ -58,11 +58,11 @@
"value": "0" "value": "0"
}, },
"time": { "time": {
"lframe": 0, "lframe": "0",
"lseconds": 0, "lseconds": "5",
"lminutes": 0, "lminutes": "0",
"lhours": 0, "lhours": "0",
"lmilliseconds": 0 "lmilliseconds": 5000
}, },
"id": "cc954c0f41e0" "id": "cc954c0f41e0"
} }

View File

@ -104,7 +104,7 @@ class Timecode {
if (e.time.milliseconds <= d) { if (e.time.milliseconds <= d) {
console.log(e); console.log(e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(universe, e.art.subnet); artnet.set(universe, e.art.subnet, e.art.value);
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1); this.toTrigger.splice(i, 1);
} }

File diff suppressed because one or more lines are too long

View File

@ -124,7 +124,7 @@ class Timecode {
if(e.time.milliseconds <= d) { if(e.time.milliseconds <= d) {
console.log(e); console.log(e);
ios.emit("artnet", e.art); ios.emit("artnet", e.art);
artnet.set(universe, e.art.subnet) artnet.set(universe, e.art.subnet, e.art.value)
var i = this.toTrigger.indexOf(e); var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1); this.toTrigger.splice(i, 1);
} }