cs-owm 1.0.2

dotnet add package cs-owm --version 1.0.2
                    
NuGet\Install-Package cs-owm -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="cs-owm" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="cs-owm" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="cs-owm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add cs-owm --version 1.0.2
                    
#r "nuget: cs-owm, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package cs-owm@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=cs-owm&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=cs-owm&version=1.0.2
                    
Install as a Cake Tool

<div align="center">

CS-OWM (Csharp-OpenWeatherMap)

.NET License: MIT

A simple C# application that uses the OpenWeatherMap API to fetch weather information for a specific location. </div>


📖 Table of Contents


📢 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 replace YOUR_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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 225 4/9/2025
1.0.1 168 4/8/2025
1.0.0 167 4/6/2025