projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb53c27
)
backdoor spaceapi
author
Bernhard Tittelbach
<xro@realraum.at>
Tue, 8 Oct 2013 17:08:29 +0000
(17:08 +0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Tue, 8 Oct 2013 17:08:29 +0000
(17:08 +0000)
go/r3-netstatus/webstatus.go
patch
|
blob
|
history
diff --git
a/go/r3-netstatus/webstatus.go
b/go/r3-netstatus/webstatus.go
index
d29fe02
..
537b5ab
100644
(file)
--- a/
go/r3-netstatus/webstatus.go
+++ b/
go/r3-netstatus/webstatus.go
@@
-80,6
+80,9
@@
func EventToWeb(ps *pubsub.PubSub) {
case r3events.PresenceUpdate:
statusstate.present = event.Present
publishStateToWeb()
+ case r3events.BackdoorAjarUpdate:
+ spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("HintertorwaechterAjarSensor", "Hintertürkontakt", event.Shut))
+ publishStateToWeb()
case r3events.DoorAjarUpdate:
spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("TorwaechterAjarSensor", "Türkontakt", event.Shut))
publishStateToWeb()