From 9b81effd2fe52934be924d174ea2c020563be6e1 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 22 Jun 2013 20:26:11 +0000 Subject: [PATCH] update spaceapi code for immediate update on door state --- r3-webstatus-spaceapi/main.go | 1 + 1 file changed, 1 insertion(+) 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") -- 1.7.10.4