cs-owm
1.0.2
dotnet add package cs-owm --version 1.0.2
NuGet\Install-Package cs-owm -Version 1.0.2
<PackageReference Include="cs-owm" Version="1.0.2" />
<PackageVersion Include="cs-owm" Version="1.0.2" />
<PackageReference Include="cs-owm" />
paket add cs-owm --version 1.0.2
#r "nuget: cs-owm, 1.0.2"
#:package cs-owm@1.0.2
#addin nuget:?package=cs-owm&version=1.0.2
#tool nuget:?package=cs-owm&version=1.0.2
<div align="center">
CS-OWM (Csharp-OpenWeatherMap)
A simple C# application that uses the OpenWeatherMap API to fetch weather information for a specific location. </div>
📖 Table of Contents
- 📢 Introduction
- 📋 Requirements
- ⚙️ How to Use
- 📂 Project Structure
- 🚀 Setup Guide
- 🤝 Contributing
- 📜 License
📢 Introduction
This application uses the OpenWeatherMap API to retrieve weather data based on a city's name and displays details such as:
- 🌡️ Temperature and "feels like" temperature
- 💧 Humidity
- 🌬️ Wind speed and direction
- 🌫️ Visibility
- 🌤️ Weather status
📋 Requirements
- .NET SDK 6.0 or higher
- OpenWeatherMap API Key
- Internet connection
⚙️ How to Use
Run the application to get the current weather information for a city (e.g., Ho Chi Minh City):
$ dotnet run
Example Output:
Current weather in Ho Chi Minh City - Latitude: [10.8231] Longitude: [106.6297]:
Current datetime: 16-12-2024 - 10:30
Weather:
Temperature: 30.5°C feel like 35.0°C
Pressure: 1012 hPa
Humidity: 65%
Sea level: 1013 hPa - Ground level: 1010 hPa
Visibility: 10 km
Wind:
Wind speed: 3.5 m/s
Wind degrees: 180°
Wind gust: 5.0 m/s
Cloud:
Cloudiness: 20%
Status: Clear - clear sky
📂 Project Structure
WeatherApp/
├── Program.cs // The main entry point of the application
├── WeatherService.cs // Service to call OpenWeatherMap API
├── Models/
│ ├── WeatherData.cs // Class for weather data
│ ├── Coord.cs // Class for location data
│ ├── Weather.cs // Class for weather status
│ ├── DetailsWeather.cs // Class for detailed temperature and pressure data
│ ├── Wind.cs // Class for wind data
│ └── Clouds.cs // Class for cloud data
└── ... // Project documentation
🚀 Setup Guide
1. Clone the Repository
git clone https://github.com/nupniichan/cs-owm.git
cd WeatherApp
2. Add Your OpenWeatherMap API Key
- Open
Program.cs
and replaceYOUR_API_KEY_HERE
with your API key.
string api = "YOUR_API_KEY_HERE";
3. Run the Application
dotnet run
🤝 Contributing
Contributions are welcome! Feel free to:
- ⭐ Star this repository
- 🐛 Report issues
- ✨ Request new features
- 🔧 Submit pull requests
📜 License
This project is licensed under the MIT License. See the LICENSE file for more details.
<div align="center">✨ Thank you for visiting this repository! ✨</div>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.