projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d660271
)
gasleak alert
author
Bernhard Tittelbach
<xro@realraum.at>
Sat, 16 Nov 2013 22:09:51 +0000
(22:09 +0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Sat, 16 Nov 2013 22:09:51 +0000
(22:09 +0000)
go/r3-eventbroker_zmq/sockettoevent.go
patch
|
blob
|
history
diff --git
a/go/r3-eventbroker_zmq/sockettoevent.go
b/go/r3-eventbroker_zmq/sockettoevent.go
index
9e4907e
..
a6c479d
100644
(file)
--- a/
go/r3-eventbroker_zmq/sockettoevent.go
+++ b/
go/r3-eventbroker_zmq/sockettoevent.go
@@
-88,6
+88,8
@@
func ParseSocketInputLine(lines [][]byte, ps *pubsub.PubSub, keylookup_socket *z
ps.Pub(r3events.DoorCommandEvent{string(lines[0]), string(lines[1]), string(lines[2]), ts},"doorcmd")
case "BackdoorInfo(ajar):":
ps.Pub(r3events.BackdoorAjarUpdate{string(lines[len(lines)-1]) == "shut", ts},"door")
+ case "GasLeakAlert":
+ ps.Pub(r3events.GasLeakAlert{ts},"sensors")
case "temp0:","temp1:", "temp2:", "temp3:":
sensorid, err := strconv.ParseInt(string(lines[0][4]), 10, 32)
if err != nil {return }