# Alarm data integration

**URL:** <https://forum.inductiveautomation.com/t/alarm-data-integration/17544>\
**Category:** Ignition\
**Created:** [March 29, 2018, 7:01am UTC](https://forum.inductiveautomation.com/t/alarm-data-integration/17544 "2018-03-29T07:01:50Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lari.vaananen](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@lari.vaananen](https://forum.inductiveautomation.com/u/lari.vaananen)\
**Post date:** [April 18, 2018, 7:14am UTC](https://forum.inductiveautomation.com/t/alarm-data-integration/17544/6 "2018-04-18T07:14:14Z")

</div>

Thank you for tips and links.  
Simple and efficient way could be also using pure Tcp connection, and some binary protocol.

import SocketServer  
import time

class MyTCPHandler(SocketServer.BaseRequestHandler):

```
def handle(self):
	self.data = self.request.recv(1024).strip()
	print self.data
	#read data from connection, parameters f.ex.
	#and here alarm data could be read and sent to active connection
	self.request.send(self.data.upper())
	time.sleep(2)
	#connection is closed after sending data back, in this example

```

print “starting”   
server = SocketServer.TCPServer((“192.168.1.19”, 2345), MyTCPHandler)  
server.serve\_forever()

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarm-data-integration/17544)._
