Show weather in both Celsius and Fahrenheit
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user