projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rm old stuff
[svn42.git]
/
r3-netstatus
/
sockettoevent.go
diff --git
a/r3-netstatus/sockettoevent.go
b/r3-netstatus/sockettoevent.go
index
405dbbf
..
c49ad6f
100644
(file)
--- a/
r3-netstatus/sockettoevent.go
+++ b/
r3-netstatus/sockettoevent.go
@@
-76,6
+76,7
@@
func ParseSocketInputLine(line string, ps *pubsub.PubSub) { //, brn *brain.Brain
var tidbit interface{}
ts := time.Now().Unix()
if match_presence != nil {
var tidbit interface{}
ts := time.Now().Unix()
if match_presence != nil {
+ if match_presence[2] != "" { ps.Pub(DoorStatusUpdate{match_presence[2] == "closed", true, ts}, "door"); }
tidbit = PresenceUpdate{match_presence[1] == "yes", ts}
//~ brn.Oboite("presence", tidbit)
ps.Pub(tidbit, "presence")
tidbit = PresenceUpdate{match_presence[1] == "yes", ts}
//~ brn.Oboite("presence", tidbit)
ps.Pub(tidbit, "presence")