diff --git a/picoreflowd.py b/picoreflowd.py index 599371b..344bde6 100644 --- a/picoreflowd.py +++ b/picoreflowd.py @@ -87,6 +87,7 @@ def handle_storage(): msgdict["resp"]="FAIL" print "sending:" +str(msgdict) wsock.send(json.dumps(msgdict)) + wsock.send(get_profiles()) except WebSocketError: break log.info("websocket (storage) closed") diff --git a/public/index.html b/public/index.html index 9b408fd..555f214 100644 --- a/public/index.html +++ b/public/index.html @@ -165,7 +165,6 @@ function leaveEditMode() { graph.series[0].options.marker.enabled=false; graph.series[0].options.draggableX=false; graph.series[0].options.draggableY=false; - ws_storage.send('GET'); graph.render(); } @@ -259,7 +258,7 @@ ws_storage.onopen = function() console.log("Sending: " + JSON.stringify(message)); ws_storage.send(JSON.stringify(message)); } else { - ws_storage.send("GET"); + //do nothing } } return; @@ -289,6 +288,8 @@ ws_storage.onopen = function() } } + + graph.render(); }