X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=go%2Fr3-netstatus%2Fwebstatus.go;h=4ebfbfb8c56119d6447f939056b4974f76747ab1;hp=489d7704e4093d9ff4b19b14e78f9202b9891203;hb=a8e0651d52192d208758ae9a59e21af313685da4;hpb=27f6ab20f2c9c62c3cf6accb18c3ff169b9d30ff diff --git a/go/r3-netstatus/webstatus.go b/go/r3-netstatus/webstatus.go index 489d770..4ebfbfb 100644 --- a/go/r3-netstatus/webstatus.go +++ b/go/r3-netstatus/webstatus.go @@ -87,9 +87,9 @@ func EventToWeb(ps *pubsub.PubSub) { case r3events.DoorLockUpdate: spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("TorwaechterLock", "Türschloß", event.Locked)) publishStateToWeb() - case r3events.ButtonPressUpdate: + case r3events.BoreDoomButtonPressEvent: statusstate.buttonpress_until = event.Ts + 3600 - spaceapidata.AddSpaceEvent("PanicButton", "check-in", "The button has been pressed") + spaceapidata.AddSpaceEvent("BoreDOOMButton", "check-in", "The button has been pressed") publishStateToWeb() case r3events.TempSensorUpdate: spaceapidata.MergeInSensor(spaceapi.MakeTempCSensor("Temp0","Decke", event.Value))