JS Weather App is a lightweight and elegant weather forecast application built with vanilla JavaScript. It displays real-time weather for the current day and a 5-day forecast, using data from the OpenWeatherMap API.
- Default location set to Tehran
- Automatically detects and uses the user's location (with permission)
- Dynamic day/night theme based on sunrise and sunset times
- Clean, responsive design using Tailwind CSS
- Displays current weather and 5-day forecast
- Clone this repository.
- Replace
YOUR_OPENWEATHERMAP_API_KEYin the HTML file with your actual API key from OpenWeatherMap. - Open
script.jsin your browser.
- JavaScript (Vanilla)
- HTML5
- Tailwind CSS
- OpenWeatherMap API
This project is open-source and available under the MIT License.
