Browse Source

Add a detailed description + script for participants

Baptiste Jonglez 10 years ago
parent
commit
3455728dd3
3 changed files with 27 additions and 2 deletions
  1. 2 1
      peerfinder.py
  2. 24 0
      templates/participant.html
  3. 1 1
      scripts/run.sh

+ 2 - 1
peerfinder.py

@@ -171,7 +171,8 @@ def create_participant():
         participant = Participant(request.form['name'], request.form['contact'])
         db.session.add(participant)
         db.session.commit()
-        return "OK\nPlease wait for manual validation\n"
+        return render_template('participant.html', participant=participant,
+                               uuid=participant.uuid)
     else:
         return "Invalid arguments"
 

+ 24 - 0
templates/participant.html

@@ -0,0 +1,24 @@
+<p>Thank you for participating!</p>
+
+<p>Your unique UUID is <strong>{{ uuid }}</strong>.<br />
+It will be used to identify you to the measurement platform when you submit
+reports, so you should keep it secret.</p>
+
+<p>The machine name you provided is <strong>&quot;{{ participant.name
+}}&quot;</strong>, and the contact you gave is <strong>&quot;{{
+participant.contact }}&quot;</strong>.  They will appear on measurement
+results.  If you wish to change one of them, contact us manually.</p>
+
+<p>Please note that new participants are manually moderated, so you should
+ping on IRC to make sure your access is validated.  You can already setup
+the measurement script, it will start working as soon as your access is
+validated.</p>
+
+<p>Here is a script you can run to fetch measurements and report back the
+latency, with your UUID already pre-configured:</p>
+
+<p>
+<pre>
+{% include "run.sh" %}
+</pre>
+</p>

+ 1 - 1
scripts/run.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Put your UUID here, and keep it secret!
-UUID="00000000-0000-0000-0000-000000000000"
+UUID="{{ uuid }}"
 PEERFINDER="http://172.23.184.112:8888"
 NB_PINGS=5
 SLEEP=10