Esempio n. 1
0
if BASE_SESSION_DIR is None:
	BASE_SESSION_DIR=sh("zenity --title \\\"Base directory for sessions.\\\" --file-selection --directory").std_out.strip()

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")
"""

Esempio n. 2
0
if BASE_SESSION_DIR is None:
	BASE_SESSION_DIR=sh("zenity --title \\\"Base directory for sessions.\\\" --file-selection --directory").std_out.strip()

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['location'] = ROOT+'/android/location.py'
s['sensors'] = ROOT+'/android/sensors.py'