fix(storm-forecast): request imperial units so temps are degF and wind mph

This commit is contained in:
Satyam Rastogi
2026-05-30 05:28:33 +05:30
parent 9f4c3362d2
commit 741a999b39
+1 -1
View File
@@ -63,7 +63,7 @@ export default async function handler(req, res) {
'humidityAvg',
].join(',');
const url = `https://api.tomorrow.io/v4/weather/forecast?location=${PLANO_LAT},${PLANO_LNG}&apikey=${key}&timesteps=1d&fields=${fields}`;
const url = `https://api.tomorrow.io/v4/weather/forecast?location=${PLANO_LAT},${PLANO_LNG}&apikey=${key}&timesteps=1d&units=imperial&fields=${fields}`;
const resp = await fetch(url, {
headers: { Accept: 'application/json' },
});