WeatherNow is a simple web application that provides real-time weather information for any city. Users can input a city name and receive current weather conditions for that location.
- City-based Weather Search: Enter any city name to get instant weather updates.
- Real-time Data: Utilizes a weather API to fetch the most current information.
- Backend: Flask
- Frontend: HTML, CSS
- Templating: Jinja2 for dynamic HTML rendering
- API: Weather API (OpenWeatherMap)
-
Clone the repository: git clone https://github.com/ksandeep18/WeatherNow_.git
cd weathernow -
Set up a virtual environment: python -m venv venv ***If unable to acitvate unrestrict the exceution policy : Enter this command for windows: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ***
3.Activate Virtual Environment: On Windows use venv\Scripts\activate
-
Install dependencies: pip install -r requirements.txt
-
Set up your API key:
- Add your weather API key to the
.env
file
-
Run the application: flask run
-
Open your browser and navigate to
http://localhost:8000
- Enter a city name in the search bar.
- Click the "Get Weather" button.
- View the current weather conditions for the specified city.
- If you Entered Invalid city name then it will show you Enter a valid city name.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request