This project is part of Nexus Spring of Code (NSoC) 2026.
Contributors can work on open issues and submit pull requests following the contribution guidelines.
Make sure your PR includes the tag NSoC'26 so it can be tracked in the program leaderboard.
A simple and responsive weather application that provides real-time weather updates for any city in the world.
The Weather App is a lightweight web application that allows users to search for any city and get live weather data including temperature, humidity, wind speed, and weather conditions.
It uses the OpenWeatherMap API to fetch real-time data and displays it with dynamic UI elements.
🔍 City Search
- Search weather by entering any city name
🌡️ Real-Time Data
- Temperature
- Humidity
- Wind Speed
- Weather Conditions
🌥️ Dynamic Weather Icons
- Icons update based on current weather (Cloudy, Rainy, Clear, etc.)
- Displays proper messages for invalid cities
🎨 Clean UI
- Simple, minimal, and user-friendly interface
🌙 Dark Mode
- Toggle between light and dark themes for better night usability
🌡️ Unit Converter (°C ↔ °F)
- Switch temperature units instantly without extra API calls
| Technology | Usage |
|---|---|
| HTML | Structure |
| CSS | Styling |
| JavaScript | Logic & API handling |
| Weatherapi.com API | Weather Data |
| Git | Version Control |
📁 weather
┣ 📄 index.html
┣ 📄 style.css
┣ 📄 script.js
┣ 📄 config.example.js
┣ 📄 .gitignore
┣ 📄 README.md
Follow these steps to run the project locally:
git clone https://github.com/aditya-ai00/weather.git
cd weather
open index.html
Or simply double-click the file.
This project uses the Weatherapi.com API.
- Go to 👉 https://www.weatherapi.com/api-explorer.aspx
- Create an account
- Generate your API key
- Copy API Key
- Create a config.js file (Refer config.example.js)
- Paste API Key in your config.js file:
config.js
const config = {
WEATHER_API_KEY: "PASTE_YOUR_KEY_HERE",
};
- Open the app "https://weather-pink-psi-97.vercel.app/" in your browser
- Enter a city name
- Press Enter or click search
- View real-time weather details instantly
- Click the 🌙 Dark Mode button to switch theme
- Use the Unit Toggle button to switch between °C and °F
For Deployed Version :
https://weather-pink-psi-97.vercel.app/
For Local Run :
http://127.0.0.1:3000/index.html
Contributions are welcome! 🚀
-
Fork the repository
-
Create a new branch
git checkout -b feature-name -
Make your changes
-
Commit your changes
git commit -m "Add feature" -
Push to your branch
git push origin feature-name -
Open a Pull Request
-
Get Your Pull Request Reviewed & Accepted ✅
-
Congrats ! 👏 Your Contribution Was Successful
If you find any bugs or issues, feel free to open an issue.
- 📅 7-Day Weather Forecast
- 📱 Fully Responsive Design
- 📊 Advanced Weather Analytics
This project is licensed under the Apache-2.0 License.
📧 Email: adityanyo39@gmail.com
🔗 LinkedIn: https://www.linkedin.com/in/aditya-kumar23/
💻 GitHub: https://github.com/aditya-ai00
If you like this project:
👉 Give it a star ⭐ 👉 Share it with others
Built to practice API integration, frontend development, and real-world project building.
Aditya GitHub: https://github.com/aditya-ai00
- 🌙 Added Dark Mode with toggle and persistent settings
- 🌡️ Added Temperature Unit Converter (°C ↔ °F)