Welcome to the Weather App! This Android application provides accurate and up-to-date weather forecasts for any city in the world. The app uses data from the WeatherAPI to provide a 24-hour weather forecast for a selected city. The background image of the app changes dynamically based on whether it is day or night in the selected city.
- Search by City: Users can search for any city by name to get the current weather and a 24-hour forecast.
- 24-Hour Forecast: Detailed weather information for the next 24 hours, including temperature, humidity, wind speed, and more.
- Dynamic Background: The background image changes to reflect day or night based on the selected city's local time.
- User-Friendly Interface: Simple and intuitive design for a seamless user experience.
![](https://private-user-images.githubusercontent.com/106193863/341831259-b412a93b-2562-413c-b63f-92fb5c2588e1.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMDUyMzUsIm5iZiI6MTcyNDEwNDkzNSwicGF0aCI6Ii8xMDYxOTM4NjMvMzQxODMxMjU5LWI0MTJhOTNiLTI1NjItNDEzYy1iNjNmLTkyZmI1YzI1ODhlMS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQyMjAyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05N2FkY2Q1NDk1NTJhNThjMDA1M2Q5MmM5ZDg3M2Q3YjRjODU3MjhiOGQ2ZDQ4N2M0N2FjNDFlOTExYjEzM2I0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oA_kaCFj0-7JRyPFNGqkGRMsvq_KIcraPKsLpmuWs3w)
![](https://private-user-images.githubusercontent.com/106193863/341840356-76953cab-d950-4c90-a0c9-86a01835b14e.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMDUyMzUsIm5iZiI6MTcyNDEwNDkzNSwicGF0aCI6Ii8xMDYxOTM4NjMvMzQxODQwMzU2LTc2OTUzY2FiLWQ5NTAtNGM5MC1hMGM5LTg2YTAxODM1YjE0ZS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQyMjAyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ODE1ODc4YTgwY2FiNjIwNTJiYTE4NmM0OTdiOGRhNzJhNzY4N2Y4ZGFmMGZkZmQ5NWUwNGQ5YzMzYjIxMTcyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0GTBspL7sRdW2_6azx3GYWatm4_F1h93ygF0D1P3Eq4)
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Android Studio
- A device or emulator running Android 7.1 (Nougat) or higher
- An API key from WeatherAPI
-
Clone the repository:
git clone https://github.com/aaimran236/Weather-App
-
Open the project in Android Studio:
- Launch Android Studio.
- Select "Open an existing Android Studio project".
- Navigate to the directory where you cloned the repository and select it.
-
Add your WeatherAPI key:
-
Obtain a free API key from WeatherAPI.
-
In Android Studio, open
gradle.properties
file (or create it if it does not exist). -
Add your API key like this:
WEATHER_API_KEY=your_api_key_here
-
-
Build and run the project:
- Connect your Android device or start an emulator.
- Click the "Run" button in Android Studio.
- Launch the app on your device.
- Enter the name of a city in the search bar.
- View the current weather and the 24-hour forecast for the selected city.
- Notice the background image changing based on whether it is day or night in the city.
- WeatherAPI - The API used to fetch weather data
- Android Studio - The official IDE for Android development
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- 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
This project is licensed under the MIT License - see the (https://en.wikipedia.org/wiki/MIT_License#:~:text=The%20MIT%20License%20is%20a,therefore%20has%20high%20license%20compatibility.) for details.
- Thanks to WeatherAPI for providing the weather data.
- Inspiration and design ideas from various weather apps and tutorials.
Project Link: [https://github.com/aaimran236/Weather-App]