This Flask application integrates with a weather API (Open Weather Map) to provide real-time weather information of a location based on the city name, state code, and country code. It also sends SMS using Infobip Python SDK to your phone.
Before running the application, ensure you have the following:
- Python installed on your system
- Flask framework installed (
pip install Flask) - Weather API credentials
- Infobip API credentials
- Destination phone number for SMS notifications
git clone https://github.com/Terieyenike/weatherapi-with-python
cd weatherapi-with-python
pip install -r requirements.txt
In the .env file, replace the value of your openweathermap API key
OWM_API_KEY="<open-weather-map-api-key>"
IB_BASE_URL="<your API Base URL>"
IB_API_KEY="<your API Key>"
DESTINATION_NUMBER="<your phone number>"
- Python
- Flask
- Infobip Python SDK
- Tailwind CSS
Once you have the requirements installed, flask run from the top-level directory will serve the app on 127.0.0.1:5000.
This project is licensed under the MIT License
