Sends a text message whenever the Cubs win a home game. Usually indicative of a free Chick-fil-A sandwich in the Chicagoland area.
This project is completely automated with GitHub Actions, and can be manually triggered for a live update.
Last updated on Monday, July 22, 2024 at 02:35AM CDT
The Cubs will be playing the Milwaukee Brewers at home at 07:05PM.
- Set up a Google Cloud Console project with the Gmail API enabled
- Set up the OAuth consent screen
- Create credentials for an OAuth 2.0 client ID
- Download the OAuth client secret and token JSON files
- Find your phone number's text email address
- Clone the repository
- Place the client secret and token JSON files in the root directory of the project
- Rename the client secret file to
client_secret.json
- Rename the token file to
token.json
- Create a file named
sender.txt
in the root directory with the email address of the sender - Create a file named
receiver.txt
in the root directory with the receiving phone number's text email address - Run
pip install -r requirements.txt
to install the required Python packages - Run
python run.py
- (Optional) Set up a cron job to run the script at specific intervals
- Fork this repository
- Go to the repository's settings
- Go to the "Secrets" tab
- Add the following secrets:
GMAIL_CREDENTIALS
: The contents of the client secret JSON fileGMAIL_TOKEN
: The contents of the token JSON fileSENDER
: The email address of the senderRECEIVER
: The receiving phone number's text email address
- Customize the cron schedule in the
.github/workflows/cubs_win_notifier.yml
file