I'm getting lots of error messages in my server log:
Code:
--------------------
Apr 8 21:12:46 localhost squeezeboxserver[25184]: [22-04-08 21:08:36.2959]
Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6953) error getting
https://api.weather.com/v3/wx/almanac/daily/5day?geocode=58.423,15.617&units=e&startDay=08&startMonth=04&format=json&apiKey=21d8a80b3d6b444998a80b3d6b1449d3
Apr 8 21:12:46 localhost squeezeboxserver[25184]: [22-04-08 21:08:36.3002]
Plugins::SuperDateTime::Plugin::gotErrorViaHTTP (6954) 404 Not Found
--------------------
I've been looking through the code and I think the code is ok, but
there's simply no data on the server for this location. The server
returns this information in its error response: "Requested resource
geocode not found on the server.".
My location id is "SWXX0203:1:SW" which seems to work for "normal"
weather data, but not for the averages.
So, is there an alternative URL/API that could be used to fetch the
averages?
I see that there's code to retry fetching the averages (max 10 times)
when an HTTP request fails. For me this doesn't help, but just makes the
log noisier. In which situations is a retry useful? Can we avoid
retrying for 4xx (client errors) responses perhaps?
Or, would it make sense to remember locations for which averages can't
be fetched and don't retry every 5 minutes?
------------------------------------------------------------------------
robho's Profile: http://forums.slimdevices.com/member.php?userid=69407
View this thread: http://forums.slimdevices.com/showthread.php?t=112122
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins