Show weather in both Celsius and Fahrenheit

This commit is contained in:
2026-06-27 18:59:32 -05:00
parent 9a130be5e0
commit 085ecd5ce4
3 changed files with 16 additions and 9 deletions
+4 -4
View File
@@ -12,8 +12,8 @@ interface CalendarEvent {
}
interface WeatherData {
current?: { temperature: number; summary: string };
today?: { max: number; min: number; summary: string };
current?: { celsius: number; fahrenheit: number; summary: string };
today?: { maxC: number; minC: number; maxF: number; minF: number; summary: string };
}
const gold = '#E8A849';
@@ -66,9 +66,9 @@ export default function CalendarStrip() {
{
id: 9999,
date: new Date().toISOString().split('T')[0],
title: `${weather.current?.temperature ?? '--'}°C ${weather.current?.summary ?? ''}`,
title: `${weather.current?.celsius ?? '--'}°C / ${weather.current?.fahrenheit ?? '--'}°F ${weather.current?.summary ?? ''}`,
type: 'weather' as const,
description: `Today ${weather.today?.max ?? '--'}° / ${weather.today?.min ?? '--'}°`,
description: `Today ${weather.today?.maxC ?? '--'}°C / ${weather.today?.maxF ?? '--'}°F · ${weather.today?.minC ?? '--'}°C / ${weather.today?.minF ?? '--'}°F`,
color: '#4FC3F7',
isWeather: true,
},