Listen to HTTP get reqests

  • Platform information:
    • Hardware: PI3
    • OS: Raspbian Buster / Openhabian unattended instal
    • openHAB version: OH3

I have a in garage remote PI0W runing heating app using DS18b sensors . On it , is Python script scaning for new sensors in /sys/bus/w1/devices/ and tracking temp changes and using HTTP GET it’s sending readings to in house PI3’s ip addr (that also has heating app ), so I have outside temp correction for home heating . And to be able to read all temps in one place (home PI heating web page) .

I also have same setup in country house , possibility to remote turn on heating and reading the temps .

Is there any way to read those HTTP reqests in OH3 ?

Thanks.

OH can issue HTTP requests with the HTTP binding or the sendHttpXRequest Actions.

OH defines a REST API that lets external things send updates or commands to OH Items, but those use POST and PUT, not GET.

Beyond that I know of no supported way to have OH listen for arbitrary HTTP requests.

You can have a look at this:

The other way is to work with Node-RED to receive the http requests and link it to openhab with “node-red-contrib-openhab2” for example.