Is there any documentation on the HTTP binding in openhab2? I can only find info for version 1. I have set up the http.cfg file to grab xml data from Weather underground:
forecastw.url=http://api.wunderground.com/api/mykey/forecast10day/q/State/City.xml:XSLT(wunderground_10day_fcttext.xsl)
forecastw.updateInterval=18000
I set up several items in the demo.items file with no success. I have no idea where to start and would appreciate any help. Thanks.
Hey @cbaxter,
Iâve run into similar troubles. Seems there is some glitch with http binding running under openhab 2. I was unable to execute even basic query due to parsing âerrorsâ. For some reason binding configuration is not properly passed to binding provider
2016-06-19 15:42:25.336 [INFO ] org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl:110 - Refreshing model 'demo.items'
2016-06-19 15:42:29.565 [WARN ] org.openhab.binding.http.internal.HttpGenericBindingProvider:116 - bindingConfig is NULL (item=Air_Flow (Type=NumberItem, State=Uninitialized)) -> process bindingConfig aborted!
While configuration is as simple as it could be:
Number Air_Flow "Air temperature [%.1f] °C" <temperature> (Ventilation) { http="<[http://192.168.2.251/a.asp:10000:REGEX(<AI0>.*(\d+\.\d+).*</AI0>)]" }
I think workaround for now is to use exec binding with script which calls wget/curl. Update - exec suffers from same issue.
Did you install the extension âHTTP Bindingâ and activated âJavascript Transformationâ? Sorry for being stupid, but I had not and it took me some time
Some news about that? HTTPBinding works? Iâam tring but it seems not working yet âŠ
For me it works great too with OH2. Using it for Hue motion sensors without problems.
You have to manually edit conf/services/http.cfg
until this PR is merged and included in a build.
what goes in http.cfg ?? just touch it?
What are the allowed http methods for the OH2 HTTP binding? The documentation mentions POST, but not any others. Are GET and PUT supported?