@@ -1462,7 +1464,7 @@ function CombinedWorldWidget({
{tempNumeric !== null && (
- {tempNumeric}ยฐ
+ {temperatureDisplay.label}
)}
@@ -1567,26 +1569,6 @@ function getWeatherEmoji(weather: string): string {
return "๐ค๏ธ";
}
-function parseTemperature(temp: string): number | null {
- const m = temp.match(/-?\d+(\.\d+)?/);
- if (!m) return null;
- const num = parseFloat(m[0]!);
- if (/ยฐ?\s*f/i.test(temp)) return Math.round((num - 32) * (5 / 9));
- return Math.round(num);
-}
-
-/** Map descriptive temperature words to a numeric-equivalent hint (ยฐC). */
-function getTemperatureKeywordHint(text: string): number | null {
- const t = text.toLowerCase();
- if (/\b(freez|frigid|arctic|glacial|sub-?zero|blizzard)/.test(t)) return -10;
- if (/\b(cold|chill|frost|wintry|icy|bitter|nipp)/.test(t)) return 2;
- if (/\b(cool|brisk|crisp|refresh)/.test(t)) return 12;
- if (/\b(mild|pleasant|comfort|temperate|fair)/.test(t)) return 20;
- if (/\b(warm|balmy|toasty|muggy|humid|stuffy|sultry)/.test(t)) return 28;
- if (/\b(hot|swelter|blaz|scorch|burn|heat|boil|sear|bak)/.test(t)) return 38;
- return null;
-}
-
/** Categorise location text into a colour for the map-pin icon. */
function getLocationPinColor(location: string): string {
const l = location.toLowerCase();
diff --git a/packages/client/src/components/panels/SettingsPanel.tsx b/packages/client/src/components/panels/SettingsPanel.tsx
index 61781891f1..852fbd7647 100644
--- a/packages/client/src/components/panels/SettingsPanel.tsx
+++ b/packages/client/src/components/panels/SettingsPanel.tsx
@@ -631,7 +631,7 @@ function TrackerPanelAppearanceDrawer({
Temperature unit
-
+