Esempio n. 1
0
if not BASE_SESSION_DIR:
	os.exit(1)

try:
	with open(BASE_CACHE, 'w') as f:
		f.write(BASE_SESSION_DIR)
except IOError:
	pass

mypath=path.dirname(path.realpath(__file__))

s = ServiceSpec()

s['nexus'] = ROOT+'/nexus/physiology.py -p %s %s'%(NEXUS_PIN, NEXUS_ADDR)

"""
# TODO: Find a nicer way to find the devices! This configuration working
#	 may be purely luck.
s.add(name='front_video',
	command=ROOT+'/gstreamer/uvch264record.py -u %i -v "%s" -a "%s"'%(5000, "/dev/video0", "hw:0,0"),
	outfile="%(session_dir)s/%(name)s.mkv")
s.add(name='in_video',
	command=ROOT+'/gstreamer/uvch264record.py -u %i -v "%s" -a "%s"'%(5010, "/dev/video1", "hw:1,0"),
	outfile="%(session_dir)s/%(name)s.mkv")
"""


#s['sensors'] = ROOT+'/android/sensors.py'
s['noise_stimulus'] = ROOT+'/stimulus/white_noise.py'

Esempio n. 2
0
try:
	with open(BASE_CACHE, 'w') as f:
		f.write(BASE_SESSION_DIR)
except IOError:
	pass

mypath=path.dirname(path.realpath(__file__))

s = ServiceSpec()

s['nexus'] = ROOT+'/nexus/physiology.py -p %s %s'%(NEXUS_PIN, NEXUS_ADDR)

# TODO: Find a nicer way to find the devices! This configuration working
#	 may be purely luck.
s.add(name='front_video',
	command=ROOT+'/gstreamer/uvch264record.py -u %i -v "%s" -a "%s"'%(5000, "/dev/video0", "hw:0,0"),
	outfile="%(session_dir)s/%(name)s.mkv")
s.add(name='in_video',
	command=ROOT+'/gstreamer/uvch264record.py -u %i -v "%s" -a "%s"'%(5010, "/dev/video1", "hw:1,0"),
	outfile="%(session_dir)s/%(name)s.mkv")


s['location'] = ROOT+'/android/location.py'
s['sensors'] = ROOT+'/android/sensors.py'


run_ui(spec=s,
	base_dir=BASE_SESSION_DIR,
	content=open(path.join(mypath, 'tru.html')).read()
	)