I’ve been playing with weather.gov and it seems to be having problems. My config:
{
module: "weather",
position: "top_right",
type: "current",
weatherProvider: "weather.gov", //
windUnits: "imperial",
tempUnits: "imperial",
useBeaufort: false,
fade: false,
config: {
// See 'Configuration options' for more information.
apiBase: "https://api.weather.gov/points/",
weatherEndpoint: "/forecast/hourly", // for current
lat: 40.25571,
lon: -74.39416,
}
}, /* * /
{
module: "weather",
position: "top_right",
type: "daily",
weatherProvider: "weather.gov", //Default value: openweathermap
windUnits: "imperial",
tempUnits: "imperial",
useBeaufort: false,
fade: false,
config: {
// See 'Configuration options' for more information.
apiBase: "https://api.weather.gov/points/",
weatherEndpoint: "/forecast", // for forecast
lat: 40.25571,
lon: -74.39416,
}
}, /* */
and from the browser:
api.weather.gov/points/2.5/forecast/hourly?lat=40.25571&lon=-74.39416&units=imperial&lang=en&APPID=:1 Failed to load resource: the server responded with a status of 404 ()
openweathermap.js:45 Could not load data ... XMLHttpRequest
(anonymous) @ openweathermap.js:45
That URL is all sorts of wonky. The points URL returns the points to get the needed properties:
Mine: https://api.weather.gov/points/40.25571,-74.39416 (under properties “gridId”: “PHI”,“gridX”: 73,“gridY”: 92, )
then builds:
Mine: https://api.weather.gov/gridpoints/PHI/73,92/forecast