fixed spaceapi

This commit is contained in:
henne 2019-12-10 22:52:31 +01:00
parent 3591c14c56
commit f639247018
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();