To add new students to the attendance scanner, you must..
- Get the URL of the CSV contact form. Instead of /edit at the end of the link, replace it with /export?format=csv
- Sign into https://stuypulse-attendance.appspot.com/admin/settings.
- Replace the URL with the URL found at Step 1.
Run the scanner by executing ./scanner.sh
An optional --offline
flag can be passed to the scanner to run it without an Internet connection.
Alternatively, an experimental Python version of the scanner is available (scanner.py
) with the same features.
- Download and install the Google App Engine SDK for Python
- Install python-pip with
sudo apt-get install python-pip
- Install all dependencies by running
mkdir google-appengine/libs; pip install -t google-appengine/libs -r google-appengine/requirements.txt
- You will need a google web service client account, follow the instructions here: Create a Google Service account
- Set your environment variables, and set up your testing environment with this template: Template
- Run the above file once you set up everything
- Go to localhost:5000 in a browser
- Open
scanner.sh
and change the lineSERVER_ADDR=https://stuypulse-attendance.appspot.com/
toSERVER_ADDR=localhost:8080
- For the experimental Python version, change the contents of the
SERVER_ADDRESS
variable tolocalhost:8080
Visit localhost:5000/admin/create_admin
to create an administrator
- Run
gcloud config set project stuypulse-attendance
- Run
gcloud app deploy
It may be possible that less secure apps got turned on for our automatic gmail account. Please contact the web developers to turn it back off.