code cleanup

This commit is contained in:
Matt Walsh 2025-05-29 08:30:01 -05:00
commit a83afa71cd
No known key found for this signature in database
19 changed files with 57 additions and 119 deletions

View file

@ -20,7 +20,7 @@ const buildForecast = (forecast, city, cityXY) => {
const getRegionalObservation = async (point, city) => {
try {
// get stations
const stations = await json(`https://api.weather.gov/gridpoints/${point.wfo}/${point.x},${point.y}/stations`);
const stations = await json(`https://api.weather.gov/gridpoints/${point.wfo}/${point.x},${point.y}/stations?limit=1`);
// get the first station
const station = stations.features[0].id;