diff --git a/floppies/giulia/cgi-bin/index.cgi b/floppies/giulia/cgi-bin/index.cgi
index b145d97..0cde9e9 100755
--- a/floppies/giulia/cgi-bin/index.cgi
+++ b/floppies/giulia/cgi-bin/index.cgi
@@ -5,8 +5,8 @@ import cgitb; cgitb.enable()
from jinja2 import Template
# Directory => ITEMS list (all files with a timestamp name, grouped)
-ff = os.listdir(".")
-tpat = re.compile(r"^(\d\d\d\d)(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)Z")
+ff = os.listdir("clips")
+tpat = re.compile(r"^(\d\d\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)")
items = {}
for f in ff:
base, ext = os.path.splitext(f)
@@ -19,8 +19,11 @@ for f in ff:
items[t][ext] = f
items = [items[key] for key in sorted(items, reverse=True)]
+for i in items[1:]:
+ for f in i.items():
+ print "deleting ", f
-# # dump the data (debugging)
+# dump the data (debugging)
# print "Content-type: text/plain"
# print ""
# print json.dumps(items, indent=2)
@@ -31,20 +34,26 @@ print ""
print Template(u"""
RECORD O RAMA
+
-
+
{% for i in items %}
-
+
{% endfor %}
-
+
""").render(items=items).encode("utf-8")
\ No newline at end of file
diff --git a/floppies/giulia/cgi-bin/record.cgi b/floppies/giulia/cgi-bin/record.cgi
deleted file mode 100755
index cdb5c90..0000000
--- a/floppies/giulia/cgi-bin/record.cgi
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-import cgi, sys, datetime
-import cgitb; cgitb.enable()
-import subprocess
-
-print "Content-type: text/html"
-print
-print "hello from python
"
-
-n = datetime.datetime.now()
-
-basename = n.strftime("%Y-%m-%dT%H-%M-%S")
-
-o1 = subprocess.check_output(["scripts/black2.py", "--output", basename+".avi", "--time", "5"])
-print o1 + "
\n"
-o2 = subprocess.check_output(["ffmpeg", "-i", basename+".avi", "-y", basename+".mp4"])
-print o2 + "
\n"
-o2 = subprocess.check_output(["ffmpeg", "-i", basename+".avi", "-ss", "1", "-vframes", "1", "-y", basename+".jpg"])
-print o2 + "
\n"
-
-# print """VIDEO""".format(basename)
-print """OK"""
diff --git a/floppies/giulia/scripts/startserver.sh b/floppies/giulia/scripts/startserver.sh
new file mode 100644
index 0000000..13183b9
--- /dev/null
+++ b/floppies/giulia/scripts/startserver.sh
@@ -0,0 +1 @@
+python -m CGIHTTPServer
diff --git a/floppies/giulia/scripts/voiceguide.sh b/floppies/giulia/scripts/voiceguide.sh
new file mode 100644
index 0000000..97cdf62
--- /dev/null
+++ b/floppies/giulia/scripts/voiceguide.sh
@@ -0,0 +1,41 @@
+
+espeak "Gait analysis number one." -v en
+sleep 1
+
+espeak "Please state your name:" -v en
+sleep 2
+
+basename=clips/$(date +%Y-%m-%d-%H-%M-%S)
+echo recording $basename.avi...
+scripts/black2.py --output $basename.avi --time 3
+# convert to mp4
+ffmpeg -i $basename.avi -y $basename.mp4
+# make a thumnail image
+ffmpeg -i $basename.avi -vframes 1 -ss 0.5 -y $basename.jpg
+rm $basename.avi
+
+espeak "ciao ciao halo" -v en
+sleep 2
+
+basename=clips/$(date +%Y-%m-%d-%H-%M-%S)
+echo recording $basename.avi...
+scripts/black2.py --output $basename.avi --time 3
+# convert to mp4
+ffmpeg -i $basename.avi -y $basename.mp4
+# make a thumnail image
+ffmpeg -i $basename.avi -vframes 1 -ss 0.5 -y $basename.jpg
+rm $basename.avi
+
+
+
+
+# subprocess.call(["espeak", "Please state your name:", "-v", "en"])
+# sleep(2)
+# Position yourself 2 to 3 meters away from the Tetra Gamma Circulaire.
+# Walk towards the Tetra Gamma Circulaire in a straight line .
+# Position yourself one meter away to the left of the Tetra Gamma Circulaire.
+# Walk from left to right in front of the Tetra Gamma Circulaire.
+# Turn your back to the Tetra Gamma Circulaire.
+# Walk away from the Tetra Gamma Circulaire.
+# Position yourself 2 to 3 meters away from the Tetra Gamma Circulaire.
+# Wal
\ No newline at end of file