/sms

:hibiscus: Adding SMS alerts to shell scripts :hibiscus:

Primary LanguagePythonMIT LicenseMIT

SMS-Alerts

The purpose of this repo is to demonstrate the ability to combine text alerts with common automation scripts.

Getting Started

Clone the repo:

git clone https://github.com/AshleyNikr/SMS-Alerts.git

Create a new Gmail account (recommended) or use an existing one:

Gmail signup

Copy the email address into .env, along with your phone number

Go to manage your Gmail account:

Enable 2-step verification:

2 Step

Add an app password:

App Password

Copy that password into .env, replacing the placeholder password

Getting Carrier Info

Find your carrier from the list bellow:

Copy the text after number@ and replace the carrier placeholder in .env

Putting Everything Together

Run the python script directly:

python3 sms.py --body "\nHello, World!"

Wait for the message to show up on your phone!

Text Message

Run the update script:

sudo ./update.sh