jrosti / lumikki

Automatically exported from code.google.com/p/lumikki
0 stars 0 forks source link

change ir.py connect and start data manipulation to device side #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in ir.py move below functionality to device side:

def connectAndSendSettings():
    c = conf()
    # TODO: path parsing belongs to device side, remove filename and add timestamp to data -dictionary 
    path = c.get('ir_parentfolder') + '\\' + c.get('g_measurementid') + '-' + c.get('g_timestamp') 
    data ={
           "expId":c.get('g_measurementid'),
           "filename":c.get('g_measurementid') + '-',
           "path":path,
           "framerate":float(c.get('ir_framerate')),
           "recordTime":float(c.get('ir_recordtime')),
           "storeCondition":int(c.get('ir_storecondition')),
           "stopCondition":int(c.get('ir_stopcondition')),
           "startCondition":int(c.get('ir_startcondition')),
           "startValue":int(c.get('ir_startvalue')),
           "storeValue":int(c.get('ir_storevalue')),
           "recordFormat":int(c.get('ir_recordformat')),
           }

Original issue reported on code.google.com by jhkoi...@gmail.com on 20 Apr 2011 at 1:58