Post data to dashboard

This commit is contained in:
Nico Schottelius 2016-09-17 03:45:17 +02:00
parent c30c19a068
commit 0be0512552

View file

@ -44,6 +44,9 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
# Send to Martin
# Sendo to dashboard
to_dashboard(post_data)
def to_dashboard(self, data):
ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/alarmsocket")
ws.send(data)