Post data to dashboard
This commit is contained in:
parent
c30c19a068
commit
0be0512552
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
# Send to Martin
|
# Send to Martin
|
||||||
|
|
||||||
|
# Sendo to dashboard
|
||||||
|
to_dashboard(post_data)
|
||||||
|
|
||||||
def to_dashboard(self, data):
|
def to_dashboard(self, data):
|
||||||
ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/alarmsocket")
|
ws = websocket.create_connection("wss://home-safety-visual.eu-gb.mybluemix.net/alarmsocket")
|
||||||
ws.send(data)
|
ws.send(data)
|
||||||
|
|
Loading…
Reference in a new issue