fix(storm-forecast): request imperial units so temps are degF and wind mph
This commit is contained in:
@@ -63,7 +63,7 @@ export default async function handler(req, res) {
|
|||||||
'humidityAvg',
|
'humidityAvg',
|
||||||
].join(',');
|
].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, {
|
const resp = await fetch(url, {
|
||||||
headers: { Accept: 'application/json' },
|
headers: { Accept: 'application/json' },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user