The binding requests current and forecasted rain from the public API provided by Buienradar but keeps reporting that it gets an empty result. However when doing a curl https://gpsgadget.buienradar.nl/data/raintext?lat=xx.xx&lon=y.yy
manually in the Pod where OpenHAB 3.4.4 is running, I get the expected result:
096|15:45
087|15:50
000|15:55
000|16:00
000|16:05
000|16:10
000|16:15
087|16:20
096|16:25
087|16:30
000|16:35
000|16:40
000|16:45
000|16:50
000|16:55
000|17:00
000|17:05
000|17:10
000|17:15
000|17:20
000|17:25
000|17:30
000|17:35
000|17:40
With debugging on I only get one additional log entry from the binding:
Did not get a result from buienradar. Retrying. 2 tries remaining, waiting 120 seconds.
Anyone experiencing similar issues or a cliue where to look?
I found out just before the weekend that I am not receiving any buienradar in OH 3.4. When using a browser I am not getting the expected results either. It looks like the buienradar API is currently broken.
I wrote them a message last weekend via their website and today they asked me to try and reinstall my app 
A few hours ago I have replied by e-mail that their API seems to be broken. Hopefully they will have a look into it, tomorrow when their office opens again.
EDIT: doing a curl like you did with my own location and even the buienradar standard location (lat 53 lon 3) gives me the error that I supposedly provided coordinates that are not in the Netherlands or Belgium.
There seems to be some intermittent issues with the API.
Sometimes I get a list of values with the wrong time range…
And the Binding/API works as expected today…
I still wonder why the binding did receive an empty response while a curl
command did get a list of rain predictions. The code to get that data is quite simple:
@Override
public Optional<List<Prediction>> getPredictions(PointType location) throws IOException {
final String address = String.format(Locale.ENGLISH, BASE_ADDRESS + "?lat=%.2f&lon=%.2f",
location.getLatitude().doubleValue(), location.getLongitude().doubleValue());
final String result;
try {
result = HttpUtil.executeUrl("GET", address, TIMEOUT_MS);
} catch (IOException e) {
logger.debug("IO Exception when trying to retrieve Buienradar results: {}", e.getMessage());
return Optional.empty();
}
if (result.trim().isEmpty()) {
logger.warn("Buienradar API at URI {} return empty result", address);
return Optional.empty();
}
....
The curl command still says I am outside of the Netherlands or in Belgium. Requesting it via the browser gives me good results, the timestamps are actual and match the forecasted rain in the next hours on the website itself.
Better than the last days when the result was always “0” for forecasted and actual rain while it was raining all day long.