fix: clarify OpenWeatherMap requires One Call 3.0 subscription

This commit is contained in:
2026-02-11 01:30:27 +01:00
parent a3d2867b40
commit 41649380e2
2 changed files with 2 additions and 2 deletions

View File

@@ -997,7 +997,7 @@
const hint = document.getElementById("forecast-provider-hint");
if (provider === "openweathermap") {
group.classList.remove("hidden");
hint.innerHTML = '<a href="https://openweathermap.org/api" target="_blank" rel="noopener" class="text-orange-600 hover:underline">Get an API key \u2192</a>';
hint.innerHTML = '<a href="https://openweathermap.org/api/one-call-3" target="_blank" rel="noopener" class="text-orange-600 hover:underline">Requires One Call 3.0 subscription \u2192</a>';
} else {
group.classList.add("hidden");
hint.textContent = "";

View File

@@ -383,7 +383,7 @@
<label class="block text-sm font-medium mb-1">{{t "setup.forecast.provider"}}</label>
<select id="forecast-provider-select" class="w-full px-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm">
<option value="openmeteo">Open-Meteo ({{t "setup.forecast.free"}})</option>
<option value="openweathermap">OpenWeatherMap</option>
<option value="openweathermap">OpenWeatherMap (One Call 3.0)</option>
</select>
</div>
<div id="forecast-apikey-group" class="hidden">