From 0be05125521817ef1afe3e7c26a72b8457aa333b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 17 Sep 2016 03:45:17 +0200 Subject: [PATCH] Post data to dashboard --- web-to-db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web-to-db.py b/web-to-db.py index 0c77b6f..ae11e05 100644 --- a/web-to-db.py +++ b/web-to-db.py @@ -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)