Skip to content

leg-aman/Weather-API-CTD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-API-CTD

This is a simple weather app that lets you check the weather in any city. It shows current weather, daily temperatures, and other weather details. weather-API-CTD
Features

  • Check Current Weather: Enter a city name to see the current weather.
  • Daily Temperatures: View the high and low temperatures for the next week.
  • Weather Conditions: See details like precipitation and wind speed.

How to Use

  1. Clone the Repository
  2. git clone https://github.com/leg-aman/Weather-API-CTD.git

  3. Open the App
  4. Open index.html in your web browser.

Temprature info

image

Weather condition

image

Files

  • index.html: The main page of the app.
  • style.css: Styles the app.
  • app.js: Contains the JavaScript code for getting weather data and updating the page.

How It Works

  1. Enter a City Name: Type the name of a city and click "Submit."
  2. See the Weather: The app will show the current weather, temperature, and other details.
  3. Daily Forecast: Click the "Temperature" button to see the high and low temperatures for the next week.
  4. Weather Conditions: Click the "Condition" button to see the chance of precipitation.

Dependencies

  • Open Meteo API: Provides weather information.
  • OpenStreetMap API: Gives city coordinates.

Troubleshooting

  • City Not Found: Check if the city name is correct.
  • Weather Data Not Available: Make sure you have an internet connection and try another city.

Weather Conditions

  • See details like precipitation and wind speed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published