A python code that sends an alert in the form of a text message to the user's mobile number when it's going to rain within the next 12 hours in the user's mentioned location.
- Twilio
- OpenWeather
- LatLong.net
- PythonAnywhere (for deployment)
To run this project, you will need to add the following environment variables to your .env file
OWP_API_KEY
TWILIO_ACCOUNT_SID
TWILIO_AUTH_TOKEN
SENDERS_NUMBER
RECEIVERS_NUMBER
LATITUDE
LONGITUDE
Refer to the env template
Clone the project
git clone https://github.com/sejalabrol/rain-alert
Go to the project directory
cd rain-alert
Create a .env file and enter environment variables
cp .env.template .env
Create a virtual environment (optional but recommended)
python -m venv venv
source venv/Scripts/activate
Install dependencies
pip install -r requirements.txt
Run the project
python main.py
This project is deployed on PythonAnywhere