Hello
I have an on/off controller (NC-1000 Ethernet RJ45 TCP/IP WEB Remote Control Board with 8 Channels ) that I am trying to figure out how to get status from it
The request is accessible via url
turning On/off is done by addressing the specific URL address
for example, turning on Relay1 is done by accessing address http://10.16.10.50/30000/01
turning OFF relay1 is performed by accessing http://10.16.10.50/30000/00
Which bindings will allow me to manage the controller optimally?
Thanks
Hi,
you can take a look at the http binding. This should work for your task.
https://www.openhab.org/addons/bindings/http/
Thanks
I’m allready using this binding for turning ON and Off relays from 01 to 08
I looking for a way to get current status for a specific relay, take a look at the screenshot

Post the HTML(?) source code corresponding to the screenshot and we might be able to help.
thanks
here is the source code
<center>
<p>
Relay-ALL  ON   
<font color="#00FF00">  </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/45"> ALL-ON</a>
<p>
<center>
<p>
Relay-ALL OFF
<font color="#FF0000">    </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://192.168.1.50/30000/44"> ALL-OFF</a>
<p>
<center>
<p>
Relay-01:
<font color="#00FF00">  ON  </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/00"> ON/OFF-01</a>
<p>
<center>
<p>
Relay-02:
<font color="#FF0000"> OFF  </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/03">ON/OFF-02</a>
<p>
<center>
<p>
Relay-03:
<font color="#FF0000"> OFF  </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/05">ON/OFF-03</a>
<p>
<center>
<p>
Relay-04:
<font color="#FF0000"> OFF  </font>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/07">ON/OFF-04</a>
<p>
<center>
<p>
Change IP/Port:    
<small>
<a href="http://192.168.1.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/41"> Enter</a>
<p>
<small>
<a href="http://10.16.10.50/30000"></a>
</small>
<a href="http://10.16.10.50/30000/42">Next Page</a>
<p>
Create an openHAB channel (within the HTTP binding Thing) per relay and use a regex to extract the data from the HTML source code, e. g.:
In your case:
REGEX:.*Relay-01:\s\n.*>\s[ ]*(.*?)&.*
REGEX:.*Relay-02:\s\n.*>\s[ ]*(.*?)&.*
etc.
As an alternative, you could use the Exec binding (but would have to write a shell script to fetch and parse the HTML data).
Thank you very much for the help