Sends a notification whenever the Blackhawks score a goal in the first period of any 2024-2025 regular season home game. Usually indicative of a free Chick-fil-A breakfast reward in the Chicagoland area.
This project is completely automated with GitHub Actions, and can be manually triggered for a live update. It also uses AWS DynamoDB to store if a notification has already been sent out for a game, preventing duplicate messages. AWS SNS and a GroupMe bot are used to send the text messages.
Join the GroupMe Chat to subscribe to notifications!
- Set up an AWS account
- Create a DynamoDB table
- Set up SNS with a topic and susbcribe with preferred method (SMS, email, etc.)
- Set up an IAM user with the following permissions:
AmazonDynamoDBFullAccess
AmazonSNSFullAccess
- Create a GroupMe chat and bot
- Obtain and note the following information:
- AWS Access Key ID
- AWS Secret Access Key
- AWS Region
- SNS Topic ARN
- DynamoDB Table Name
- GroupMe Bot ID
- Clone the repository
- Set the following environment variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
SNS_TOPIC_ARN
DYNAMODB_TABLE_NAME
GROUPME_BOT_ID
- 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:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
SNS_TOPIC_ARN
DYNAMODB_TABLE_NAME
GROUPME_BOT_ID
- Customize the cron schedule in the
.github/workflows/blackhawks-goal-monitor.yml
file