I have one remaining question: the amounts of precipitation reported by the binding seem to be orders of magnitude bigger than in reality.
If I look at the code, I see that the 5-minute precipitation forecast data are provided as mm/h.
Edit: I believe the buienradar API returns intensity figures, while I wanted to get amounts (intensity x time interval). So the correct way of going from the reported values to an estimation of the amount of rain, is by multiplying the values reported by the buienradar binding with 5/60, in other words dividing by 12.
It doesn’t seem to be working for me. Could it be the a combination of versions?
Running 2.4.0-1 and I grabbed the jar file today and I put it in the add-ons directory.
I can see and configure the binding but the status remains on UNKNOWN. I can see the channels and in the paper UI I do see the (correct) Actual Date/Time but the rainfall remains on -NaN.
Any pointers would be appreciated. (Or do I need to go to a 2.5.0 release , which I tried but that broke my whole setup)
@shutterfreak - I’ll give that a try later on. The problem is that I tried to upgrade to the latest nightly build but that broke my OH completely. Nothing no bindings, no items etc etc was visible anymore.
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:158) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:118) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.lambda$0(BuienradarHandler.java:109) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:158) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:118) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.lambda$0(BuienradarHandler.java:109) ~[?:?]
The problem is that apparently your openHAB release does not know about the MILLIMETRE_PER_HOUR unit.
If you’re running a rule that is triggered by a buienradar status update, then you will have to explicitly import SIUnits at the top of your rules file:
Then you can use the units, e.g. SIUnits.MILLIMETRE_PER_HOUR.
Otherwise you probably need to upgrade to a more recent OH release (e.g. 2.5.0 MS1). You could give OH2.5MS1 a try on a spare computer running only the buienradar binding to see if that solves your problems.
I really like these plots. But I don’t know anthing about grafana yet. As soon as I switch to 2.5 (stable) I will start using the buienradar binding (currently using the http binding for that).
Could you write a walk through I how to make these plots and show them on your sitemap?
Buienradar is a nice addition to my domotica setup. Unfortunatelly, my logfiles are regularly filled with these kind of errors… any idea how to fix this?
Thanks!
java.io.IOException: java.util.concurrent.TimeoutException: Total timeout 3000 ms elapsed
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:259) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:109) ~[?:?]
at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:90) ~[?:?]
at org.openhab.binding.buienradar.internal.buienradarapi.BuienradarPredictionAPI.getPredictions(BuienradarPredictionAPI.java:144) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:131) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.refresh(BuienradarHandler.java:115) ~[?:?]
at org.openhab.binding.buienradar.internal.BuienradarHandler.lambda$0(BuienradarHandler.java:106) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_152]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
Caused by: java.util.concurrent.TimeoutException: Total timeout 3000 ms elapsed
at org.eclipse.jetty.client.TimeoutCompleteListener.onTimeoutExpired(TimeoutCompleteListener.java:51) ~[?:?]
at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:282) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_152]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_152]
... 3 more