From f639247018f86773692de3f375c67b7ed21509f1 Mon Sep 17 00:00:00 2001 From: henne Date: Tue, 10 Dec 2019 22:52:31 +0100 Subject: [PATCH] fixed spaceapi --- node/statusbot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/statusbot.js b/node/statusbot.js index d620c6b..46df67b 100644 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -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();