Skip to content

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.

Notifications You must be signed in to change notification settings

sejalabrol/rain-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rain Alert

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.

Screenshots

Tools

Environment Variables

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

Run Locally

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

Deployment

This project is deployed on PythonAnywhere

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages