fix regional forecast and observations

This commit is contained in:
Matt Walsh
2022-12-12 15:41:28 -06:00
parent 703d64f6b2
commit 94fafc247a
7 changed files with 34035 additions and 22604 deletions

View File

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