--bug
authorBernhard Tittelbach <xro@realraum.at>
Thu, 17 Oct 2013 01:45:44 +0000 (01:45 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Thu, 17 Oct 2013 01:45:44 +0000 (01:45 +0000)
inject_presence.py

index 731469f..aa695ad 100755 (executable)
@@ -16,8 +16,9 @@ zmqctx.linger = 0
 zmqpub = zmqctx.socket(zmq.PUB)
 zmqpub.connect("tcp://wuzzler.realraum.at:4243")
 
+time.sleep(5)
 #listen for sensor data and forward them
-sendR3Message(zmqpub,"PresenceUpdate",{"Presence":True,"Ts":int(time.time())})
+sendR3Message(zmqpub,"PresenceUpdate",{"Present":True,"Ts":int(time.time())})
 
 zmqpub.close()
 zmqctx.destroy()