From 777994df50abb5b0056ef59f5c07394d9f884413 Mon Sep 17 00:00:00 2001 From: Sebastian Jensen Date: Wed, 23 Jul 2025 09:20:26 +0200 Subject: [PATCH 1/2] Update weather icon URLs to new path Changed weather icon URL paths from '/img/w/' to '/img/wn/' to reflect OpenWeatherMap's updated icon hosting structure. This ensures correct icon display for all resolutions. --- src/OpenWeatherMapSharp/Models/WeatherRoot.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenWeatherMapSharp/Models/WeatherRoot.cs b/src/OpenWeatherMapSharp/Models/WeatherRoot.cs index 516489a..2159129 100644 --- a/src/OpenWeatherMapSharp/Models/WeatherRoot.cs +++ b/src/OpenWeatherMapSharp/Models/WeatherRoot.cs @@ -116,21 +116,21 @@ public class WeatherRoot /// [JsonIgnore] public string Icon - => $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}.png"; + => $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}.png"; /// /// Weather icon URL (2x resolution). /// [JsonIgnore] public string Icon2x - => $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}@2x.png"; + => $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}@2x.png"; /// /// Weather icon URL (4x resolution). /// [JsonIgnore] public string Icon4x - => $"https://openweathermap.org/img/w/{WeatherInfos?[0]?.Icon}@4x.png"; + => $"https://openweathermap.org/img/wn/{WeatherInfos?[0]?.Icon}@4x.png"; /// /// Weather icon name. From 758c69ee4a12035df1272ebe62ad96f31ef03eb0 Mon Sep 17 00:00:00 2001 From: Sebastian Jensen Date: Wed, 23 Jul 2025 10:02:57 +0200 Subject: [PATCH 2/2] Bump version to 4.0.1 and update release notes Updated the project version to 4.0.1 and revised the release notes to mention icon URL fixes. --- src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj b/src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj index d46ed69..a5b5864 100644 --- a/src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj +++ b/src/OpenWeatherMapSharp/OpenWeatherMapSharp.csproj @@ -4,7 +4,7 @@ netstandard2.0 True OpenWeatherMapSharp - 4.0.0 + 4.0.1 Thomas Sebastian Jensen tsjdev-apps.de An unofficial .NET API wrapper for OpenWeatherMap.org @@ -15,9 +15,7 @@ icon.png OpenWeatherMap; Api; Mock; Wrapper; free; Weather - - Add Air Pollution endpoints - - Update NuGet packages - - Code improvements + - Fix icon urls en README.md