Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌤️ Java Weather App

A Java console application that fetches real-time weather information for any city using the Open-Meteo API.


✨ Features

  • 🌍 Search weather by city name
  • 📍 Converts city name to latitude & longitude
  • 🌡️ Fetches real-time temperature
  • ❌ Handles invalid city names gracefully
  • 🔑 No API key required

🛠️ Tech Stack

  • Java
  • Maven
  • HTTPURLConnection
  • org.json
  • Open-Meteo API

📂 Project Structure

src
└── main
    └── java
        └── weather
            └── app
                └── Main.java

⚙️ How It Works

City Name
     ↓
Geocoding API
     ↓
Weather API
     ↓
Temperature Output

▶️ Sample Output

Enter city: Delhi

Temperature: 32.4°C

👨‍💻 Author

Aditya Soni

GitHub: https://github.com/Adityasoni720

About

A Java Weather Application using OpenWeather API.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages