upass-sfu
November 14, 2018 ยท View on GitHub
This script helps SFU students renew their U-Pass monthly.
How To Run
1. Update your SFU username and password in config.json
{
"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.
2. Run the following command
python3 upass.py
The script renews your U-Pass.
Automation
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.py
An 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.
Contribution
See CONTRIBUTING.md