Rain Watch is a simple Python application that checks the weather forecast for the next 15 hours using the OpenWeatherMap API. If rain is expected, it automatically sends an SMS reminder via Twilio so you don't forget to carry an umbrella.
- Checks the weather forecast for the next 15 hours.
- Detects upcoming rain based on weather conditions.
- Sends an SMS alert using Twilio.
- Uses environment variables to securely store API keys and credentials.
- Python
- Requests
- Twilio API
- OpenWeatherMap API
Before running the project, you'll need:
- Python 3.x
- An OpenWeatherMap API key
- A Twilio account with:
- Account SID
- Auth Token
- Twilio phone number
Create the following environment variables:
ACCOUNT_ID=your_twilio_account_sid
AUTH_KEY=your_twilio_auth_token
APP_KEY=your_openweathermap_api_key
MY_LAT=your_latitude
MY_LON=your_longitude
FROM_NUMBER=your_twilio_phone_number
TO_NUMBER=your_phone_number
- Clone the repository:
git clone https://github.com/your-username/rain-watch.git- Navigate to the project directory:
cd rain-watch- Install the required dependencies:
pip install requests twilioRun the application:
python main.pyRain-Watch/
│
├── main.py
├── assets
├── README.md
└── .env (optional)
- Support multiple locations.
- Send notifications via email or Telegram.
- Allow users to customize the forecast duration.
- Deploy as a scheduled cloud service.
This project is licensed under the MIT License. See the LICENSE file for details.
Akash Anand
