Tornado listens in own thread and Fr2 background color in timeline

This commit is contained in:
Ruben van de Ven 2019-11-12 17:57:09 +01:00
parent 7b329fbfba
commit 4d2a52ddb1
2 changed files with 8 additions and 2 deletions

View file

@ -303,20 +303,23 @@ class Panopticon(object):
{"path": web_dir, "default_filename": 'index.html'}),
], debug=True)
self.application.listen(config['web']['port'])
# self.loop.configure(evt_loop)
def start(self):
evt_loop = asyncio.new_event_loop()
asyncio.set_event_loop(evt_loop)
self.loop = tornado.ioloop.IOLoop.current()
self.application.listen(self.config['web']['port'])
thread = threading.Thread(
target=self.broadcastLoggingQueueToWs, kwargs={'wsHandler': self.wsHandler, 'q': self.command.logQueue}, name=f"panopticon/logws")
thread.start()
task = evt_loop.create_task(
self.statusSender(self.wsHandler))

View file

@ -109,6 +109,9 @@ font-size: 20pt;
}
.status-running.lang-fr-FR{
background: #f00;
}
.status-running.lang-fr-FR2{
background: #5a434d;
}
.status-running.lang-de-DE{