Commit 056bffcf authored by D1plo1d's avatar D1plo1d

Adding the job progress to the prontserve websocket headers

parent 4b0d6ab2
...@@ -150,6 +150,7 @@ class ConstructSocketHandler(tornado.websocket.WebSocketHandler): ...@@ -150,6 +150,7 @@ class ConstructSocketHandler(tornado.websocket.WebSocketHandler):
self.on_sensor_changed() self.on_sensor_changed()
for k, v in prontserve.target_values.iteritems(): for k, v in prontserve.target_values.iteritems():
self.on_uncaught_event("target_temp_changed", {k: v}) self.on_uncaught_event("target_temp_changed", {k: v})
self.on_uncaught_event("job_progress_changed", prontserve.previous_job_progress)
print "WebSocket opened. %i sockets currently open." % len(prontserve.listeners) print "WebSocket opened. %i sockets currently open." % len(prontserve.listeners)
def send(self, dict_args = {}, **kwargs): def send(self, dict_args = {}, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment