From 741a999b399ebda42fae4bcb2641b908a5afcf76 Mon Sep 17 00:00:00 2001 From: Satyam Rastogi Date: Sat, 30 May 2026 05:28:33 +0530 Subject: [PATCH] fix(storm-forecast): request imperial units so temps are degF and wind mph --- api/storm-forecast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/storm-forecast.js b/api/storm-forecast.js index 01f2f9b..d7dbb19 100644 --- a/api/storm-forecast.js +++ b/api/storm-forecast.js @@ -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}×teps=1d&fields=${fields}`; + const url = `https://api.tomorrow.io/v4/weather/forecast?location=${PLANO_LAT},${PLANO_LNG}&apikey=${key}×teps=1d&units=imperial&fields=${fields}`; const resp = await fetch(url, { headers: { Accept: 'application/json' }, });