This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Set KNX object's value via HTTP?
#3
Hi,

Here is a full sample:

You must enable remote services and check the objects for export and use this LUA command to have HTTP communication for older FW use:

Code:
require('socket.http')
socket.http.TIMEOUT = 5

-- Read from object
local reply = socket.http.request('http://remote:remote@192.168.0.10/cgi-bin/scada-remote/request.cgi?m=json&r=grp&fn=getvalue&alias=0/0/8')
grp.write('0/0/7', reply)

-- Write to object
value = grp.getvalue('0/0/7')
local reply = socket.http.request('http://remote:remoter@192.168.0.10/cgi-bin/scada-remote/request.cgi?m=json&r=grp&fn=write&alias=0/0/8&value=' .. value .. '')

See for all possible syntax this URL: http://www.openrb.com/docs/remote.htm

For new (and BETA) FW use:

Code:
require('socket.http')
socket.http.TIMEOUT = 5

-- Read from object
local reply = socket.http.request('http://remote:remote@192.168.0.10/scada-remote?m=json&r=grp&fn=getvalue&alias=0/0/8')
grp.write('0/0/7', reply)

-- Write to object
value = grp.getvalue('0/0/7')
local reply = socket.http.request('http://remote:remote@192.168.0.10/scada-remote?m=json&r=grp&fn=write&alias=0/0/8&value=' .. value .. '')

See for all possible syntax this URL: http://www.openrb.com/docs/remote-new.htm

I strongly recommend to change the default remote password..

BR,

Erwin
Reply


Messages In This Thread
Set KNX object's value via HTTP? - by Thomas - 10.01.2017, 18:25
RE: Set KNX object's value via HTTP? - by Erwin van der Zwart - 11.01.2017, 13:47

Forum Jump: