fix: data logger now called from main, plot in thread

This commit is contained in:
Bernhard Stampfer
2016-06-05 23:00:25 +02:00
parent 042d0c86fa
commit adbe4f858a
6 changed files with 194 additions and 20 deletions

9
run.py
View File

@@ -5,6 +5,9 @@ from os import urandom
from app import gui
import thread
import logging
from app import settings
from app import datalog
from app import plot
if __name__ == '__main__':
@@ -15,6 +18,12 @@ if __name__ == '__main__':
logging.info("Baroness started!")
print "Baroness started: logging to ", logfile
#start data logging
if settings.settings.fridgeLogging:
logger = datalog.DataLogger()
#start plot thread
plotter = plot.Plotter()
#start gui
wx = wx.App()