From: Bernhard Tittelbach Date: Sat, 22 Jun 2013 20:26:11 +0000 (+0000) Subject: update spaceapi code for immediate update on door state X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=9b81effd2fe52934be924d174ea2c020563be6e1;p=svn42.git update spaceapi code for immediate update on door state --- diff --git a/r3-webstatus-spaceapi/main.go b/r3-webstatus-spaceapi/main.go index f4e4e76..a34390b 100644 --- a/r3-webstatus-spaceapi/main.go +++ b/r3-webstatus-spaceapi/main.go @@ -82,6 +82,7 @@ func parseSocketInputLine(line string) { spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("TorwaechterLock", "Türschloß", match_status[1] == "closed")) spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("TorwaechterAjarSensor", "Türkontakt", match_status[3] == "shut")) //spaceapidata.MergeInSensor(spaceapi.MakeDoorAjarSensor("Torwaechter", "Front Door", match_presence[3] == "shut")) + publishStateToWeb() } else if match_button != nil { statusstate.buttonpress_until = time.Now().Unix() + 3600 spaceapidata.AddSpaceEvent("PanicButton", "check-in", "The button has been pressed")