Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Ultima revisione Entrambe le parti successive la revisione
projects:quickpoll [01/03/2015 18:28]
admin
projects:quickpoll [01/03/2015 18:40]
admin [How does it work]
Linea 11: Linea 11:
 {{http://​www.maetech.it/​docs/​proj/​quickpoll/​smartphone.jpg?​200}} {{http://​www.maetech.it/​docs/​proj/​quickpoll/​smartphone.jpg?​200}}
  
-==== How does it work ====+===== Usage =====
  
 +Requirements:​
 +  * a **webserver** running on the same PC where runs the QT application
 +  * a **class C** network with wireless access point, better if configured to redirect connected smartphones to the webserver
 +
 +The desktop QT application allows the user to start or stop voting for a person, group or something.
 +
 +When starting polling the application writes a html/php page in the webserver root directory.
 +
 +The script allows each user to vote choosing between three buttons each with a value (let's say 1, 5 or 10 points).
 +
 +When a user votes, a text file is stored in the webserver votes directory, the file is named with the last byte of the user's IP address (this is why the network must be class C), and the application polls the directory and reads all the files. Each user is allowed to vote only one time, so the script checks the file not to exist. Of course if a user changes its own ip address he can vote again, but usually this should not happen.
 +
 +When stopping polling, a last count of vote files is done, the directory cleaned and an html page with a short message is displayed.
 ===== Source code ===== ===== Source code =====
  
Navigazione

Table of contents

Contact

For any info you can write to:
Per qualunque info potete scrivere a:
info[at]maetech[dot]it

Ads

Stampa/Esporta
QR Code
QR Code projects:quickpoll (generated for current page)