Fixed paths

This commit is contained in:
2026-06-24 14:58:24 -04:00
parent 7dfd5e6e1f
commit 5794eca9f1
2 changed files with 5 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ const DAILY_FIELDS = [
'uv_index_max', 'shortwave_radiation_sum',
].join(',')
export async function getOpenMeteo(lat, lon, start, end) {
export async function dailyWeather(lat, lon, start, end) {
const startStr = start.toISOString().slice(0, 10)
const endStr = end.toISOString().slice(0, 10)
const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}` +
@@ -174,7 +174,7 @@ const HOURLY_FIELDS = [
'visibility',
].join(',')
export async function getOpenMeteoHourly(lat, lon, start, end) {
export async function hourlyWeather(lat, lon, start, end) {
const startStr = start instanceof Date ? start.toISOString().slice(0, 10) : start.slice(0, 10)
const endStr = end instanceof Date ? end.toISOString().slice(0, 10) : end.slice(0, 10)
const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}` +