Merge branch 'henne-master-patch-35546' into 'master'

fixed spaceapi

See merge request ctdo/raumstatus!1
This commit is contained in:
henne 2019-12-10 22:54:28 +01:00
commit 0e7edc330b
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ ctdoapi.on('done', function (answer) {
simpleanswer.count = answer.count;
simpleanswer.names = answer.names;
spaceanswer.sensors.people_now_present.value = answer.count;
spaceanswer.sensors.people_now_present.value = answer.names;
spaceanswer.sensors.people_now_present[0].value = answer.count;
spaceanswer.sensors.people_now_present[0].names = answer.names;
if (usercountanswer.datapoints.length > 20) {
usercountanswer.datapoints.shift();