From 73aac8ab01c109c70c3492cc84bc31945c9f7793 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Sun, 19 Jul 2026 00:45:04 -0500 Subject: [PATCH] Fix weather widget location label stuck on Fort Worth: the span was a static HTML placeholder never wired to the API response. Wire loadWeather() to update it from d.location, and correct the fallback text to Weatherford, TX Co-Authored-By: Claude Sonnet 5 --- public_html/assets/js/jarvis-app.js | 1 + public_html/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index cd1c45f..9e673bb 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -982,6 +982,7 @@ async function loadWeather() { const d = await api('weather'); if (!d || !d.current) return; const c = d.current; + if (d.location) document.getElementById('weather-loc').textContent = d.location.toUpperCase(); document.getElementById('weather-temp').textContent = c.temp; document.getElementById('weather-desc').textContent = (c.desc || '').toUpperCase(); document.getElementById('weather-feels').textContent = c.feels + '°F'; diff --git a/public_html/index.html b/public_html/index.html index 3d8b1a3..8e7475b 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -84,7 +84,7 @@
-
WEATHER FORT WORTH, TX
+
WEATHER WEATHERFORD, TX