Skip to content

js-weather-app is a lightweight JavaScript application that displays real-time current day weather using a clean and responsive interface.

License

Notifications You must be signed in to change notification settings

mostafabaghi/js-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Weather App

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.

Features

  • 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

Screenshot

JS Weather App Screenshot

How to Use

  1. Clone this repository.
  2. Replace YOUR_OPENWEATHERMAP_API_KEY in the HTML file with your actual API key from OpenWeatherMap.
  3. Open script.js in your browser.

Technologies Used

  • JavaScript (Vanilla)
  • HTML5
  • Tailwind CSS
  • OpenWeatherMap API

License

This project is open-source and available under the MIT License.

About

js-weather-app is a lightweight JavaScript application that displays real-time current day weather using a clean and responsive interface.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published