various changes
This commit is contained in:
parent
711553d4d8
commit
572626e776
|
@ -0,0 +1,19 @@
|
||||||
|
= Debian 8 (Jessie) =
|
||||||
|
|
||||||
|
*Note*: This is not the recommended way of doing it. Ideally, there should be a virtual environment (venv) setup.
|
||||||
|
|
||||||
|
sudo apt-get install python-serial python-numpy python-matplotlib python-pip python-dev
|
||||||
|
|
||||||
|
sudo pip install cython
|
||||||
|
sudo apt-get install libgl1-mesa-dev \
|
||||||
|
libsdl-image1.2-dev \
|
||||||
|
libsdl-mixer1.2-dev \
|
||||||
|
libsdl-ttf2.0-dev \
|
||||||
|
libsmpeg-dev \
|
||||||
|
libsdl1.2-dev \
|
||||||
|
libportmidi-dev \
|
||||||
|
libswscale-dev \
|
||||||
|
libavformat-dev \
|
||||||
|
libavcodec-dev \
|
||||||
|
zlib1g-dev
|
||||||
|
sudo pip install kivy==1.9 --upgrade
|
4
main.py
4
main.py
|
@ -77,7 +77,7 @@ class MainWindow(FloatLayout):
|
||||||
image_output_file = StringProperty('')
|
image_output_file = StringProperty('')
|
||||||
raw_data_output_file = StringProperty('')
|
raw_data_output_file = StringProperty('')
|
||||||
reference_profile_file = StringProperty('')
|
reference_profile_file = StringProperty('')
|
||||||
lastData = ListProperty([])
|
lastData = ListProperty(list())
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -116,7 +116,7 @@ class MainWindow(FloatLayout):
|
||||||
if 'time' in last_point:
|
if 'time' in last_point:
|
||||||
self.lastTime = float(last_point['time'])
|
self.lastTime = float(last_point['time'])
|
||||||
if 'exception' in last_point:
|
if 'exception' in last_point:
|
||||||
self.lastStatus = {'status' : 'error', 'message' : data['exception']}
|
self.lastStatus = {'status' : 'error', 'message' : last_point['exception']}
|
||||||
self.lastData = data
|
self.lastData = data
|
||||||
#if dataThreadDataQueue.qsize():
|
#if dataThreadDataQueue.qsize():
|
||||||
# Logger.debug('update_last_temperature: ' + str(dataThreadDataQueue.qsize()) + ' items left in queue after ' + str(len(data)) + ' items were taken out')
|
# Logger.debug('update_last_temperature: ' + str(dataThreadDataQueue.qsize()) + ' items left in queue after ' + str(len(data)) + ' items were taken out')
|
||||||
|
|
|
@ -40,7 +40,7 @@ class ParseException(Exception):
|
||||||
def parse_line(line, version = defaultVersion):
|
def parse_line(line, version = defaultVersion):
|
||||||
"""Parses a line and returns an array index by name of the data available"""
|
"""Parses a line and returns an array index by name of the data available"""
|
||||||
# @TODO This could be a class based versioning?
|
# @TODO This could be a class based versioning?
|
||||||
data = {}
|
data = dict()
|
||||||
if (version == 0):
|
if (version == 0):
|
||||||
line = line.split(' ')
|
line = line.split(' ')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue