Merge branch 'corona_hotfix' into 'master'
Space nun dauerhaft zu (aufgrund von corona...) aber wir können buzzern und... See merge request ctdo/raumstatus!2
This commit is contained in:
commit
48925fdd99
|
@ -97,9 +97,11 @@ ctdoapi.on('done', function (answer) {
|
||||||
});
|
});
|
||||||
|
|
||||||
ippoll.on('doneState', function (state) {
|
ippoll.on('doneState', function (state) {
|
||||||
spaceanswer.state.open = state;
|
//spaceanswer.state.open = state;
|
||||||
|
spaceanswer.state.open = false;
|
||||||
spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000);
|
spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000);
|
||||||
simpleanswer.state = state;
|
//simpleanswer.state = state;
|
||||||
|
simpleanswer.state = false;
|
||||||
simpleanswer.lastchange = spaceanswer.state.lastchange;
|
simpleanswer.lastchange = spaceanswer.state.lastchange;
|
||||||
simpleanswer.lastchange = new Date().getTime();
|
simpleanswer.lastchange = new Date().getTime();
|
||||||
io.sockets.emit('sdata', {data: simpleanswer});
|
io.sockets.emit('sdata', {data: simpleanswer});
|
||||||
|
|
Loading…
Reference in New Issue