This script helps SFU students renew their U-Pass monthly.
{
"username": "username",
"password": "password",
"ifttt_event": "optional",
"ifttt_key": "optional"
}In the json file, ifttt config is optional. If ifttt is provided, the script will trigger corresponding ifttt actions when request fails.
python3 upass.pyThe script renews your U-Pass.
In Unix-like systems, use crontab to run this script automatically and periodically.
The following command is an example of how to setup crontab for this script:
0 0 20 * * /path/to/python3 /path/to/upass.pyAn alternative method to automatically renew your U-Pass is to create a desktop App or an iOS App, which I may implement in the future.
See CONTRIBUTING.md