From 7a512ee77d0c56da080495df1c6aef4f4a938efe Mon Sep 17 00:00:00 2001 From: smash Date: Thu, 22 Feb 2018 18:12:46 +0100 Subject: [PATCH] lastchange was in ms, spaceapi expects seconds here --- node/statusbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/statusbot.js b/node/statusbot.js index a95884c..9e6d52e 100755 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -93,7 +93,7 @@ ippoll.on('doneCount', function (num) { ippoll.on('doneState', function (state) { spaceanswer.state.open = state; - spaceanswer.state.lastchange = new Date().getTime(); + spaceanswer.state.lastchange = new Date().getTime() / 1000; simpleanswer.state = state; simpleanswer.lastchange = spaceanswer.state.lastchange; io.sockets.emit('sdata', {data: simpleanswer});