From 22f5fc125b30819b651c3fcd3cdd68e20ba3c3dc Mon Sep 17 00:00:00 2001 From: christian Date: Sun, 12 May 2024 07:32:14 +0200 Subject: [PATCH] ci was never the issue. I was. --- app/actions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/actions.ts b/app/actions.ts index 5ea339a..3d73839 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -1,5 +1,5 @@ 'use server' -import { Forecast, HourlyForecast, LocationType, coordType } from "@/types/types"; +import { Forecast, LocationType, coordType } from "@/types/types"; //takes address and returns coords in obj as {lat: number, lng: number} export async function getLocation(searchLocation: string): Promise{ @@ -18,7 +18,7 @@ export async function getLocation(searchLocation: string): Promise{ -export async function getHourlyForecast(geoLocation: coordType): Promise { +export async function getHourlyForecast(geoLocation: coordType): Promise { const { lat, lng } = geoLocation.geo; const tz = Intl.DateTimeFormat().resolvedOptions().timeZone; const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lng}¤t=temperature_2m,apparent_temperature,is_day,precipitation,rain,showers,snowfall,weather_code,cloud_cover,wind_speed_10m,wind_direction_10m&hourly=temperature_2m,apparent_temperature,precipitation_probability,precipitation,weather_code,wind_speed_10m,is_day&daily=weather_code,temperature_2m_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,sunrise,sunset,daylight_duration,sunshine_duration,uv_index_max,precipitation_sum,precipitation_hours,wind_speed_10m_max&timezone=${tz}` @@ -26,6 +26,6 @@ export async function getHourlyForecast(geoLocation: coordType): Promise