installed with pip
sqlite3
twilio
pytz
Flask
-
Initialize database:
python test-database.py -
Write configuration file:
- name it config.py
- declare the following variables:
default_sms
invalid_sms_response
verification_sms
twilio_sid
twilio_auth_token
gmail_text
gmail_subject
gmail_user
gmail_pwd
interface_pwd
-
Set twilio account information:
at: https://www.twilio.com/user/account/phone-numbers/incoming
select a number, then under 'Messaging', set the request url to:
http://your.ip:5000/receiver -
Run the server:
python server.py -
Use the interface:
The server operates on Flask default port 5000
The interface exposes the following: /new-participant -- input a new participant
/participant/:phone-number -- view and change a participant
/data -- output the 'log' table of the database (csv, doesnt render well though)
/email -- input an email address, complete form to send emails at specified times